|
| TreeViewCurrentNode () |
| Construct an uninitialised TreeViewCurrentNode.
|
|
| TreeViewCurrentNode (TreeView &tree_view) |
| Construct the current node for the given tree view. More...
|
|
| TreeViewCurrentNode (const TreeViewCurrentNode &other) |
| Construct from an existing tree view current node. More...
|
|
TreeViewCurrentNode & | operator= (const TreeViewCurrentNode &other) |
| Assign from an existing tree view current node. More...
|
|
bool | operator== (const TreeViewCurrentNode &other) const |
| Check if this current tree node item refers to the current node of the same tree view. More...
|
|
bool | operator!= (const TreeViewCurrentNode &other) const |
| Check if this current tree node item refers to the current node of the same tree view. More...
|
|
TreeNodeId | node_id () const |
| Get the ID of the current node.
|
|
void | text (const std::string &text) |
|
std::string | text () const |
|
void | sprite (int sprite_area_id, const std::string &sprite_name, const std::string &expanded_sprite_name) |
| Set the sprites used for the current tree_view node. More...
|
|
std::string | sprite_name () const |
| Get the name of the sprite for the current node. More...
|
|
std::string | expanded_sprite_name () const |
| Get the name of the expanded sprite for the current node. More...
|
|
void | private_word (void *word) |
|
void * | private_word () const |
|
void | move_to (TreeNodeId id) |
| Move current node to a give node id. More...
|
|
bool | move_next (bool sorted=false) |
| Move current node to next sibling. More...
|
|
bool | move_prev (bool sorted=false) |
| Move current node to previous sibling. More...
|
|
bool | move_child (bool sorted=false) |
| Move current node to first child. More...
|
|
bool | move_parent () |
| Move current node to the parent. More...
|
|
bool | move_first_selected () |
| Move current node to first selected node. More...
|
|
bool | move_next_selected () |
| Move current node to the next selected node. More...
|
|
void | expand (bool expand, bool recurse=false) |
| Expand or contract the current node. More...
|
|
void | select (bool select, bool add) |
| Select/deselect a node. More...
|
|
void | make_visible () |
| Make current node visible in the tree.
|
|
unsigned int | state () const |
|
bool | has_next_sibling () const |
|
bool | has_prev_sibling () const |
|
bool | has_child () const |
|
bool | parent_is_root () const |
|
bool | has_sprite () const |
|
bool | has_expanded_sprite () const |
|
bool | has_text () const |
|
bool | expanded () const |
|
bool | selected () const |
|
TreeNodeId | add_child (const std::string &text) |
| Add a new node as the child of the current node. More...
|
|
TreeNodeId | add_sibling (const std::string &text) |
| Add a new node as the child of the current node. More...
|
|
void | erase () |
| Delete the current tree node.
|
|
| Component () |
| Construct an uninitialised component. More...
|
|
| Component (Object obj, ComponentId id) |
| Construct a component from an object and component id. More...
|
|
| Component (ObjectId handle, ComponentId id) |
| Construct a component from an object handle and component id. More...
|
|
bool | null () const |
| Check if this component is in an uninitialised state. More...
|
|
Object | object () |
| Return the object his component belongs to.
|
|
Object | object () const |
| Return the object his component belongs to.
|
|
ObjectId | handle () const |
| Return the object handle for his component.
|
|
ComponentId | id () const |
| Get the component ID of this component. More...
|
|
Component & | operator= (const Component &other) |
| Assign the Component to refer to the same underlying toolbox component.
|
|
bool | operator== (const Component &other) const |
| Check if this component refers to the same underlying toolbox component. More...
|
|
bool | operator!= (const Component &other) const |
| Check if this component refers to the same underlying toolbox gadget. More...
|
|
| operator bool () const |
| Operator to check if this component has been initialised. More...
|
|
void | add_command (int command_id, Command *command) |
| Add a command to this Component. More...
|
|
void | remove_command (int command_id, Command *command) |
| Remove a command from this component. More...
|
|
void | add_user_event_listener (int event_id, UserEventListener *listener) |
| Add a user event listener. More...
|
|
void | remove_user_event_listener (int event_id, UserEventListener *listener) |
| Remove a user event listener from this component. More...
|
|
void | remove_all_listeners () |
| Remove all the listeners on this component. More...
|
|
|
void | add_listener (int action, Listener *listener, RawToolboxEventHandler handler) |
| Helper function to add listeners to this component. More...
|
|
void | remove_listener (int action, Listener *listener) |
| Helper function to remove listeners from this component.
|
|
void | add_window_listener (int event_code, Listener *listener) |
| Helper function to add a listener for a WIMP window event.
|
|
void | remove_window_listener (int event_code, Listener *listener) |
| Helper function to remove a listener for a WIMP window event.
|
|
int | int_property (int property_id) const |
| Get an integer property from the toolbox Component. More...
|
|
void | int_property (int property_id, int value) |
| Set an integer property from the toolbox object. More...
|
|
bool | bool_property (int property_id) const |
| Get a boolean property from the toolbox Component. More...
|
|
void | bool_property (int property_id, bool value) |
| Set a boolean property from the toolbox object. More...
|
|
std::string | string_property (int property_id) const |
| Get a string property from the toolbox object. More...
|
|
int | string_property_length (int property_id) const |
| Get a the length of a string property from the toolbox object. More...
|
|
void | string_property (int property_id, const std::string &value) |
| Set a string property in the toolbox object. More...
|
|
bool | flag_property (int property_id, int flag) const |
| Check if a particular flag is set in a property. More...
|
|
void | flag_property (int property_id, int flag, bool value) |
| Set a particular flag in a property. More...
|
|
ObjectId | _handle |
| Underlying toolbox handle.
|
|
int | _id |
| Underlying toolbox component id.
|
|
Class representing the current node in a tree view.
The nodes in a tree view are created, updated and properties checked by setting the current node to the node in question and calling the appropriate methods on it.