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) );
82 YContextMenu::assignUniqueIndex( YItemIterator begin, YItemIterator end )
84 for ( YItemIterator it = begin; it != end; ++it )
88 item->
setIndex( ++(priv->nextSerialNo) );
100 priv->nextSerialNo = 0;
114 for ( YItemConstIterator it = begin; it != end; ++it )
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 );
virtual YItemIterator childrenEnd()
virtual YItemIterator childrenBegin()
void check(const std::string &propertyName) const
void add(const YProperty &prop)
std::string stringVal() const
virtual bool hasChildren() const
virtual YItemIterator childrenEnd()
virtual bool hasChildren() const
YPropertyType type() const
virtual YItemIterator childrenBegin()