Inheritance diagram for CmTree:
Public Methods | |
CmTree (CmContainer *parent, MTFont font, int width, int height, int n_types) | |
CmTree widget. | |
void | setImages (int type, const char *norm, const char *open, const char *sel) |
Sets the images to be associated to a given node type. | |
void | setImages (int type, CmImage *norm, CmImage *open, CmImage *sel) |
Sets the images to be associated to a give node type. | |
void | setHighLightColors (CmColor *bgc, CmColor *fgc) |
Sets the text foreground and background colors to be used to highlight a selected node. | |
void | setHighLightFGColor (CmColor *fgc) |
Sets the text foreground color to be used to highlight a selected node. | |
void | setLineColor (CmColor *color) |
Sets the color to be used to draw node connecting lines. | |
void | setSliderColor (CmColor *color) |
Sets the color of the sliders in the scrollbars of a CmTree object. | |
void | setSliderColorShift (int percentage) |
Sets the color of the sliders in the scrollbars of a CmTree object as a percentage of their normal color. | |
void | enableAutoSliderColor (void) |
Enables the automatic slider color setting on the scrollbar sliders. | |
void | disableAutoSliderColor (void) |
Disables the automatic slider color setting on the scrollbar sliders. | |
CmTreeNode * | getSelectedNode (void) |
Returns a reference to the currently selected node. | |
CmTreeNode * | getFirstNode (void) |
Returns a reference to the the first node in the tree. | |
void | setOpenCallback (CmCallback *owner, MTREENODE_CB cb) |
Sets the node open callback at Tree level (same callback for all nodes). | |
void | setCloseCallback (CmCallback *owner, MTREENODE_CB cb) |
Sets the node close callback at Tree level (same callback for all nodes). | |
void | setSelectCallback (CmCallback *owner, MTREENODE_CB cb) |
Sets the node select callback at Tree level (same callback for all nodes). | |
void | setPopupCallback (CmCallback *owner, MTREEPOPUP_CB cb) |
Sets the node popup callback at Tree level (same callback for all nodes). | |
void | setRenameCallback (CmCallback *owner, MTREERENAME_CB cb) |
Sets the node rename callback at Tree level (same callback for all nodes). | |
void | setDeleteCallback (CmCallback *owner, MTREEDELETE_CB cb) |
Sets the node delete callback at Tree level (same callback for all nodes). |
It is used by the MFileBrowse utility function. It was made up using the standard MGui API.
|
CmTree widget.
|
|
Disables the automatic slider color setting on the scrollbar sliders. This function has the effect of reverting to gray the color of the arrow buttons and the slider in the object's scrollbars.
|
|
Enables the automatic slider color setting on the scrollbar sliders. By default arrow buttons and slider in the scrollbars control are gray. Using this function you can force the object to set a suitable color on its scrollbars. The computed color is based on the object's background color and has a reasonable brightness. The standard gray will result as the computed color if black or white is used on the main object.
|
|
Returns a reference to the the first node in the tree.
|
|
Returns a reference to the currently selected node.
|
|
Sets the node close callback at Tree level (same callback for all nodes).
|
|
Sets the node delete callback at Tree level (same callback for all nodes). 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 text foreground and background colors to be used to highlight a selected node.
|
|
Sets the text foreground color to be used to highlight a selected node.
|
|
Sets the images to be associated to a give node type. The set images are used by default to draw node icons.
|
|
Sets the images to be associated to a given node type. The set images are used by default to draw icons for all nodes of the same type.
|
|
Sets the color to be used to draw node connecting lines.
|
|
Sets the node open callback at Tree level (same callback for all nodes).
|
|
Sets the node popup callback at Tree level (same callback for all nodes). This callback is called by the CmTree object when the right mouse button 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 Tree level (same callback for all nodes). 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 MTreeNodeEdit().
|
|
Sets the node select callback at Tree level (same callback for all nodes).
|
|
Sets the color of the sliders in the scrollbars of a CmTree object.
|
|
Sets the color of the sliders in the scrollbars of a CmTree object as a percentage of their normal color.
|