Holds key binding information for a single command. TBD:: it has no relation with wxDocManager's wxCommand class. Should this be more explicit in it's name?
Derived from
wxObject
Data structures
enum wxKEY_MODIFIERS { wxALT_DONW = 0x01, wxCONTROL_DOWN = 0x02, wxSHIFT_DOWN = 0x04 }Members
wxCommandInfo::wxCommandInfo
wxCommandInfo::~wxCommandInfo
wxCommandInfo::AddKey
wxCommandInfo::AddSubcommand
wxCommandInfo::AssignInfoTo
wxCommandInfo::Clone
wxCommandInfo::FindCommandById
wxCommandInfo::GetBitmap
wxCommandInfo::GetHelpString
wxCommandInfo::GetId
wxCommandInfo::GetKeyCodes
wxCommandInfo::GetKeyCount
wxCommandInfo::GetKeyModifier
wxCommandInfo::GetKeyModifiers
wxCommandInfo::GetKeyStrokeString
wxCommandInfo::GetParent
wxCommandInfo::GetStrippedTitle
wxCommandInfo::GetSubcommands
wxCommandInfo::GetTitle
wxCommandInfo::GetUserData
wxCommandInfo::HasSubcommands
wxCommandInfo::IsCheckable
wxCommandInfo::IsChecked
wxCommandInfo::IsPritableChar
wxCommandInfo::IsSeparator
wxCommandInfo::KeyCodeToString
wxCommandInfo::KeyModifierToString
wxCommandInfo::KeyPresent
wxCommandInfo::ParseKeyStrokeString
wxCommandInfo::Prepare
wxCommandInfo::RemoveKey
wxCommandInfo::ResetUserData
wxCommandInfo::SetBitmap
wxCommandInfo::SetCheckable
wxCommandInfo::SetChecked
wxCommandInfo::SetCmdParent
wxCommandInfo::SetHelpString
wxCommandInfo::SetId
wxCommandInfo::SetTitle
wxCommandInfo::SetUserData
wxCommandInfo::StringToKeyCode
wxCommandInfo::StringToKeyModifier
wxCommandInfo::StripControlChars
wxCommandInfo(int id, const wxString& title, const wxString& helpString = wxEmptyString, const wxString& keyStroke = wxEmptyString, bool isCheckable = FALSE, bool isChecked = FALSE)
ctor
wxCommandInfo()
~wxCommandInfo()
bool AddKey(int keyCode, int modifiers)
returns TRUE, if array's not overfilled
void AddSubcommand(wxCommandInfo* pInfo)
void AssignInfoTo(wxCommandInfo* pOther)
wxCommandInfo* Clone()
returns NULL for this class, but is overriden in wxCommandGroup
wxCommandInfo* FindCommandById(int id)
const wxBitmap& GetBitmap()
const wxString& GetHelpString()
int GetId()
int* GetKeyCodes()
size_t GetKeyCount()
of static wxCommandInfo objects is finished (becasue _gVKHash cannot be accessed during static inits)
int GetKeyModifier(wxKeyEvent& event)
int* GetKeyModifiers()
wxString GetKeyStrokeString(wxCommandInfo& cmd, int keyIndex)
wxString GetKeyStrokeString(wxKeyEvent& event)
wxCommandInfo* GetParent()
wxString GetStrippedTitle()
wxCommandInfoListT* GetSubcommands()
const wxString& GetTitle()
wxObject* GetUserData()
bool HasSubcommands()
bool IsCheckable()
bool IsChecked()
bool IsPritableChar(int c)
bool IsSeparator()
wxString KeyCodeToString(int keyCode)
utilities (static)
wxString KeyModifierToString(int keyModifier)
bool KeyPresent(int keyCode, int modifiers)
bool ParseKeyStrokeString(const wxString& stroke, int* key, int* modifier)
void Prepare()
called by wxKeyBinder to call after initialization
bool RemoveKey(size_t keyNo)
void ResetUserData()
void SetBitmap(const wxBitmap& bmp)
void SetCheckable(bool checkable)
void SetChecked(bool checked)
void SetCmdParent(wxCommandInfo* pParent)
void SetHelpString(const wxString& helpString)
void SetId(int id)
void SetTitle(const wxString& title)
void SetUserData(wxObject* pData)
int StringToKeyCode(const wxString& keyName)
int StringToKeyModifier(const wxString& keyModifier)
wxString StripControlChars(const wxString& cmdTitle)