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 );
void add(const YProperty &prop)
Add a property to this property set.
void setIndex(int index)
Set this item's index.
YItemCollection::iterator YItemIterator
Mutable iterator over YItemCollection.
std::vector< YItem * > YItemCollection
Collection of pointers to YItem.
int index() const
Return the index of this item (as set with setIndex() ).
virtual YItemIterator childrenBegin()
Return an iterator that points to the first child item of this item.
A set of properties to check names and types against.
bool isEmpty() const
Returns 'true' if this property set does not contain anything.
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.
virtual YItemIterator childrenBegin()
Return an iterator that points to the first child item of this item.
YPropertyType type() const
Returns the type of this property value.
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.
Class for widget properties.
void check(const std::string &propertyName) const
Check if a property 'propertyName' exists in this property set.
Transport class for the value of simple properties.
virtual YItemIterator childrenEnd()
Return an iterator that points after the last child item of this item.
YItemCollection::const_iterator YItemConstIterator
Const iterator over YItemCollection.
Simple item class for SelectionBox, ComboBox, MultiSelectionBox etc.