|
wxArt2D
|
store a menu Id generated by XRCID( menuIdString ) plus a menustring and helpstring More...
#include <comevt.h>


Public Member Functions | |
| a2dMenuIdItem (const wxString &menuIdName=wxEmptyString, const wxString &text=wxEmptyString, const wxString &help=wxEmptyString, wxItemKind kind=wxITEM_NORMAL) | |
| constructor | |
| virtual | ~a2dMenuIdItem () |
| destructor | |
| void | SetId (int itemid) |
| set id | |
| int | GetId () const |
| get id | |
| bool | SameId (const a2dMenuIdItem &other) const |
| check if same id. | |
| virtual void | SetText (const wxString &str) |
| wxString | GetLabel () const |
| get label text | |
| const wxString & | GetText () const |
| get plain text for menu | |
| wxItemKind | GetKind () const |
| what kind of menu item we are | |
| void | SetKind (wxItemKind kind) |
| virtual void | SetCheckable (bool checkable) |
| set if menu is checkable | |
| bool | IsCheckable () const |
| get if menu is checkable | |
| virtual void | Enable (bool enable=true) |
| initial state of menu | |
| virtual bool | IsEnabled () const |
| initial state of menu | |
| virtual void | Check (bool check=true) |
| set initial check state of menu | |
| virtual bool | IsChecked () const |
| get initial check state of menu | |
| void | Toggle () |
| toggel initial check state of menu | |
| void | SetHelp (const wxString &str) |
| const wxString & | GetHelp () const |
| void | SetBitmaps (const wxBitmap &bmpChecked, const wxBitmap &bmpUnchecked=wxNullBitmap) |
| void | SetBitmap (const wxBitmap &bmp) |
| const wxBitmap & | GetBitmap (bool checked=true) const |
| void | SetDisabledBitmap (const wxBitmap &bmpDisabled) |
| const wxBitmap & | GetDisabledBitmap () const |
| wxString | GetIdName () const |
| name of the menu coupled to unique id | |
Static Public Member Functions | |
| static wxString | GetLabelText (const wxString &text) |
| get the label from text (implemented in platform-specific code) | |
| static const a2dMenuIdItem & | GetItemByName (const wxString &menuIdName) |
| search Id given the name of the command | |
| static a2dMenuIdItemMap & | GetHashMap () |
| stored map of names to get id | |
| static void | InitializeBitmaps () |
| initialize bitmaps associated with found a2dMenuIdItem's from files | |
| static bool | GetInitialized () |
| Are the bitmaps for button bar etc. initlialized? | |
Static Public Attributes | |
| static const a2dMenuIdItem | sm_noCmdMenuId = a2dMenuIdItem( wxT( "NoCommandId" ) ) |
| constant to defined non valid id. | |
store a menu Id generated by XRCID( menuIdString ) plus a menustring and helpstring
The class instance can be used to add directly to a menu