X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/37f214d588b02079a3ddf64c2e46585ca1657c1b..6b55490abdb56cd66acf9d965981c4bb4b5f2abb:/include/wx/os2/checkbox.h diff --git a/include/wx/os2/checkbox.h b/include/wx/os2/checkbox.h index 8033fd4dd0..6079d5f80a 100644 --- a/include/wx/os2/checkbox.h +++ b/include/wx/os2/checkbox.h @@ -18,16 +18,16 @@ WXDLLEXPORT_DATA(extern const char*) wxCheckBoxNameStr; // Checkbox item (single checkbox) class WXDLLEXPORT wxBitmap; -class WXDLLEXPORT wxCheckBox: public wxControl +class WXDLLEXPORT wxCheckBox : public wxCheckBoxBase { - DECLARE_DYNAMIC_CLASS(wxCheckBox) - public: inline wxCheckBox() { } inline wxCheckBox(wxWindow *parent, wxWindowID id, const wxString& label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, +#if wxUSE_VALIDATORS const wxValidator& validator = wxDefaultValidator, +#endif const wxString& name = wxCheckBoxNameStr) { Create(parent, id, label, pos, size, style, validator, name); @@ -36,7 +36,9 @@ class WXDLLEXPORT wxCheckBox: public wxControl bool Create(wxWindow *parent, wxWindowID id, const wxString& label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, +#if wxUSE_VALIDATORS const wxValidator& validator = wxDefaultValidator, +#endif const wxString& name = wxCheckBoxNameStr); virtual void SetValue(bool); @@ -49,7 +51,9 @@ class WXDLLEXPORT wxCheckBox: public wxControl WXUINT message, WXWPARAM wParam, WXLPARAM lParam); protected: - virtual wxSize DoGetBestSize(); + virtual wxSize DoGetBestSize() const; +private: + DECLARE_DYNAMIC_CLASS(wxCheckBox) }; class WXDLLEXPORT wxBitmapCheckBox: public wxCheckBox @@ -64,7 +68,9 @@ class WXDLLEXPORT wxBitmapCheckBox: public wxCheckBox inline wxBitmapCheckBox(wxWindow *parent, wxWindowID id, const wxBitmap *label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, +#if wxUSE_VALIDATORS const wxValidator& validator = wxDefaultValidator, +#endif const wxString& name = wxCheckBoxNameStr) { Create(parent, id, label, pos, size, style, validator, name); @@ -73,7 +79,9 @@ class WXDLLEXPORT wxBitmapCheckBox: public wxCheckBox bool Create(wxWindow *parent, wxWindowID id, const wxBitmap *bitmap, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, +#if wxUSE_VALIDATORS const wxValidator& validator = wxDefaultValidator, +#endif const wxString& name = wxCheckBoxNameStr); virtual void SetLabel(const wxBitmap& bitmap);