a2dMenuIdItem Class Reference

store a menu Id generated by XRCID( menuIdString ) plus a menustring and helpstring More...

#include <docviewref.h>

Collaboration diagram for a2dMenuIdItem:

Collaboration graph
[legend]

List of all members.

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)
int GetId () const
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 a2dMenuIdItemGetItemByName (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.


Detailed Description

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

Definition at line 331 of file docviewref.h.


The documentation for this class was generated from the following files:
a2dMenuIdItem Class Reference -- Tue Aug 31 18:30:56 2010 -- 31 Aug 2010 -- 1.5.5 -- wxArt2D -- . -- Main Page Reference Documentation