25 #include "YTreeItem.h"
38 const std::string & iconName,
40 :
YItem( label, iconName )
48 const std::string & label,
60 const std::string & label,
61 const std::string & iconName,
63 :
YItem( label, iconName )
80 _children.push_back( child );
virtual void deleteChildren()
Delete all child items.
YItemCollection::iterator YItemIterator
Mutable iterator over YItemCollection.
virtual YItemIterator childrenEnd()
Return an iterator that points after the last child item of this item.
virtual void addChild(YItem *item_disown)
Add a child item to this item.
virtual bool hasChildren() const
Return 'true' if this item has any child items.
YTreeItem(const std::string &label, bool isOpen=false)
Constructors for toplevel items.
Simple item class for SelectionBox, ComboBox, MultiSelectionBox etc.
virtual ~YTreeItem()
Destructor.
bool isOpen() const
Return 'true' if this tree item should be displayed open (with its children visible) by default...
virtual YItemIterator childrenBegin()
Return an iterator that points to the first child item of this item.
void setOpen(bool open)
Change the 'isOpen' flag.
Item class for tree items.