17 #ifndef _utreebox_hpp_ 18 #define _utreebox_hpp_ 1 19 #include <ubit/ulistbox.hpp> 74 virtual void expand(
bool =
true);
80 UBox& label() {
return *plabel;}
84 UBox& subnodes() {
return *psubnodes;}
92 void constructs(
const UArgs& label,
const UArgs& subnode_list);
virtual UTreenode * getSelectedNode() const
returns the selected node; null if there is no selected node.
Definition: utreebox.cpp:40
Box container.
Definition: ubox.hpp:64
virtual UTreebox & setSelectedIndex(int n)
selects the Nth node; selects the last node if n = -1.
Definition: utreebox.cpp:54
virtual void collapse()
expand/collapse the treenode.
Definition: utreebox.hpp:75
Node in a Tree widget.
Definition: utreebox.hpp:59
UTreebox(const UArgs &=UArgs::none)
creates a new tree widget (
Definition: utreebox.cpp:35
Tree widget.
Definition: utreebox.hpp:25
const UBox & label() const
the box that contains the label of the treenode.
Definition: utreebox.hpp:81
List widget: enforces a list layout and makes buttons (and items, checkboxes, etc) contained in this ...
Definition: ulistbox.hpp:117
Argument list (for passing arguments to constructor or add functions).
Definition: uargs.hpp:43
Definition: uhardfont.hpp:31
static const UArgs none
the empty arglist.
Definition: uargs.hpp:45
virtual int getSelectedIndex() const
returns the index of the selected node; -1 if there is no selected node.
Definition: utreebox.cpp:50
virtual void setSelectedNode(UTreenode &)
selects this node.
Definition: utreebox.cpp:46
const UBox & subnodes() const
the box that contains the subnodes of the treenode.
Definition: utreebox.hpp:85