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 () |
CP_CommandNo | GetCommandNo (HICommand inHICommand) |
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) |
Protected Member Functions | |
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) |
|
Constructor.
|
|
Constructor.
|
|
Destructor.
|
|
Return the platforms menu bar reference.
|
|
|
|
Returns a CP_CommandNo for the passed in HICommand. This will find the CP_Menu object corresponding to the menu reference passed in from the HICommand, and then find the command in that menu.
|
|
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.
|
|
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.
|
|
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.
|
|
|
|
List of menus in this menu bar. |
|
ID of the menu bar. |
|
|