X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ac57418f39e9671c18b99942180563146625d3ae..d098a3572c1812d7a976582a59bf29e529c8a424:/include/wx/gtk1/bmpbuttn.h diff --git a/include/wx/gtk1/bmpbuttn.h b/include/wx/gtk1/bmpbuttn.h index fd1df719c8..7126dc0675 100644 --- a/include/wx/gtk1/bmpbuttn.h +++ b/include/wx/gtk1/bmpbuttn.h @@ -16,10 +16,14 @@ #endif #include "wx/defs.h" + +#if wxUSE_BMPBUTTON + #include "wx/object.h" #include "wx/list.h" #include "wx/control.h" #include "wx/bitmap.h" +#include "wx/button.h" //----------------------------------------------------------------------------- // classes @@ -31,13 +35,13 @@ class wxBitmapButton; // global data //----------------------------------------------------------------------------- -extern const char *wxButtonNameStr; +extern const wxChar *wxButtonNameStr; //----------------------------------------------------------------------------- // wxBitmapButton //----------------------------------------------------------------------------- -class wxBitmapButton: public wxControl +class wxBitmapButton: public wxButton { DECLARE_DYNAMIC_CLASS(wxBitmapButton) @@ -56,7 +60,7 @@ public: const wxSize& size = wxDefaultSize, long style = wxBU_AUTODRAW, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxButtonNameStr); - void SetDefault(); + virtual void SetDefault(); void SetLabel( const wxString &label ); wxString GetLabel() const; @@ -72,7 +76,7 @@ public: void SetBitmapLabel( const wxBitmap& bitmap ); void SetBitmapSelected( const wxBitmap& bitmap ); - virtual void Enable(const bool); + virtual bool Enable(bool enable); // implementation @@ -91,4 +95,6 @@ public: wxBitmap m_selected; }; +#endif + #endif // __BMPBUTTONH__