X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/77ffb5937e89927b621128789401db8921fe580f..1f0acb435592470b421b80df854fbbb08cd2853f:/include/wx/gtk1/spinctrl.h diff --git a/include/wx/gtk1/spinctrl.h b/include/wx/gtk1/spinctrl.h index e8721664ca..e748a60ac9 100644 --- a/include/wx/gtk1/spinctrl.h +++ b/include/wx/gtk1/spinctrl.h @@ -1,20 +1,16 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: spinctrl.h +// Name: wx/gtk1/spinctrl.h // Purpose: wxSpinCtrl class // Author: Robert Roebling // Modified by: // RCS-ID: $Id$ // Copyright: (c) Robert Roebling -// Licence: wxWidgets licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __GTKSPINCTRLH__ #define __GTKSPINCTRLH__ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma interface -#endif - #include "wx/defs.h" #if wxUSE_SPINCTRL @@ -25,7 +21,7 @@ // wxSpinCtrl //----------------------------------------------------------------------------- -class wxSpinCtrl : public wxControl +class WXDLLIMPEXP_CORE wxSpinCtrl : public wxControl { public: wxSpinCtrl() {} @@ -36,7 +32,7 @@ public: const wxSize& size = wxDefaultSize, long style = wxSP_ARROW_KEYS, int min = 0, int max = 100, int initial = 0, - const wxString& name = _T("wxSpinCtrl")) + const wxString& name = wxT("wxSpinCtrl")) { Create(parent, id, value, pos, size, style, min, max, initial, name); } @@ -48,7 +44,7 @@ public: const wxSize& size = wxDefaultSize, long style = wxSP_ARROW_KEYS, int min = 0, int max = 100, int initial = 0, - const wxString& name = _T("wxSpinCtrl")); + const wxString& name = wxT("wxSpinCtrl")); void SetValue(const wxString& text); void SetSelection(long from, long to); @@ -61,12 +57,11 @@ public: static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); - + // implementation void OnChar( wxKeyEvent &event ); - + bool IsOwnGtkWindow( GdkWindow *window ); - void ApplyWidgetStyle(); void GtkDisableEvents(); void GtkEnableEvents();