From: Stefan Csomor Date: Fri, 12 Sep 2008 09:50:15 +0000 (+0000) Subject: making state changing calls on tool virtual X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/fe21801d4a3d44c86c5e0e142d77246837a83105?ds=inline making state changing calls on tool virtual git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55567 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/tbarbase.h b/include/wx/tbarbase.h index 4246032a5b..b0be7b0e7b 100644 --- a/include/wx/tbarbase.h +++ b/include/wx/tbarbase.h @@ -171,16 +171,16 @@ public: } // modifiers: return true if the state really changed - bool Enable(bool enable); - bool Toggle(bool toggle); - bool SetToggle(bool toggle); - bool SetShortHelp(const wxString& help); - bool SetLongHelp(const wxString& help); + virtual bool Enable(bool enable); + virtual bool Toggle(bool toggle); + virtual bool SetToggle(bool toggle); + virtual bool SetShortHelp(const wxString& help); + virtual bool SetLongHelp(const wxString& help); void Toggle() { Toggle(!IsToggled()); } - void SetNormalBitmap(const wxBitmap& bmp) { m_bmpNormal = bmp; } - void SetDisabledBitmap(const wxBitmap& bmp) { m_bmpDisabled = bmp; } + virtual void SetNormalBitmap(const wxBitmap& bmp) { m_bmpNormal = bmp; } + virtual void SetDisabledBitmap(const wxBitmap& bmp) { m_bmpDisabled = bmp; } virtual void SetLabel(const wxString& label) { m_label = label; } @@ -202,7 +202,7 @@ public: // these methods are only for tools of wxITEM_DROPDOWN kind (but even such // tools can have a NULL associated menu) - void SetDropdownMenu(wxMenu *menu); + virtual void SetDropdownMenu(wxMenu *menu); wxMenu *GetDropdownMenu() const { return m_dropdownMenu; } protected: