]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/gtk1/checkbox.h
Next try at avoiding too few or too many size events.
[wxWidgets.git] / include / wx / gtk1 / checkbox.h
index cf2109123b66b41703ebea75aa38491db23d3a05..562f783397d99b21a7929aa2bba141f4e4fb59c7 100644 (file)
@@ -7,7 +7,6 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-
 #ifndef __GTKCHECKBOXH__
 #define __GTKCHECKBOXH__
 
@@ -16,6 +15,9 @@
 #endif
 
 #include "wx/defs.h"
+
+#if wxUSE_CHECKBOX
+
 #include "wx/object.h"
 #include "wx/list.h"
 #include "wx/control.h"
@@ -38,8 +40,6 @@ extern const char *wxCheckBoxNameStr;
 
 class wxCheckBox: public wxControl
 {
-DECLARE_DYNAMIC_CLASS(wxCheckBox)
-
 public:
     wxCheckBox();
     wxCheckBox( wxWindow *parent, wxWindowID id, const wxString& label,
@@ -66,11 +66,22 @@ public:
     bool Enable( bool enable );
 
     // implementation
+    // --------------
+
     void ApplyWidgetStyle();
+    bool IsOwnGtkWindow( GdkWindow *window );
+    void OnInternalIdle();
 
-    bool       m_blockFirstEvent;
     GtkWidget *m_widgetCheckbox;
     GtkWidget *m_widgetLabel;
+    
+protected:
+    virtual wxSize DoGetBestSize() const;
+
+private:
+    DECLARE_DYNAMIC_CLASS(wxCheckBox)
 };
 
+#endif
+
 #endif // __GTKCHECKBOXH__