gui/main_win.cc
changeset 1579 ed7da82bbecf
parent 1512 e54392395480
child 1585 0e3ef435bdc3
equal deleted inserted replaced
5:34a818651f9d 6:a2e855785efd
    43       sigc::bind( sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::changeEditorialTool ), 2) );
    43       sigc::bind( sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::changeEditorialTool ), 2) );
    44   ag->add( Gtk::Action::create("EraseItem", Gtk::Stock::DELETE),
    44   ag->add( Gtk::Action::create("EraseItem", Gtk::Stock::DELETE),
    45       sigc::bind( sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::changeEditorialTool ), 3) );
    45       sigc::bind( sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::changeEditorialTool ), 3) );
    46   ag->add( Gtk::Action::create("MoveItem", Gtk::Stock::CONVERT),
    46   ag->add( Gtk::Action::create("MoveItem", Gtk::Stock::CONVERT),
    47       sigc::bind( sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::changeEditorialTool ), 0) );
    47       sigc::bind( sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::changeEditorialTool ), 0) );
       
    48   ag->add( Gtk::Action::create("EditEdgeMap", Gtk::Stock::PROPERTIES),
       
    49       sigc::bind( sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::changeEditorialTool ), 4) );
       
    50   ag->add( Gtk::Action::create("EditNodeMap", Gtk::Stock::PREFERENCES),
       
    51       sigc::bind( sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::changeEditorialTool ), 5) );
    48 
    52 
    49   uim=Gtk::UIManager::create();
    53   uim=Gtk::UIManager::create();
    50   uim->insert_action_group(ag);
    54   uim->insert_action_group(ag);
    51   add_accel_group(uim->get_accel_group());
    55   add_accel_group(uim->get_accel_group());
    52 
    56 
    86       "    <separator />"
    90       "    <separator />"
    87       "    <toolitem action='CreateNode' />"
    91       "    <toolitem action='CreateNode' />"
    88       "    <toolitem action='CreateEdge' />"
    92       "    <toolitem action='CreateEdge' />"
    89       "    <toolitem action='EraseItem' />"
    93       "    <toolitem action='EraseItem' />"
    90       "    <toolitem action='MoveItem' />"
    94       "    <toolitem action='MoveItem' />"
       
    95       "    <toolitem action='EditEdgeMap' />"
       
    96       "    <toolitem action='EditNodeMap' />"
    91       "  </toolbar>"
    97       "  </toolbar>"
    92       "</ui>";
    98       "</ui>";
    93 
    99 
    94     uim->add_ui_from_string(ui_info);
   100     uim->add_ui_from_string(ui_info);
    95 
   101