return true;
}
-#if WXWIN_COMPATIBILITY_2_2
-
-const wxBitmap& wxToolBarToolBase::GetBitmap1() const
-{
- return GetNormalBitmap();
-}
-
-const wxBitmap& wxToolBarToolBase::GetBitmap2() const
-{
- return GetDisabledBitmap();
-}
-
-void wxToolBarToolBase::SetBitmap1(const wxBitmap& bmp)
-{
- SetNormalBitmap(bmp);
-}
-
-void wxToolBarToolBase::SetBitmap2(const wxBitmap& bmp)
-{
- SetDisabledBitmap(bmp);
-}
-
-#endif // WXWIN_COMPATIBILITY_2_2
-
// ----------------------------------------------------------------------------
// wxToolBarBase adding/deleting items
// ----------------------------------------------------------------------------
wxToolBarToolsList::compatibility_iterator nodeNext = node->GetNext();
while ( nodeNext )
{
- wxToolBarToolBase *tool = nodeNext->GetData();
+ wxToolBarToolBase *toolNext = nodeNext->GetData();
- if ( !tool->IsButton() || tool->GetKind() != wxITEM_RADIO )
+ if ( !toolNext->IsButton() || toolNext->GetKind() != wxITEM_RADIO )
break;
- if ( tool->Toggle(false) )
+ if ( toolNext->Toggle(false) )
{
- DoToggleTool(tool, false);
+ DoToggleTool(toolNext, false);
}
nodeNext = nodeNext->GetNext();
wxToolBarToolsList::compatibility_iterator nodePrev = node->GetPrevious();
while ( nodePrev )
{
- wxToolBarToolBase *tool = nodePrev->GetData();
+ wxToolBarToolBase *toolNext = nodePrev->GetData();
- if ( !tool->IsButton() || tool->GetKind() != wxITEM_RADIO )
+ if ( !toolNext->IsButton() || toolNext->GetKind() != wxITEM_RADIO )
break;
- if ( tool->Toggle(false) )
+ if ( toolNext->Toggle(false) )
{
- DoToggleTool(tool, false);
+ DoToggleTool(toolNext, false);
}
nodePrev = nodePrev->GetPrevious();