X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/74e34480fbfd892bc6450c3978b825b81c3c870b..56b79cb98da2e2e3024fce6f6313546577c34821:/include/wx/gtk/accel.h?ds=sidebyside diff --git a/include/wx/gtk/accel.h b/include/wx/gtk/accel.h index 4765e6fe3d..51efa101f7 100644 --- a/include/wx/gtk/accel.h +++ b/include/wx/gtk/accel.h @@ -15,6 +15,9 @@ #endif #include "wx/defs.h" + +#if wxUSE_ACCEL + #include "wx/object.h" #include "wx/event.h" @@ -53,8 +56,7 @@ extern wxAcceleratorTable wxNullAcceleratorTable; class wxAcceleratorEntry: public wxObject { - public: - +public: wxAcceleratorEntry(int flags = 0, int keyCode = 0, int cmd = 0) { m_flags = flags; m_keyCode = keyCode; m_command = cmd; } @@ -76,9 +78,7 @@ class wxAcceleratorEntry: public wxObject class wxAcceleratorTable: public wxObject { - DECLARE_DYNAMIC_CLASS(wxAcceleratorTable) - - public: +public: wxAcceleratorTable(); wxAcceleratorTable(int n, wxAcceleratorEntry entries[] ); ~wxAcceleratorTable(); @@ -96,10 +96,15 @@ class wxAcceleratorTable: public wxObject bool Ok() const; -// private: - - int GetCommand( wxKeyEvent &event ); + // implementation + // -------------- + + int GetCommand( wxKeyEvent &event ); +private: + DECLARE_DYNAMIC_CLASS(wxAcceleratorTable) }; #endif + +#endif