X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ef5c70f96f5e06e1c8f8119f51b99dd019583d2b..46b8d15a67701e1a2594b0eca820f166645e1b31:/include/wx/gtk/checkbox.h diff --git a/include/wx/gtk/checkbox.h b/include/wx/gtk/checkbox.h index c4639026ff..5ae9c7fb47 100644 --- a/include/wx/gtk/checkbox.h +++ b/include/wx/gtk/checkbox.h @@ -7,8 +7,8 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifndef __GTKCHECKBOXH__ -#define __GTKCHECKBOXH__ +#ifndef _WX_GTKCHECKBOX_H_ +#define _WX_GTKCHECKBOX_H_ // ---------------------------------------------------------------------------- // wxCheckBox @@ -39,19 +39,11 @@ public: bool GetValue() const; virtual void SetLabel( const wxString& label ); - virtual bool Enable( bool enable = TRUE ); + virtual bool Enable( bool enable = true ); static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); - // implementation - // -------------- - - GtkWidget *m_widgetCheckbox; - GtkWidget *m_widgetLabel; - - bool m_blockEvent; - protected: virtual wxSize DoGetBestSize() const; virtual void DoApplyWidgetStyle(GtkRcStyle *style); @@ -60,8 +52,16 @@ protected: void DoSet3StateValue(wxCheckBoxState state); wxCheckBoxState DoGet3StateValue() const; +public: + // implementation + void GTKDisableEvents(); + void GTKEnableEvents(); + + GtkWidget *m_widgetCheckbox; + GtkWidget *m_widgetLabel; + private: DECLARE_DYNAMIC_CLASS(wxCheckBox) }; -#endif // __GTKCHECKBOXH__ +#endif // _WX_GTKCHECKBOX_H_