X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/da048e3d4c244a0d0b42e6e6970ad895ea948a53..6da1ce616686ad1dc03021aead77a048971279d3:/include/wx/gtk1/spinctrl.h diff --git a/include/wx/gtk1/spinctrl.h b/include/wx/gtk1/spinctrl.h index 1bb09317c6..b02797c3e7 100644 --- a/include/wx/gtk1/spinctrl.h +++ b/include/wx/gtk1/spinctrl.h @@ -11,10 +11,16 @@ #ifndef __GTKSPINCTRLH__ #define __GTKSPINCTRLH__ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface #endif +#include "wx/defs.h" + +#if wxUSE_SPINCTRL + +#include "wx/control.h" + //----------------------------------------------------------------------------- // wxSpinCtrl //----------------------------------------------------------------------------- @@ -57,14 +63,22 @@ public: 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__