Inheritance diagram for CP_MenuBar:
Public Member Functions | |
Constructor / Destructor | |
CP_MenuBar () | |
Constructor. | |
CP_MenuBar (SInt16 inMenuBarID) | |
virtual | ~CP_MenuBar () |
Destructor. | |
Getters | |
OSMenuBar | GetOSMenuBar () |
SInt16 | GetMenuBarID () |
Menus | |
void | AppendMenu (CP_Menu *inMenu, bool inInsertInMenuBar=true) |
void | InsertMenu (CP_Menu *inMenu, SInt16 inBeforeMenuID) |
void | InsertMenuAt (CP_Menu *inMenu, SInt16 inPosition) |
SInt16 | GetMenuIndex (SInt16 inMenuID) const |
SInt16 | GetMenuIDAt (SInt16 inIndex) |
CP_Menu * | GetCPMenu (SInt16 inMenuID) |
CP_Menu * | GetCPMenuAt (SInt16 inIndex) |
CP_Menu * | FindMenu (OSMenu inOSMenu) |
Utility | |
void | Refresh () |
void | SetMainWindow (CP_Window *inMainWindow) |
void | AddMenuHier (CP_Menu *inMenu) |
void | LoadMenuBarMenus (SInt16 inMenuBarID) |
Getters | |
CP_CommandNo | GetCommandNo (HICommand inHICommand) |
Owner Window | |
void | UpdateCommandStatus (OSMenu inMenu, CP_M_CommandHandler *inCommandHandler) |
Owner Window | |
void | SetOwnerWindow (OSWindow inWindow) |
Setters | |
void | SetOwnerWindow (CP_Window *inWindow) |
void | SetOSMenuBar (OSMenuBar inMenuBar) |
Protected Member Functions | |
MenuBar | |
OSMenuBar | LoadMenuBar (SInt16 inMenuBarID) |
MenuBar | |
OSMenuBar | LoadMenuBar (SInt16 inMenuBarID) |
MenuBar | |
OSMenuBar | LoadMenuBar (SInt16 inMenuBarID) |
Protected Attributes | |
CP_Menu_List * | fMenus |
SInt16 | fMenuBarID |
OSWindow | fOwnerWindow |
OSMenuBar | fMenuBar |
Private Member Functions | |
Menu List | |
void | AddMenuToList (CP_Menu *inMenu) |
Menus | |
void | LoadMenus (CP_S_MenuItems_Linux *inMenuBar) |
|
Constructor.
|
|
Constructor.
|
|
Destructor.
|
|
Return the platforms menu bar reference.
|
|
|
|
Appends the passed in CP_Menu to the end of this menu bar. If the parameter inInsertInMenuBar is true, the menu is also inserted into the platforms menu bar.
|
|
Insert the menu into our menu bar. inBeforeMenuID is the menu ID we want to insert our menu before
|
|
Insert the menu into our menu bar at the specified index.
|
|
Returns the 1 based index of the menu with the passed in menu id of the menus in our menu bar. If a menu with the matching id is not found, then kCP_InvalidIndex is returned.
|
|
Returns the id of the menu at the passed in inIndex.
|
|
Returns the CP_Menu of the menu with the passed in menu id.
|
|
Returns the CP_Menu of the menu at the passed inIndex
|
|
Returns a CP_Menu object from the passed in inOSMenu. If the corresponding menu is not locted within this menu bar, NULL is returned.
|
|
Method to cause the platforms menu bar to update itself.
|
|
Sets the main window associated with this application.
|
|
|
|
Constructor.
|
|
Private method to add the menu to the list of menus in this menu bar. A check is made to make sure the menu is not currently in the list of menus, and if so, not inserted so only a single version of the menu is in the list.
|
|
Platforms menu bar resource. |
|
Loads the platforms menu bar with the passed in inMenuBarID, and also creates and loads each CP_Menu as specified in the menu bar resource. If the resource can't be found an CP_ThrowIfResFail exception is thrown.
|
|
|
|
Sets this menu bar as the menu bar for the passed in Window.
|
|
|
|
Sets this menu bar as the menu bar for the passed in Window.
|
|
|
|
|
|
Loads the menu items to construct the Linux menu bar.
|
|
|
|
List of menus in this menu bar. |
|
ID of the menu bar. |
|
|