X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/738f9e5a12b8bb3936cc10347be98390602d3660..31d80f31afd5e78f86d3d9e8e52d7124aac36a32:/include/wx/gtk1/spinctrl.h diff --git a/include/wx/gtk1/spinctrl.h b/include/wx/gtk1/spinctrl.h index b3a0d0cdd6..1bb09317c6 100644 --- a/include/wx/gtk1/spinctrl.h +++ b/include/wx/gtk1/spinctrl.h @@ -16,7 +16,7 @@ #endif //----------------------------------------------------------------------------- -// wxSpinButton +// wxSpinCtrl //----------------------------------------------------------------------------- class wxSpinCtrl : public wxControl @@ -25,29 +25,36 @@ public: wxSpinCtrl() {} wxSpinCtrl(wxWindow *parent, wxWindowID id = -1, + const wxString& value = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSP_ARROW_KEYS, int min = 0, int max = 100, int initial = 0, const wxString& name = _T("wxSpinCtrl")) { - Create(parent, id, pos, size, style, min, max, initial, name); + Create(parent, id, value, pos, size, style, min, max, initial, name); } bool Create(wxWindow *parent, wxWindowID id = -1, + const wxString& value = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSP_ARROW_KEYS, int min = 0, int max = 100, int initial = 0, const wxString& name = _T("wxSpinCtrl")); + void SetValue(const wxString& text); + virtual int GetValue() const; virtual void SetValue( int value ); virtual void SetRange( int minVal, int maxVal ); virtual int GetMin() const; virtual int GetMax() const; + // implementation + void OnChar( wxKeyEvent &event ); + bool IsOwnGtkWindow( GdkWindow *window ); void ApplyWidgetStyle(); @@ -56,6 +63,7 @@ public: private: DECLARE_DYNAMIC_CLASS(wxSpinCtrl) + DECLARE_EVENT_TABLE() }; #endif