main_win.cc
branchgui
changeset 35 79bffdf6aea2
parent 28 fa28f1071bd6
child 37 1dc5b49457c0
equal deleted inserted replaced
5:161793fdfd65 6:5d3c38037891
    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