• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/wxWidgets-2.8.12/src/common/

Lines Matching refs:tool

71     wxASSERT_MSG( CanBeToggled(), _T("can't toggle this tool") );
164 wxToolBarToolBase *tool = CreateTool(id, label, bitmap, bmpDisabled, kind,
167 if ( !InsertTool(pos, tool) )
169 delete tool;
174 return tool;
177 wxToolBarToolBase *wxToolBarBase::AddTool(wxToolBarToolBase *tool)
179 return InsertTool(GetToolsCount(), tool);
183 wxToolBarBase::InsertTool(size_t pos, wxToolBarToolBase *tool)
188 if ( !tool || !DoInsertTool(pos, tool) )
193 m_tools.Insert(pos, tool);
195 return tool;
214 wxToolBarToolBase *tool = CreateTool(control);
216 if ( !InsertTool(pos, tool) )
218 delete tool;
223 return tool;
232 const wxToolBarToolBase * const tool = node->GetData();
233 if ( tool->IsControl() )
235 wxControl * const control = tool->GetControl();
262 wxToolBarToolBase *tool = CreateTool(wxID_SEPARATOR,
268 if ( !tool || !DoInsertTool(pos, tool) )
270 delete tool;
275 m_tools.Insert(pos, tool);
277 return tool;
295 // without knowing whether the tool is or not in the toolbar
299 wxToolBarToolBase *tool = node->GetData();
300 if ( !DoDeleteTool(pos, tool) )
307 return tool;
353 wxToolBarToolBase *tool = (wxToolBarToolBase *)NULL;
359 tool = node->GetData();
360 if ( tool->GetId() == id )
366 tool = NULL;
369 return tool;
372 void wxToolBarBase::UnToggleRadioGroup(wxToolBarToolBase *tool)
374 wxCHECK_RET( tool, _T("NULL tool in wxToolBarTool::UnToggleRadioGroup") );
376 if ( !tool->IsButton() || tool->GetKind() != wxITEM_RADIO )
379 wxToolBarToolsList::compatibility_iterator node = m_tools.Find(tool);
380 wxCHECK_RET( node, _T("invalid tool in wxToolBarTool::UnToggleRadioGroup") );
432 // notify the frame that it doesn't have a tool bar any longer to avoid
447 wxToolBarToolBase *tool = FindById(id);
448 if ( tool )
450 if ( tool->Enable(enable) )
452 DoEnableTool(tool, enable);
459 wxToolBarToolBase *tool = FindById(id);
460 if ( tool && tool->CanBeToggled() )
462 if ( tool->Toggle(toggle) )
464 UnToggleRadioGroup(tool);
465 DoToggleTool(tool, toggle);
472 wxToolBarToolBase *tool = FindById(id);
473 if ( tool )
475 if ( tool->SetToggle(toggle) )
477 DoSetToggle(tool, toggle);
484 wxToolBarToolBase *tool = FindById(id);
485 if ( tool )
487 (void)tool->SetShortHelp(help);
493 wxToolBarToolBase *tool = FindById(id);
494 if ( tool )
496 (void)tool->SetLongHelp(help);
502 wxToolBarToolBase *tool = FindById(id);
504 return tool ? tool->GetClientData() : (wxObject *)NULL;
509 wxToolBarToolBase *tool = FindById(id);
511 wxCHECK_RET( tool, _T("no such tool in wxToolBar::SetToolClientData") );
513 tool->SetClientData(clientData);
534 wxToolBarToolBase *tool = FindById(id);
535 wxCHECK_MSG( tool, false, _T("no such tool") );
537 return tool->IsToggled();
542 wxToolBarToolBase *tool = FindById(id);
543 wxCHECK_MSG( tool, false, _T("no such tool") );
545 return tool->IsEnabled();
550 wxToolBarToolBase *tool = FindById(id);
551 wxCHECK_MSG( tool, wxEmptyString, _T("no such tool") );
553 return tool->GetShortHelp();
558 wxToolBarToolBase *tool = FindById(id);
559 wxCHECK_MSG( tool, wxEmptyString, _T("no such tool") );
561 return tool->GetLongHelp();
613 // Called when the mouse cursor enters a tool bitmap (no button pressed).
617 // the tool id.
628 wxToolBarToolBase* tool = id == wxID_ANY ? (wxToolBarToolBase*)NULL : FindById(id);
629 if(tool)
630 help = tool->GetLongHelp();