]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/gtk/spinctrl.h
added wxWeakRef<T> (slightly modified patch 1860953)
[wxWidgets.git] / include / wx / gtk / spinctrl.h
index 426a01f4b07818051554c390f8a92c299b097457..98a9849da762f3d22dd703a9809def5b835b843e 100644 (file)
@@ -8,14 +8,8 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifndef __GTKSPINCTRLH__
-#define __GTKSPINCTRLH__
-
-#include "wx/defs.h"
-
-#if wxUSE_SPINCTRL
-
-#include "wx/control.h"
+#ifndef _WX_GTK_SPINCTRL_H_
+#define _WX_GTK_SPINCTRL_H_
 
 //-----------------------------------------------------------------------------
 // wxSpinCtrl
@@ -61,14 +55,14 @@ public:
     // implementation
     void OnChar( wxKeyEvent &event );
     
-    bool IsOwnGtkWindow( GdkWindow *window );
-    void GtkDisableEvents();
-    void GtkEnableEvents();
-
     int m_pos;
 
 protected:
+    void GtkDisableEvents() const;
+    void GtkEnableEvents() const;
+
     virtual wxSize DoGetBestSize() const;
+    virtual GdkWindow *GTKGetWindow(wxArrayGdkWindows& windows) const;
 
     // Widgets that use the style->base colour for the BG colour should
     // override this and return true.
@@ -79,8 +73,4 @@ private:
     DECLARE_EVENT_TABLE()
 };
 
-#endif
-    // wxUSE_SPINCTRL
-
-#endif
-    // __GTKSPINCTRLH__
+#endif // _WX_GTK_SPINCTRL_H_