Lines Matching defs:btn
88 void LayersPanel::_styleButton( Gtk::Button& btn, SPDesktop *desktop, unsigned int code, char const* iconName, char const* fallback )
95 btn.add( *Gtk::manage(Glib::wrap(child)) );
96 btn.set_relief(Gtk::RELIEF_NONE);
107 btn.add( *Gtk::manage(Glib::wrap(child)) );
112 btn.set_tooltip_text (action->tip);
118 btn.set_label( fallback );
891 Gtk::Button* btn = Gtk::manage( new Gtk::Button() );
892 _styleButton( *btn, targetDesktop, SP_VERB_LAYER_NEW, INKSCAPE_ICON("list-add"), C_("Layers", "New") );
893 btn->signal_clicked().connect( sigc::bind( sigc::mem_fun(*this, &LayersPanel::_takeAction), (int)BUTTON_NEW) );
894 _buttonsSecondary.pack_start(*btn, Gtk::PACK_SHRINK);
896 btn = Gtk::manage( new Gtk::Button() );
897 _styleButton( *btn, targetDesktop, SP_VERB_LAYER_TO_BOTTOM, INKSCAPE_ICON("go-bottom"), C_("Layers", "Bot") );
898 btn->signal_clicked().connect( sigc::bind( sigc::mem_fun(*this, &LayersPanel::_takeAction), (int)BUTTON_BOTTOM) );
899 _watchingNonBottom.push_back( btn );
900 _buttonsPrimary.pack_end(*btn, Gtk::PACK_SHRINK);
902 btn = Gtk::manage( new Gtk::Button() );
903 _styleButton( *btn, targetDesktop, SP_VERB_LAYER_LOWER, INKSCAPE_ICON("go-down"), C_("Layers", "Dn") );
904 btn->signal_clicked().connect( sigc::bind( sigc::mem_fun(*this, &LayersPanel::_takeAction), (int)BUTTON_DOWN) );
905 _watchingNonBottom.push_back( btn );
906 _buttonsPrimary.pack_end(*btn, Gtk::PACK_SHRINK);
908 btn = Gtk::manage( new Gtk::Button() );
909 _styleButton( *btn, targetDesktop, SP_VERB_LAYER_RAISE, INKSCAPE_ICON("go-up"), C_("Layers", "Up") );
910 btn->signal_clicked().connect( sigc::bind( sigc::mem_fun(*this, &LayersPanel::_takeAction), (int)BUTTON_UP) );
911 _watchingNonTop.push_back( btn );
912 _buttonsPrimary.pack_end(*btn, Gtk::PACK_SHRINK);
914 btn = Gtk::manage( new Gtk::Button() );
915 _styleButton( *btn, targetDesktop, SP_VERB_LAYER_TO_TOP, INKSCAPE_ICON("go-top"), C_("Layers", "Top") );
916 btn->signal_clicked().connect( sigc::bind( sigc::mem_fun(*this, &LayersPanel::_takeAction), (int)BUTTON_TOP) );
917 _watchingNonTop.push_back( btn );
918 _buttonsPrimary.pack_end(*btn, Gtk::PACK_SHRINK);
920 // btn = Gtk::manage( new Gtk::Button("Dup") );
921 // btn->signal_clicked().connect( sigc::bind( sigc::mem_fun(*this, &LayersPanel::_takeAction), (int)BUTTON_DUPLICATE) );
922 // _buttonsRow.add( *btn );
924 btn = Gtk::manage( new Gtk::Button() );
925 _styleButton( *btn, targetDesktop, SP_VERB_LAYER_DELETE, INKSCAPE_ICON("list-remove"), _("X") );
926 btn->signal_clicked().connect( sigc::bind( sigc::mem_fun(*this, &LayersPanel::_takeAction), (int)BUTTON_DELETE) );
927 _watching.push_back( btn );
928 _buttonsSecondary.pack_start(*btn, Gtk::PACK_SHRINK);