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