making state changing calls on tool virtual

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55567 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2008-09-12 09:50:15 +00:00
parent ad237a73a8
commit fe21801d4a

View File

@@ -171,16 +171,16 @@ public:
} }
// modifiers: return true if the state really changed // modifiers: return true if the state really changed
bool Enable(bool enable); virtual bool Enable(bool enable);
bool Toggle(bool toggle); virtual bool Toggle(bool toggle);
bool SetToggle(bool toggle); virtual bool SetToggle(bool toggle);
bool SetShortHelp(const wxString& help); virtual bool SetShortHelp(const wxString& help);
bool SetLongHelp(const wxString& help); virtual bool SetLongHelp(const wxString& help);
void Toggle() { Toggle(!IsToggled()); } void Toggle() { Toggle(!IsToggled()); }
void SetNormalBitmap(const wxBitmap& bmp) { m_bmpNormal = bmp; } virtual void SetNormalBitmap(const wxBitmap& bmp) { m_bmpNormal = bmp; }
void SetDisabledBitmap(const wxBitmap& bmp) { m_bmpDisabled = bmp; } virtual void SetDisabledBitmap(const wxBitmap& bmp) { m_bmpDisabled = bmp; }
virtual void SetLabel(const wxString& label) { m_label = label; } 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 // these methods are only for tools of wxITEM_DROPDOWN kind (but even such
// tools can have a NULL associated menu) // tools can have a NULL associated menu)
void SetDropdownMenu(wxMenu *menu); virtual void SetDropdownMenu(wxMenu *menu);
wxMenu *GetDropdownMenu() const { return m_dropdownMenu; } wxMenu *GetDropdownMenu() const { return m_dropdownMenu; }
protected: protected: