A class representing a list of menu entries.
![]() | title Menu title. |
![]() | PSubMenu ( PSubMenu & menu, const PString & itemName, PMenuEntry * before = NULL ) Create a new sub-menu in a hierarchical menu system. |
![]() | ~PSubMenu () Destroy the menu and all its menu entries. |
![]() | SetString ( const PString & str ) Set the string contents of the menu item. |
![]() | GetString () const Get the current string name of the menu entry. |
![]() | GetSize () const Get the count of the number of entries contained in this sub-menu. |
![]() | operator[] ( PINDEX index ) Get the menu entry at the specified position. |
![]() | PSubMenu () Contructor for top level menues, PRootMenu class. |
![]() | Overrides from class PMenuEntry |
![]() | New functions for class |
![]() | entries List of menu items in the menu. |
![]() | UpdateMyCommandSources () Scan through all menu items in the menu and execute their notification function to enable or disable and check or uncheck the menu item. |
![]() | New functions for class |
![]() | Member variables |
Overrides from PObject
Run Time Type functions
Comparison functions
I/O functions
Miscellaneous functions
A class representing a list of menu entries. An instance of a sub-menu, rather than a PRootMenu which is descended from it, is a heirarchical menu supported by most platforms.
If a top level menu, PRootMenu class, then this returns an empty
string.
For a sub-menu item this calls the UpdateMyCommandSources() function
for all its menu entries. This function is used internally by the library. It would normally not
be called directly.
virtual ~PSubMenu()
Overrides from class PMenuEntry
virtual void SetString( const PString & str )
virtual PString GetString() const
New functions for class
PINDEX GetSize() const
virtual PMenuEntry& operator[]( PINDEX index )
New functions for class
PSubMenu()
virtual void UpdateMyCommandSources()
Alphabetic index HTML hierarchy of classes or Java