28 #include "YSelectionWidget.h"
70 std::vector<std::string>::iterator path_end,
142 virtual bool setProperty(
const std::string & propertyName,
const char * userInputProperty()
The name of the widget property that will return user input.
Item class for tree items.
void setImmediateMode(bool on=true)
Set immediateMode() on or off.
std::vector< YItem * > YItemCollection
Collection of pointers to YItem.
bool immediateMode() const
Deliver even more events than with notify() set.
Tree: List box that displays a (scrollable) list of hierarchical items from which the user can select...
A set of properties to check names and types against.
YTree(YWidget *parent, const std::string &label, bool multiSelection, bool recursiveSelection)
Constructor.
virtual YPropertyValue getProperty(const std::string &propertyName)
Get a property.
virtual YTreeItem * currentItem()=0
Return the the item that currently has the keyboard focus or 0 if no item currently has the keyboard ...
YTreeItem * findItem(std::vector< std::string >::iterator path_begin, std::vector< std::string >::iterator path_end, YItemConstIterator begin, YItemConstIterator end) const
Recursively looks for the first item in the tree of the menu items using depth first search.
virtual void activate()=0
Activate the item selected in the tree.
virtual const char * widgetClass() const
Returns a descriptive name of this widget class for logging, debugging etc.
virtual ~YTree()
Destructor.
virtual void addItems(const YItemCollection &itemCollection)
Add multiple items.
bool hasMultiSelection() const
Return 'true' if the user can select multiple items at the same time.
virtual void rebuildTree()=0
Rebuild the displayed tree from the internally stored YTreeItems.
Transport class for the value of simple properties.
virtual bool setProperty(const std::string &propertyName, const YPropertyValue &val)
Set a property.
virtual const YPropertySet & propertySet()
Return this class's property set.
YItemCollection::const_iterator YItemConstIterator
Const iterator over YItemCollection.