X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e6feb95a79834836e88143b15d9f424ebe79621..10769d8c47c21fe0ec5034726791a5ad4cf19475:/include/wx/cmdproc.h diff --git a/include/wx/cmdproc.h b/include/wx/cmdproc.h index faa053dc89..3b09e400bd 100644 --- a/include/wx/cmdproc.h +++ b/include/wx/cmdproc.h @@ -87,6 +87,13 @@ public: int GetMaxCommands() const { return m_maxNoCommands; } virtual void ClearCommands(); + // By default, the accelerators are "\tCtrl+Z" and "\tCtrl+Y" + const wxString& GetUndoAccelerator() const { return m_undoAccelerator; } + const wxString& GetRedoAccelerator() const { return m_redoAccelerator; } + + void SetUndoAccelerator(const wxString& accel) { m_undoAccelerator = accel; } + void SetRedoAccelerator(const wxString& accel) { m_redoAccelerator = accel; } + protected: // for further flexibility, command processor doesn't call wxCommand::Do() // and Undo() directly but uses these functions which can be overridden in @@ -102,6 +109,9 @@ protected: wxMenu* m_commandEditMenu; #endif // wxUSE_MENUS + wxString m_undoAccelerator; + wxString m_redoAccelerator; + private: DECLARE_DYNAMIC_CLASS(wxCommandProcessor) };