#include <omUITreeNode.h>
Inheritance diagram for omUITreeNode:
Public Member Functions | |
omUITreeNode (omUITreeNode *, omObject *, int) | |
omUITreeNode (omUITreeNode *, omUIButton *) | |
~omUITreeNode () | |
void | DeleteChildren () |
void | AddNode (omUITreeNode *) |
void | AddLeaf (omUIButton *) |
omUITreeNode * | GetParentNode () |
bool | IsYourWindow (void *) |
void | DeAction (bool) |
void | Tick () |
void | Action () |
void | PaintWindows () |
void | Show () |
bool | GetActionStatus () |
void | Repaint () |
virtual void | Execute () |
virtual void | LightOn () |
virtual void | LightOff () |
Data Fields | |
bool | actioned |
Protected Attributes | |
omUITreeNode * | parent |
std::vector< omUITreeNode * > | nodes |
omUIButton * | leaf |
int | nnodes |
int | currentNode |
int | scanCount |
int | scanMax |
omObject * | data |
bool | isLeaf |
|
Constructor of the class.The constructor of the class generates a new object and allocates data. omUITreeNode derived class and GenericNodeData derived class can be used to handle specific node and specific data.
|
|
Constructor of the class as a tree lead.The constructor of the class generates a new object and allocates data. omUITreeNode derived class and GenericNodeData derived class can be used to handle specific node and specific data.
|
|
|
|
Pass the action signal to the node. Action indicate that user fired the button or the group of buttons. Reimplemented from omObject. |
|
Add a new node as a leaf of this node in the tree structure.
|
|
Add a new node as a child of this node in the tree structure.
|
|
|
|
Delete all children wihout deleting this node. used in the root node only. |
|
Run application dependent functions when the block is selected by the user. The Execute command is called by the parent node when it is actioned by the user. By default if the node is a leaf the leaf Execute() method is called. The function can be overriddent to handle specific cases. |
|
Return the status of the actioned flag.
|
|
Return the parent node pointer
|
|
Check if the passed window handler belong to the associated leaf or to any child leaf. The handler is a void * so this method is not system dependent.
Reimplemented from omObject. |
|
Force the node to light off state This method is called turn off the highlight status of the group. The function by default passes the signal to all the children and if it is a leaf the signal is passed to the leaf object. This function can be overridden to do specific work. |
|
Force the node to light on state. This method is called to highlight the group. The function by default passes the signal to all the children and if it is a leaf the signal is passed to the leaf object. This function can be overridden to do specific work. |
|
Paint default picture of all windows |
|
Send Repain() message to all subnodes. This method is used to repaint all tree or some parts of it. |
|
Show all the windows of this node |
|
Pass the tick signal to the node. Tick signal is used to comunicate to the node that a scan event was occoured. If the node is not a leaf it comunicates the signal to children. If the node is a leaf the signal is used to change display status (scanned or not scanned). Reimplemented from omObject. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Copyright © by Luca Clivio |