OpenSpace3D libs
OpenSpace 3D libraries for plugITs and OS3D developer
|
Functions | |
getEdCtrlTreePreviousSelectedItem (ctrlstr) | |
Get the previous selected item. | |
getEdCtrlTreeSelectedItem (ctrlstr) | |
Get the current selected item. | |
getEdCtrlTreeFatherItem (ctrlstr, item) | |
Get the father of a tree item. | |
getEdCtrlTreeSonsItem (ctrlstr, item) | |
Get the sons list of a tree item. | |
getEdCtrlTreeRootItem (ctrlstr) | |
Get the root tree item. | |
isEdCtrlTreeItemSon (ctrlstr, item, father) | |
Return 1 if the first item is a son of the second item. | |
setEdCtrlTreeCbDrag (ctrlstr, cbfun) | |
Define the tree item drag callback. | |
setEdCtrlTreeCbDbClick (ctrlstr, cbfun) | |
Define the tree item double click callback. | |
setEdCtrlTreeCbSelect (ctrlstr, cbfun) | |
Define the tree item select callback. | |
setEdCtrlTreeCbExpand (ctrlstr, cbfun) | |
Define the tree item expand callback. | |
setEdCtrlTreeCbRclick (ctrlstr, cbfun) | |
Define the tree item right click callback. | |
setEdCtrlTreeCbClick (ctrlstr, cbfun) | |
Define the tree item click callback. | |
setEdCtrlTreeCbKeyDown (ctrlstr, cbfun) | |
Define the tree item key down callback. | |
setEdCtrlTreeCbKeyUp (ctrlstr, cbfun) | |
Define the tree item key down callback. | |
setEdCtrlTreeExpandAll (ctrlstr, mode) | |
Expand a tree. | |
setEdCtrlTreeExpandItem (ctrlstr, itemstr, mode, children) | |
Expand a tree item. | |
addEdCtrlTreeItem (ctrlstr, father, name, val, type, bitmappath) | |
Add an item to a tree. | |
removeEdCtrlTreeSons (ctrlstr, item) | |
Remove all sons of a tree item. | |
delEdCtrlTreeItem (ctrlstr, item) | |
Remove a tree item and all it's sons. | |
refreshEdCtrlTreeSons (ctrlstr, item, sort) | |
Refresh the sons of a tree item. | |
setEdCtrlTreeType (ctrlstr, item, type) | |
Change an item type. | |
setEdCtrlTreeValue (ctrlstr, item, value) | |
Change an item value. | |
setEdCtrlTreeLabel (ctrlstr, item, val) | |
Change an item label. | |
moveEdCtrlTreeItem (ctrlstr, item, father) | |
Move a tree item to a new father. | |
changeEdCtrlTreeItemPos (ctrlstr, item, itempos) | |
Move a tree item to a new position from a node. | |
setEdCtrlTreeItemBitmap (ctrlstr, itemstr, bitmappath) | |
Set a tree item bitmap. | |
sizeEdCtrlTree (ctrlstr, x, y, w, h) | |
Resize a tree control. | |
getEdCtrlTreeItemByValue (ctrlstr, val) | |
Get a tree item by it's value. | |
getEdCtrlTreeLabelByItem (ctrlstr, item) | |
Get a tree item label. | |
getEdCtrlTreeValueByItem (ctrlstr, item) | |
Get a tree item value and type. | |
getEdCtrlTreeFullValuesByItem (ctrlstr, item) | |
Get a tree item father, value and type. | |
getEdCtrlTreeFullValuesByValue (ctrlstr, val) | |
Get a tree item father, value and type, by an item value. | |
getEdCtrlTreeBrothers (ctrlstr, item) | |
Get the brothers of a tree item. | |
selEdCtrlTreeItemByValue (ctrlstr, val) | |
Select a tree item by it's value. | |
selEdCtrlTreeItem (ctrlstr, item) | |
Select a tree item. | |
setEdCtrlTreeEnable (ctrlstr, state) | |
Enable or disable a tree control. | |
setEdCtrlTreeFilter (ctrlstr, filter) | |
Filter tree items. | |
resetEdCtrlTree (ctrlstr) | |
Reset a tree control. | |
crEdCtrlTree (winstr, x, y, w, h, resize) | |
Create a tree control. | |
dsEdCtrlTree (ctrlstr) | |
Destroy a tree control. | |
Tree control
getEdCtrlTreePreviousSelectedItem | ( | ctrlstr | ) |
Get the previous selected item.
Prototype: fun [EdControl] EdTreeItem
EdControl | : tree control structure |
getEdCtrlTreeSelectedItem | ( | ctrlstr | ) |
Get the current selected item.
Prototype: fun [EdControl] EdTreeItem
EdControl | : tree control structure |
getEdCtrlTreeFatherItem | ( | ctrlstr | , |
item | |||
) |
Get the father of a tree item.
Prototype: fun [EdControl EdTreeItem] EdTreeItem
EdControl | : tree control structure |
EdTreeItem | : tree item |
getEdCtrlTreeSonsItem | ( | ctrlstr | , |
item | |||
) |
Get the sons list of a tree item.
Prototype: fun [EdControl EdTreeItem] [EdTreeItem r1]
EdControl | : tree control structure |
EdTreeItem | : tree item |
getEdCtrlTreeRootItem | ( | ctrlstr | ) |
Get the root tree item.
Prototype: fun [EdControl] EdTreeItem
EdControl | : tree control structure |
isEdCtrlTreeItemSon | ( | ctrlstr | , |
item | , | ||
father | |||
) |
Return 1 if the first item is a son of the second item.
Prototype: fun [EdControl EdTreeItem EdTreeItem] I
EdControl | : tree control structure |
EdTreeItem | : tree item to search |
EdTreeItem | : father tree item |
setEdCtrlTreeCbDrag | ( | ctrlstr | , |
cbfun | |||
) |
Define the tree item drag callback.
Prototype: fun [EdControl fun [EdControl [EdTreeItem EdTreeItem S I] [EdTreeItem EdTreeItem S I]] u0] I
EdControl | : tree control structure |
fun | [EdControl [EdTreeItem EdTreeItem S I] [EdTreeItem EdTreeItem S I]] u0 : callback function |
- | EdControl : tree control structure |
- | [EdTreeItem EdTreeItem S I] : first item father, item, item value, item type |
- | [EdTreeItem EdTreeItem S I] : second item father, item, item value, item type |
setEdCtrlTreeCbDbClick | ( | ctrlstr | , |
cbfun | |||
) |
Define the tree item double click callback.
Prototype: fun [EdControl fun [EdControl EdTreeItem EdTreeItem S I I I] u0] I
EdControl | : tree control structure |
fun | [EdControl EdTreeItem EdTreeItem S I I I] u0: callback function |
- | EdControl : tree control structure |
- | EdTreeItem : item father |
- | EdTreeItem : clicked item |
- | S : item value |
- | I : item type |
- | I : click X coordinate |
- | I : click Y coordinate |
setEdCtrlTreeCbSelect | ( | ctrlstr | , |
cbfun | |||
) |
Define the tree item select callback.
Prototype: fun [EdControl fun [EdControl EdTreeItem EdTreeItem S I] u0] I
EdControl | : tree control structure |
fun | [EdControl EdTreeItem EdTreeItem S I] u0: callback function |
- | EdControl : tree control structure |
- | EdTreeItem : item father |
- | EdTreeItem : selected item |
- | S : item value |
- | I : item type |
setEdCtrlTreeCbExpand | ( | ctrlstr | , |
cbfun | |||
) |
Define the tree item expand callback.
Prototype: fun [EdControl fun [EdControl EdTreeItem EdTreeItem S I I I] u0] I
EdControl | : tree control structure |
fun | [EdControl EdTreeItem EdTreeItem S I I I I] u0: callback function |
- | EdControl : tree control structure |
- | EdTreeItem : item father |
- | EdTreeItem : clicked item |
- | S : item value |
- | I : item type |
- | I : state |
setEdCtrlTreeCbRclick | ( | ctrlstr | , |
cbfun | |||
) |
Define the tree item right click callback.
Prototype: fun [EdControl fun [EdControl EdTreeItem EdTreeItem S I I I] u0] I
EdControl | : tree control structure |
fun | [EdControl EdTreeItem EdTreeItem S I I I] u0: callback function |
- | EdControl : tree control structure |
- | EdTreeItem : item father |
- | EdTreeItem : clicked item |
- | S : item value |
- | I : item type |
- | I : click X coordinate |
- | I : click Y coordinate |
setEdCtrlTreeCbClick | ( | ctrlstr | , |
cbfun | |||
) |
Define the tree item click callback.
Prototype: fun [EdControl fun [EdControl EdTreeItem EdTreeItem S I [I I] I] u0] I
EdControl | : tree control structure |
fun | [EdControl EdTreeItem EdTreeItem S I I I] u0: callback function |
- | EdControl : tree control structure |
- | EdTreeItem : item father |
- | EdTreeItem : clicked item |
- | S : item value |
- | I : item type |
- | [I I] : click X coordinate |
- | I : btn |
setEdCtrlTreeCbKeyDown | ( | ctrlstr | , |
cbfun | |||
) |
Define the tree item key down callback.
Prototype: fun [EdControl fun [EdControl EdTreeItem EdTreeItem S I I I] u0] I
EdControl | : tree control structure |
fun | [EdControl EdTreeItem EdTreeItem S I I I] u0 |
- | EdControl : tree control structure |
- | EdTreeItem : item father |
- | EdTreeItem : clicked item |
- | S : item value |
- | I : item type |
- | I : key |
- | I : key code |
setEdCtrlTreeCbKeyUp | ( | ctrlstr | , |
cbfun | |||
) |
Define the tree item key down callback.
Prototype: fun [EdControl fun [EdControl EdTreeItem EdTreeItem S I I] u0] I
EdControl | : tree control structure |
fun | [EdControl EdTreeItem EdTreeItem S I I] u0 |
- | EdControl : tree control structure |
- | EdTreeItem : item father |
- | EdTreeItem : clicked item |
- | S : item value |
- | I : item type |
- | I : key |
setEdCtrlTreeExpandAll | ( | ctrlstr | , |
mode | |||
) |
setEdCtrlTreeExpandItem | ( | ctrlstr | , |
itemstr | , | ||
mode | , | ||
children | |||
) |
Expand a tree item.
Prototype: fun [EdControl EdTreeItem I I] I
EdControl | : tree control structure |
EdTreeItem | : item |
I | : 1 to expand, 0 to retract |
I | : 1 to apply on children, 0 otherwise |
addEdCtrlTreeItem | ( | ctrlstr | , |
father | , | ||
name | , | ||
val | , | ||
type | , | ||
bitmappath | |||
) |
Add an item to a tree.
Prototype: fun [EdControl EdTreeItem S S I S] EdTreeItem
EdControl | : tree control structure |
EdTreeItem | : father item, nil for root |
S | : item label |
S | : item value |
I | : item type |
S | : item bitmap path |
removeEdCtrlTreeSons | ( | ctrlstr | , |
item | |||
) |
Remove all sons of a tree item.
Prototype: fun [EdControl EdTreeItem] I
EdControl | : tree control structure |
EdTreeItem | : tree item |
delEdCtrlTreeItem | ( | ctrlstr | , |
item | |||
) |
Remove a tree item and all it's sons.
Prototype: fun [EdControl EdTreeItem] I
EdControl | : tree control structure |
EdTreeItem | : tree item to remove |
refreshEdCtrlTreeSons | ( | ctrlstr | , |
item | , | ||
sort | |||
) |
Refresh the sons of a tree item.
Prototype: fun [EdControl EdTreeItem I] I
EdControl | : tree control structure |
EdTreeItem | : tree item |
I | : 1 to sort the items, 0 otherwise |
setEdCtrlTreeType | ( | ctrlstr | , |
item | , | ||
type | |||
) |
Change an item type.
Prototype: fun [EdControl EdTreeItem I] I
EdControl | : tree control structure |
EdTreeItem | : tree item |
I | : the new item type |
setEdCtrlTreeValue | ( | ctrlstr | , |
item | , | ||
value | |||
) |
Change an item value.
Prototype: fun [EdControl EdTreeItem S] I
EdControl | : tree control structure |
EdTreeItem | : tree item |
S | : the new item value |
setEdCtrlTreeLabel | ( | ctrlstr | , |
item | , | ||
val | |||
) |
Change an item label.
Prototype: fun [EdControl EdTreeItem S] I
EdControl | : tree control structure |
EdTreeItem | : tree item |
S | : the new item label |
moveEdCtrlTreeItem | ( | ctrlstr | , |
item | , | ||
father | |||
) |
Move a tree item to a new father.
Prototype: fun [EdControl EdTreeItem EdTreeItem] I
EdControl | : tree control structure |
EdTreeItem | : tree item to move |
EdTreeItem | : new father |
changeEdCtrlTreeItemPos | ( | ctrlstr | , |
item | , | ||
itempos | |||
) |
Move a tree item to a new position from a node.
Prototype: fun [EdControl EdTreeItem EdTreeItem] I
EdControl | : tree control structure |
EdTreeItem | : tree item to move |
EdTreeItem | : node position |
setEdCtrlTreeItemBitmap | ( | ctrlstr | , |
itemstr | , | ||
bitmappath | |||
) |
Set a tree item bitmap.
Prototype: fun [EdControl EdTreeItem S] EdTreeItem
EdControl | : tree control structure |
EdTreeItem | : item |
S | : item bitmap path |
sizeEdCtrlTree | ( | ctrlstr | , |
x | , | ||
y | , | ||
w | , | ||
h | |||
) |
getEdCtrlTreeItemByValue | ( | ctrlstr | , |
val | |||
) |
Get a tree item by it's value.
Prototype: fun [EdControl S] EdTreeItem
EdControl | : tree control structure |
S | : the item value |
getEdCtrlTreeLabelByItem | ( | ctrlstr | , |
item | |||
) |
Get a tree item label.
Prototype: fun [EdControl EdTreeItem] S
EdControl | : tree control structure |
EdTreeItem | : tree item |
getEdCtrlTreeValueByItem | ( | ctrlstr | , |
item | |||
) |
Get a tree item value and type.
Prototype: fun [EdControl EdTreeItem] [S I]
EdControl | : tree control structure |
EdTreeItem | : tree item |
getEdCtrlTreeFullValuesByItem | ( | ctrlstr | , |
item | |||
) |
Get a tree item father, value and type.
Prototype: fun [EdControl EdTreeItem] [EdTreeItem S I]
EdControl | : tree control structure |
EdTreeItem | : tree item |
getEdCtrlTreeFullValuesByValue | ( | ctrlstr | , |
val | |||
) |
Get a tree item father, value and type, by an item value.
Prototype: fun [EdControl S] [EdTreeItem S I]
EdControl | : tree control structure |
S | : value to search |
getEdCtrlTreeBrothers | ( | ctrlstr | , |
item | |||
) |
Get the brothers of a tree item.
Prototype: fun [EdControl EdTreeItem] [EdTreeItem r1]
EdControl | : tree control structure |
EdTreeItem | : tree item |
selEdCtrlTreeItemByValue | ( | ctrlstr | , |
val | |||
) |
selEdCtrlTreeItem | ( | ctrlstr | , |
item | |||
) |
Select a tree item.
Prototype: fun [EdControl EdTreeItem] I
EdControl | : tree control structure |
EdTreeItem | : tree item |
setEdCtrlTreeEnable | ( | ctrlstr | , |
state | |||
) |
setEdCtrlTreeFilter | ( | ctrlstr | , |
filter | |||
) |
resetEdCtrlTree | ( | ctrlstr | ) |
crEdCtrlTree | ( | winstr | , |
x | , | ||
y | , | ||
w | , | ||
h | , | ||
resize | |||
) |