objects of the right type. Also made FindById public.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24897
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxString m_shortHelpString;
wxString m_longHelpString;
wxString m_shortHelpString;
wxString m_longHelpString;
- DECLARE_NO_COPY_CLASS(wxToolBarToolBase)
+ DECLARE_DYNAMIC_CLASS_NO_COPY(wxToolBarToolBase)
};
// a list of toolbar tools
};
// a list of toolbar tools
virtual wxToolBarToolBase *FindToolForPosition(wxCoord x,
wxCoord y) const = 0;
virtual wxToolBarToolBase *FindToolForPosition(wxCoord x,
wxCoord y) const = 0;
+ // find the tool by id
+ wxToolBarToolBase *FindById(int toolid) const;
+
// return TRUE if this is a vertical toolbar, otherwise FALSE
bool IsVertical() const { return HasFlag(wxTB_VERTICAL); }
// return TRUE if this is a vertical toolbar, otherwise FALSE
bool IsVertical() const { return HasFlag(wxTB_VERTICAL); }
// helper functions
// ----------------
// helper functions
// ----------------
- // find the tool by id
- wxToolBarToolBase *FindById(int toolid) const;
-
// un-toggle all buttons in the same radio group
void UnToggleRadioGroup(wxToolBarToolBase *tool);
// un-toggle all buttons in the same radio group
void UnToggleRadioGroup(wxToolBarToolBase *tool);
// wxToolBarToolBase
// ----------------------------------------------------------------------------
// wxToolBarToolBase
// ----------------------------------------------------------------------------
+IMPLEMENT_DYNAMIC_CLASS(wxToolBarToolBase, wxObject)
+
bool wxToolBarToolBase::Enable(bool enable)
{
if ( m_enabled == enable )
bool wxToolBarToolBase::Enable(bool enable)
{
if ( m_enabled == enable )