25 #ifndef YMGAMenuItem_h
26 #define YMGAMenuItem_h
28 #include <yui/YMenuItem.h>
42 : YMenuItem( label ), _enabled(true), _hidden(false)
52 const std::string & iconName )
53 : YMenuItem( label, iconName ), _enabled(true), _hidden(false)
64 const std::string & label )
65 : YMenuItem(
parent, label ), _enabled(true), _hidden(false)
69 const std::string & label,
70 const std::string & iconName )
71 : YMenuItem(
parent, label, iconName ), _enabled(true), _hidden(false)
106 virtual void hide(
bool invisibile=
true) {
115 return dynamic_cast<YMGAMenuItem *
> ( YMenuItem::parent() );
144 const std::string & iconName );
149 const std::string & label,
150 const std::string & iconName );
153 virtual void addChild( YItem * ) {YUI_THROW( YUIException(
"Menu separotor cannot have children") );};
156 #endif // YMGAMenuItem_h