40 #ifndef _uimenuentry_cpp
41 #define _uimenuentry_cpp
43 #include "UI/menuentry.h"
44 #include "UI/menubutton.h"
45 #include "UI/uimanager.h"
46 #include "UI/screen.h"
47 #include "UI/layoutstrategy.h"
49 #include "stringtool.h"
50 #include "exception.h"
149 }
else if( this->
PopButton == EntryButton ) {
159 if( RollBackTo != NULL && !(this->
MenuStack->empty()) ) {
163 while( MenuBeg != MenuEnd )
165 if( (*MenuBeg) == RollBackTo ) {
323 if( !PropertiesNode.
Empty() ) {
325 CurrAttrib = PropertiesNode.
GetAttribute(
"AutoHideEntry");
326 if( !CurrAttrib.
Empty() )
329 CurrAttrib = PropertiesNode.
GetAttribute(
"PushButtonName");
330 if( !CurrAttrib.
Empty() ) {
333 this->
SetPushButton( static_cast<MenuButton*>( UncastedButton ) );
339 CurrAttrib = PropertiesNode.
GetAttribute(
"PopButtonName");
340 if( !CurrAttrib.
Empty() ) {
343 this->
SetPopButton( static_cast<MenuButton*>( UncastedButton ) );
423 }
else if( this->
PopButton == EventWidget ) {
444 if( DestroyOldStack ) {
460 return ( MenuIt != this->
MenuStack->end() );
472 {
return new MenuEntry(RendName,Parent); }
475 {
return new MenuEntry(RendName,RendRect,Parent); }
478 {
return new MenuEntry(XMLNode,Parent); }
493 {
delete static_cast<MenuEntry*
>( ToBeDestroyed ); }