Inheritance diagram for CmTreeNode:
Public Methods | |
CmTreeNode (CmTree *tree, CmTreeNode *parent, CARD16 type, CARD16 flags, const char *text) | |
Adds a CmTreeNode to a CmTree. | |
void | destroyContainee (int notify) |
Destroys all contained nodes, but not the node itself. | |
void | open (int notify) |
Opens a node making its children available. | |
void | close (int notify) |
Closes a node making its children unavailable. | |
void | select (int notify) |
Selects a node (passing it the input focus). | |
CmTreeNode * | getNext (void) |
Returns a reference to the following node. | |
CmTreeNode * | getFirstChild (void) |
Returns a reference to the first child node. | |
CmTreeNode * | getParent (void) |
Returns a reference to the parent node. | |
char * | getPath (char separator, char *buff) |
Creates a path composed by concatenating the name of all nodes starting from the root up to the calling node object. | |
void | setImages (CmImage *norm, CmImage *open, CmImage *sel) |
Sets the images to be associated to a specific node. | |
void | setText (const char *text) |
Changes the text associated to a node. | |
char * | getText (char *text) |
Retrieves the text associated to a node. | |
CARD16 | getType (void) |
Retrieves the type of the specified node. | |
void | edit (void) |
Sets an MTree node in edit mode allowing the user to change its text. | |
void | setOpenCallback (CmCallback *owner, MTREENODE_CB cb) |
Sets the node open callback at local level (callback applies to this node only). | |
void | setCloseCallback (CmCallback *owner, MTREENODE_CB cb) |
Sets the node close callback at local level (callback applies to this node only). | |
void | setSelectCallback (CmCallback *owner, MTREENODE_CB cb) |
Sets the node select callback at local level (callback applies to this node only). | |
void | setPopupCallback (CmCallback *owner, MTREEPOPUP_CB cb) |
Sets the node popup callback at local node level (callback applies to this node only). | |
void | setRenameCallback (CmCallback *owner, MTREERENAME_CB cb) |
Sets the node rename callback at local level (callback applies to this node only). | |
void | setDeleteCallback (CmCallback *owner, MTREEDELETE_CB cb) |
Sets the node delete callback at local level (callback applies to this node only). |
|
Adds a CmTreeNode to a CmTree.
|
|
Closes a node making its children unavailable.
|
|
Destroys all contained nodes, but not the node itself.
|
|
Sets an MTree node in edit mode allowing the user to change its text. For this function to succeed the Rename callback must be set either at tree or node level.
|
|
Returns a reference to the first child node.
|
|
Returns a reference to the following node.
|
|
Returns a reference to the parent node.
|
|
Creates a path composed by concatenating the name of all nodes starting from the root up to the calling node object.
|
|
Retrieves the text associated to a node.
|
|
Retrieves the type of the specified node.
|
|
Opens a node making its children available.
|
|
Selects a node (passing it the input focus).
|
|
Sets the node close callback at local level (callback applies to this node only).
|
|
Sets the node delete callback at local level (callback applies to this node only). This callback is called by the CmTree object when the user presses the DEL key over the selected node. Via the return value of this callback the user can validate (non zero value) or reject (zero value) the node deletion.
|
|
Sets the images to be associated to a specific node. The images are used only by the calling node object.
|
|
Sets the node open callback at local level (callback applies to this node only).
|
|
Sets the node popup callback at local node level (callback applies to this node only). This callback is called by the CmTree object when the right mouse is pressed over a node. The callback receives the (x,y) coordinates for the menu position and is responsibile of managing the popup menu entirely.
|
|
Sets the node rename callback at local level (callback applies to this node only). This callback is called by the CmTree object when the user changes the text on a node. Via the return value of this callback the user can validate (non zero value) or reject (zero value) the new text. A tree node can be set in edit mode via a single mouse click over an already selected node or by a program call to edit().
|
|
Sets the node select callback at local level (callback applies to this node only).
|
|
Changes the text associated to a node.
|