Inheritance diagram for CP_Menu_Imp:
Public Member Functions | |
Constructor / Destructor | |
CP_Menu_Imp () | |
Constructor. | |
CP_Menu_Imp (SInt16 inMenuID, const CP_String &inMenuTitle) | |
CP_Menu_Imp (const CP_String &inMenuTitle) | |
CP_Menu_Imp (SInt16 inMenuID, const CP_String &inMenuTitle, OSMenu inOSMenu) | |
CP_Menu_Imp (OSMenu inOSMenu) | |
virtual | ~CP_Menu_Imp () throw () |
Destructor. | |
Protected Attributes | |
SInt16 | fMenuID |
OSMenu | fOSMenu |
CP_MenuImp_List | fSubMenus |
Private Member Functions | |
Utility | |
void | RemoveQuitItem () |
void | RemovePreferenceItem () |
|
Constructor.
|
|
Constructor. Constructs the menu from a menu id and a menu title.
|
|
Constructor. Constructs the menu from a menu id and a menu title.
|
|
Constructor. Constructs the menu from a menu id and a menu title.
|
|
Constructor. Constructs the menu from an existing OSMenu
|
|
Destructor.
|
|
Returns the CP_CommandNo associated with the menu item at the passed in 1 based index.
|
|
Return the MacOS platform menu reference.
|
|
Returns the number of menu items in this menu. If this is an Apple menu, then 1 is returned for the count.
|
|
Returns the menu title as a CP_String.
|
|
Return the ID of this menu.
|
|
|
|
|
|
|
|
Appends the passed in item to this menu.
|
|
Deletes the menu item with the passed in inItemIndex which is 1 based, and should be between 1 and the number of items in this menu.
|
|
Sets the menu title from the passed in string.
|
|
Sets/remove the menu items mark to the passed in inItemMark.
|
|
Sets/remove the menu items mark to the passed in inItemMark.
|
|
Loads the MacOS menu reference with the passed in resource id. If no menu can be found a CP_ThrowIfResFail exception is thrown. Under MacOSX if this is a menu with the id of kCP_FileMenuID a check will be made if there is a Quit item at the end of the menu, and if so it and its separator line (if any) will be removed from this menu. Under MacOSX the edit menu is also checked for a preference item, and it will be removed like the above file menus quit item.
|
|
Under MacOSX if this is a menu with the id of kCP_FileMenuID a check will be made if there is a Quit item at the end of the menu, and if so it and its separator line (if any) will be removed from this menu.
|
|
Under MacOSX if this is a menu with the id of kCP_EditMenuID a check will be made if there is a Preference item at the end of the menu, and if so it and its separator line (if any) will be removed from this menu.
|
|
|
|
Menu id of this menu. |
|
MacOS menu reference. |