X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/da048e3d4c244a0d0b42e6e6970ad895ea948a53..bfb9ee966d5d1f29e49f38e340812ade4b3cc956:/include/wx/gtk/spinctrl.h diff --git a/include/wx/gtk/spinctrl.h b/include/wx/gtk/spinctrl.h index 1bb09317c6..14065fb96a 100644 --- a/include/wx/gtk/spinctrl.h +++ b/include/wx/gtk/spinctrl.h @@ -15,6 +15,12 @@ #pragma interface #endif +#include "wx/defs.h" + +#if wxUSE_SPINCTRL + +#include "wx/control.h" + //----------------------------------------------------------------------------- // wxSpinCtrl //----------------------------------------------------------------------------- @@ -53,18 +59,28 @@ public: virtual int GetMax() const; // implementation + // -------------- + void OnChar( wxKeyEvent &event ); bool IsOwnGtkWindow( GdkWindow *window ); void ApplyWidgetStyle(); + void GtkDisableEvents(); + void GtkEnableEvents(); GtkAdjustment *m_adjust; float m_oldPos; +protected: + virtual wxSize DoGetBestSize() const; + private: DECLARE_DYNAMIC_CLASS(wxSpinCtrl) DECLARE_EVENT_TABLE() }; +#endif + // wxUSE_SPINCTRL + #endif // __GTKSPINCTRLH__