MenuBar Class Reference

#include <menuBar.h>

Inheritance diagram for MenuBar:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 MenuBar ()
virtual ~MenuBar ()
 DECLARE_CONOBJECT (MenuBar)
void attachToCanvas (GuiCanvas *owner, S32 pos)
 Attach this menu bar to the native menu bar.
void removeFromCanvas ()
 Remove this menu bar from the native menu bar.
bool isAttachedToCanvas ()
 Returns true if this menu is attached to the menu bar.
virtual void insertObject (SimObject *obj, S32 pos)
virtual void addObject (SimObject *obj)
 Add an object to the set.
virtual void removeObject (SimObject *obj)
 Remove an object from the set.
virtual void pushObject (SimObject *obj)
 Add object to end of list.
virtual void popObject ()
 It will force the object to the end of the list if it already exists in the list. Remove an object from the end of the list.
virtual bool reOrder (SimObject *obj, SimObject *target=0)

Protected Member Functions

void updateMenuBar (PopupMenu *menu=NULL)
 Update the native menu bar to ensure consistency with the set.
void createPlatformPopupMenuData ()
void deletePlatformPopupMenuData ()

Protected Attributes

PlatformMenuBarData * mData
GuiCanvasmCanvas

Private Types

typedef SimSet Parent

Member Typedef Documentation

typedef SimSet MenuBar::Parent [private]

Reimplemented from SimSet.


Constructor & Destructor Documentation

MenuBar::MenuBar (  ) 

virtual MenuBar::~MenuBar (  )  [virtual]


Member Function Documentation

void MenuBar::updateMenuBar ( PopupMenu menu = NULL  )  [protected]

Update the native menu bar to ensure consistency with the set.

void MenuBar::createPlatformPopupMenuData (  )  [protected]

void MenuBar::deletePlatformPopupMenuData (  )  [protected]

MenuBar::DECLARE_CONOBJECT ( MenuBar   ) 

void MenuBar::attachToCanvas ( GuiCanvas owner,
S32  pos 
)

Attach this menu bar to the native menu bar.

void MenuBar::removeFromCanvas (  ) 

Remove this menu bar from the native menu bar.

bool MenuBar::isAttachedToCanvas (  )  [inline]

Returns true if this menu is attached to the menu bar.

virtual void MenuBar::insertObject ( SimObject obj,
S32  pos 
) [virtual]

virtual void MenuBar::addObject ( SimObject obj  )  [virtual]

Add an object to the set.

Reimplemented from SimSet.

virtual void MenuBar::removeObject ( SimObject obj  )  [virtual]

Remove an object from the set.

Reimplemented from SimSet.

virtual void MenuBar::pushObject ( SimObject obj  )  [virtual]

Add object to end of list.

Reimplemented from SimSet.

virtual void MenuBar::popObject (  )  [virtual]

It will force the object to the end of the list if it already exists in the list. Remove an object from the end of the list.

Reimplemented from SimSet.

virtual bool MenuBar::reOrder ( SimObject obj,
SimObject target = 0 
) [virtual]

Reimplemented from SimSet.


Member Data Documentation

PlatformMenuBarData* MenuBar::mData [protected]