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

Lines Matching refs:tool

164                                   wxToolBarTool *tool )
169 wxToolBar *tbar = (wxToolBar *)tool->GetToolBar();
174 if (!tool->IsEnabled()) return;
176 if (tool->CanBeToggled())
178 if (tool->IsRadio() &&
180 tool->IsToggled())
186 tool->Toggle();
188 tool->SetImage(tool->GetBitmap());
190 if ( tool->IsRadio() && !tool->IsToggled() )
197 if( !tbar->OnLeftClick( tool->GetId(), tool->IsToggled() ) && tool->CanBeToggled() )
200 tool->Toggle();
202 tool->SetImage(tool->GetBitmap());
213 wxToolBarToolBase *tool)
218 wxToolBar *tbar = (wxToolBar *)tool->GetToolBar();
223 if (!tool->IsEnabled()) return TRUE;
225 tbar->OnRightClick( tool->GetId(), (int)event->x, (int)event->y );
238 wxToolBarTool *tool )
244 wxToolBar *tb = (wxToolBar *)tool->GetToolBar();
248 tb->OnMouseEnter( tool->GetId() );
395 wxToolBarTool* tool = wx_static_cast(wxToolBarTool*, toolBase);
397 if ( tool->IsButton() )
401 wxBitmap bitmap = tool->GetNormalBitmap();
406 tool->m_image = gtk_image_new();
407 tool->SetImage(bitmap);
409 gtk_misc_set_alignment((GtkMisc*)tool->m_image, 0.5, 0.5);
415 switch ( tool->GetStyle() )
424 if ( tool->IsRadio() )
447 tool->Toggle(true);
451 tool->m_item = gtk_toolbar_insert_element
454 tool->GetGtkChildType(),
456 tool->GetLabel().empty()
458 : (const char*) wxGTK_CONV( tool->GetLabel() ),
459 tool->GetShortHelp().empty()
461 : (const char*) wxGTK_CONV( tool->GetShortHelp() ),
463 tool->m_image,
465 (gpointer)tool,
469 wxCHECK_MSG(tool->m_item != NULL, false, _T("gtk_toolbar_insert_element() failed"));
471 g_signal_connect (tool->m_item, "enter_notify_event",
473 tool);
474 g_signal_connect (tool->m_item, "leave_notify_event",
476 tool);
477 g_signal_connect(tool->m_item, "button-press-event",
479 tool);
492 gtk_container_add((GtkContainer*)align, tool->GetControl()->m_widget);
500 tool->m_item = align;
516 wxToolBarTool* tool = wx_static_cast(wxToolBarTool*, toolBase);
518 switch ( tool->GetStyle() )
526 GTK_CONTAINER(tool->m_item), tool->GetControl()->m_widget);
530 gtk_widget_destroy( tool->m_item );
531 tool->m_item = NULL;
549 wxToolBarTool* tool = wx_static_cast(wxToolBarTool*, toolBase);
551 if (tool->m_item)
553 gtk_widget_set_sensitive( tool->m_item, enable );
559 wxToolBarTool* tool = wx_static_cast(wxToolBarTool*, toolBase);
561 GtkWidget *item = tool->m_item;
564 tool->SetImage(tool->GetBitmap());
574 void wxToolBar::DoSetToggle(wxToolBarToolBase * WXUNUSED(tool),
615 wxToolBarTool* tool = wx_static_cast(wxToolBarTool*, FindById(id));
617 if ( tool )
619 (void)tool->SetShortHelp(helpString);
620 gtk_tooltips_set_tip(m_toolbar->tooltips, tool->m_item,
627 wxToolBarTool* tool = wx_static_cast(wxToolBarTool*, FindById(id));
628 if ( tool )
630 wxCHECK_RET( tool->IsButton(), wxT("Can only set bitmap on button tools."));
632 tool->SetNormalBitmap(bitmap);
633 tool->SetImage(tool->GetBitmap());
639 wxToolBarTool* tool = wx_static_cast(wxToolBarTool*, FindById(id));
640 if ( tool )
642 wxCHECK_RET( tool->IsButton(), wxT("Can only set bitmap on button tools."));
644 tool->SetDisabledBitmap(bitmap);
645 tool->SetImage(tool->GetBitmap());
682 wxToolBarTool *tool = (wxToolBarTool *)node->GetData();
685 GtkWidget *item = tool->m_item;