34 typedef std::vector<YItem *> YItemCollection;
35 typedef YItemCollection::iterator YItemIterator;
36 typedef YItemCollection::const_iterator YItemConstIterator;
61 , _iconName( iconName )
76 std::string
label()
const {
return _label; }
81 void setLabel(
const std::string & newLabel ) { _label = newLabel; }
86 std::string
iconName()
const {
return _iconName; }
96 void setIconName(
const std::string & newIconName ) { _iconName = newIconName; }
118 int index()
const {
return _index; }
128 void setData(
void * newData ) { _data = newData; }
133 void *
data()
const {
return _data; }
167 virtual YItemConstIterator
childrenBegin()
const {
return _noChildren.end(); }
176 virtual YItemConstIterator
childrenEnd()
const {
return _noChildren.end(); }
189 std::string _iconName;
198 static YItemCollection _noChildren;