Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site











SourceForge.net Logo

OptionTree

 

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.

 

 

Public Member List

 

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 idconst

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 idconst

Returns the label of node id.

 

 

Last edit by cbpporter on 03/20/2009. Do you want to contribute?. T++