Lines Matching refs:btn
235 void ObjectsPanel::_styleButton(Gtk::Button& btn, char const* iconName, char const* tooltip)
239 btn.add( *Gtk::manage(Glib::wrap(child)) );
240 btn.set_relief(Gtk::RELIEF_NONE);
241 btn.set_tooltip_text (tooltip);
1830 Gtk::Button* btn = Gtk::manage( new Gtk::Button() );
1831 _styleButton(*btn, INKSCAPE_ICON("list-add"), _("Add layer..."));
1832 btn->set_relief(Gtk::RELIEF_NONE);
1833 btn->signal_clicked().connect( sigc::bind( sigc::mem_fun(*this, &ObjectsPanel::_takeAction), (int)BUTTON_NEW) );
1834 _buttonsSecondary.pack_start(*btn, Gtk::PACK_SHRINK);
1837 btn = Gtk::manage( new Gtk::Button() );
1838 _styleButton(*btn, INKSCAPE_ICON("list-remove"), _("Remove object"));
1839 btn->set_relief(Gtk::RELIEF_NONE);
1840 btn->signal_clicked().connect( sigc::bind( sigc::mem_fun(*this, &ObjectsPanel::_takeAction), (int)BUTTON_DELETE) );
1841 _watching.push_back( btn );
1842 _buttonsSecondary.pack_start(*btn, Gtk::PACK_SHRINK);
1845 btn = Gtk::manage( new Gtk::Button() );
1846 _styleButton(*btn, INKSCAPE_ICON("go-bottom"), _("Move To Bottom"));
1847 btn->set_relief(Gtk::RELIEF_NONE);
1848 btn->signal_clicked().connect( sigc::bind( sigc::mem_fun(*this, &ObjectsPanel::_takeAction), (int)BUTTON_BOTTOM) );
1849 _watchingNonBottom.push_back( btn );
1850 _buttonsPrimary.pack_end(*btn, Gtk::PACK_SHRINK);
1853 btn = Gtk::manage( new Gtk::Button() );
1854 _styleButton(*btn, INKSCAPE_ICON("go-down"), _("Move Down"));
1855 btn->set_relief(Gtk::RELIEF_NONE);
1856 btn->signal_clicked().connect( sigc::bind( sigc::mem_fun(*this, &ObjectsPanel::_takeAction), (int)BUTTON_DOWN) );
1857 _watchingNonBottom.push_back( btn );
1858 _buttonsPrimary.pack_end(*btn, Gtk::PACK_SHRINK);
1861 btn = Gtk::manage( new Gtk::Button() );
1862 _styleButton(*btn, INKSCAPE_ICON("go-up"), _("Move Up"));
1863 btn->set_relief(Gtk::RELIEF_NONE);
1864 btn->signal_clicked().connect( sigc::bind( sigc::mem_fun(*this, &ObjectsPanel::_takeAction), (int)BUTTON_UP) );
1865 _watchingNonTop.push_back( btn );
1866 _buttonsPrimary.pack_end(*btn, Gtk::PACK_SHRINK);
1869 btn = Gtk::manage( new Gtk::Button() );
1870 _styleButton(*btn, INKSCAPE_ICON("go-top"), _("Move To Top"));
1871 btn->set_relief(Gtk::RELIEF_NONE);
1872 btn->signal_clicked().connect( sigc::bind( sigc::mem_fun(*this, &ObjectsPanel::_takeAction), (int)BUTTON_TOP) );
1873 _watchingNonTop.push_back( btn );
1874 _buttonsPrimary.pack_end(*btn, Gtk::PACK_SHRINK);
1877 btn = Gtk::manage( new Gtk::Button() );
1878 _styleButton(*btn, INKSCAPE_ICON("format-indent-less"), _("Collapse All"));
1879 btn->set_relief(Gtk::RELIEF_NONE);
1880 btn->signal_clicked().connect( sigc::bind( sigc::mem_fun(*this, &ObjectsPanel::_takeAction), (int)BUTTON_COLLAPSE_ALL) );
1881 _watchingNonBottom.push_back( btn );
1882 _buttonsPrimary.pack_end(*btn, Gtk::PACK_SHRINK);