40 #ifndef _uimenubutton_cpp
41 #define _uimenubutton_cpp
43 #include "UI/menubutton.h"
44 #include "UI/menuentry.h"
45 #include "UI/screen.h"
46 #include "stringtool.h"
47 #include "exception.h"
70 Button(RendName,RendRect,Parent),
115 if( !PropertiesNode.
Empty() ) {
120 CurrAttrib = PropertiesNode.
GetAttribute(
"MenuEntryName");
121 if( !CurrAttrib.
Empty() )
124 CurrAttrib = PropertiesNode.
GetAttribute(
"IsPushButton");
125 if( !CurrAttrib.
Empty() )
126 MenuConfig = static_cast<MenuEntry::ButtonConfig>( CurrAttrib.
AsWhole() );
128 if( !MenuName.empty() ) {
170 {
return new MenuButton(RendName,RendRect,Parent); }
188 {
delete static_cast<MenuButton*
>( ToBeDestroyed ); }