ToolMap
|
Public Member Functions | |
TreeMultiItemNode (TreeMultiItemNode *parent, const wxString &caption=wxEmptyString, const wxString &name=wxEmptyString) | |
virtual TreeMultiItemNode * | IsTreeMultiItemNode () const |
void | AddNode (TreeMultiItemBase *node) |
void | InsertNode (TreeMultiItemBase *NodePtr, size_t Position) |
void | Clear () |
void | DeleteNode (TreeMultiItemBase *node) |
void | DeleteNode (int index) |
TreeMultiItemBase * | RemoveNode (TreeMultiItemBase *node) |
TreeMultiItemBase * | RemoveNode (int index) |
int | GetNodeCount () const |
TreeMultiItemBase * | GetNode (int index) const |
int | Index (TreeMultiItemBase *node, bool searchFromEnd=false) const |
TreeMultiItemBase * | GetNodeNext (int &cookie) const |
TreeMultiItemBase * | First () const |
TreeMultiItemBase * | Last () const |
void | Fold (bool expand) |
const wxString & | GetCaption () const |
void | SetCaption (const wxString &caption) |
bool | IsExpanded () const |
Public Member Functions inherited from TreeMultiItemBase | |
int | GetType () const |
TreeMultiItemNode * | GetParent () const |
wxString | GetName () const |
void | SetName (wxString const &NewName) |
virtual TreeMultiItemRoot * | IsTreeMultiItemRoot () const |
virtual TreeMultiItemWindow * | IsTreeMultiItemWindow () const |
void | SetExcluded (bool excluded) |
void | SetX (int x) |
int | GetX () const |
void | SetY (int y) |
int | GetY () const |
void | SetHeight (int height) |
int | GetHeight () const |
void | SetWidth (int width) |
int | GetWidth () const |
bool | IsVisible () |
bool | IsExcluded () const |
bool | IsSelected (void) const |
void | Select (void) |
void | ToggleSelection (void) |
void | Unselect (void) |
Additional Inherited Members | |
Protected Member Functions inherited from TreeMultiItemBase | |
TreeMultiItemBase (TreeMultiItemNode *parent) | |
Protected Attributes inherited from TreeMultiItemBase | |
wxString | _name |
bool | _excluded |
int | _type |
int | _x |
int | _y |
int | _width |
int | _height |
TreeMultiItemNode::TreeMultiItemNode | ( | TreeMultiItemNode * | parent, |
const wxString & | caption = wxEmptyString , |
||
const wxString & | name = wxEmptyString |
||
) |
visual attributes of the node
TreeMultiItemNode This class is a container holder for multiple TreeMultiItemBase classes. Since both a TreeMultiItemNode and a TreeMultiItemWindow are a descendant from a TreeMultiItemBase class, it can hold multiple of these. In the case of a directory tree structure, it can hold multiple directories, and leafs (files).
|
inline |
Fold function sets or clears the expanded flag. Note when excluded from drawing, this will have no effect on redraw
|
inline |
Return caption
|
inline |
Returns true if the node is expanded. Subnodes can still be collapsed though
|
inlinevirtual |
returns the instance pointer if the current node is a TreeMultiItemNode, and nullptr when it's not.
Reimplemented from TreeMultiItemBase.
void TreeMultiItemNode::SetCaption | ( | const wxString & | caption | ) |
Set caption