26 #define YUILogComponent "ui"
29 #include "YUISymbols.h"
30 #include "YContextMenu.h"
31 #include "YMenuItem.h"
53 YUI_CHECK_NEW( priv );
76 item->
setIndex( ++(priv->nextSerialNo) );
90 item->
setIndex( ++(priv->nextSerialNo) );
102 priv->nextSerialNo = 0;
122 if ( item->
index() == wantedIndex )
166 propSet.
add(
YProperty( YUIProperty_Label, YStringProperty ) );
167 propSet.
add(
YProperty( YUIProperty_Items, YOtherProperty ) );
168 propSet.
add(
YProperty( YUIProperty_IconPath, YStringProperty ) );
182 else if ( propertyName == YUIProperty_Items )
return false;
199 else if ( propertyName == YUIProperty_Items )
return YPropertyValue( YOtherProperty );
YItemCollection::const_iterator YItemConstIterator
Const iterator over YItemCollection.
YItemCollection::iterator YItemIterator
Mutable iterator over YItemCollection.
std::vector< YItem * > YItemCollection
Collection of pointers to YItem.
Simple item class for SelectionBox, ComboBox, MultiSelectionBox etc.
virtual YItemIterator childrenBegin()
Return an iterator that points to the first child item of this item.
virtual bool hasChildren() const
Return 'true' if this item has any child items.
int index() const
Return the index of this item (as set with setIndex() ).
void setIndex(int index)
Set this item's index.
virtual YItemIterator childrenEnd()
Return an iterator that points after the last child item of this item.
A set of properties to check names and types against.
void check(const std::string &propertyName) const
Check if a property 'propertyName' exists in this property set.
bool isEmpty() const
Returns 'true' if this property set does not contain anything.
void add(const YProperty &prop)
Add a property to this property set.
Transport class for the value of simple properties.
std::string stringVal() const
Methods to get the value of this property.
YPropertyType type() const
Returns the type of this property value.
Class for widget properties.
virtual bool hasChildren() const
Return 'true' if this item has any child items.
virtual YItemIterator childrenBegin()
Return an iterator that points to the first child item of this item.
virtual YItemIterator childrenEnd()
Return an iterator that points after the last child item of this item.