X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ce89fdd22ecbaf29569e70733d76c8f1eaca391e..2fce94e20c94073fda30327c7c835def4415361c:/include/wx/gtk/spinctrl.h diff --git a/include/wx/gtk/spinctrl.h b/include/wx/gtk/spinctrl.h index c2afe4645c..f39e5184e6 100644 --- a/include/wx/gtk/spinctrl.h +++ b/include/wx/gtk/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 //----------------------------------------------------------------------------- @@ -45,6 +51,7 @@ public: const wxString& name = _T("wxSpinCtrl")); void SetValue(const wxString& text); + void SetSelection(long from, long to); virtual int GetValue() const; virtual void SetValue( int value ); @@ -53,15 +60,26 @@ 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__