class OptionTree : public TreeCtrl
Specialized TreeCtrl representing a tree of options. Parent node option status is 3 state, representing all child items off, child items mixed and all child items on. Option tree allows external Option widgets to be used as nodes or provides internal Option widgets if no external Option is specified.
Callback WhenOption
Some option has changed.
void SetRoot(const Image& img, Option& option, const char *text = NULL)
void SetRoot(Option& option, const char *text = NULL)
void SetRoot(const Image& img, const char *text)
void SetRoot(const char *text)
Sets the root item.
int Add(int parent, const Image& img, Option& option, const char *text = NULL)
int Add(int parent, Option& option, const char *text = NULL)
int Add(int parent, const Image& img, const char *text)
int Add(int parent, const char *text)
Adds an item.
int Insert(int parent, int i, const Image& img, Option& option, const char *text = NULL)
int Insert(int parent, int i, Option& option, const char *text = NULL)
int Insert(int parent, int i, const Image& img, const char *text)
int Insert(int parent, int i, const char *text)
Insert an item at position i into parent.
virtual int Get(int id) const
Returns the option setting for the item with id. Returns 1, 0 or Null if node is mixed.
void Clear()
Removes all items.
OptionTree& ManualMode()
Switches the OptionTree to manual mode: checking an item does not affect the checked/unchecked status of child items.
void SetLabel(int id, const char *text)
Sets the label of node id to text.
String GetLabel(int id) const
Returns the label of node id.
|