main_win.cc
branchgui
changeset 37 1dc5b49457c0
parent 32 1f45545f124c
child 41 06f1f9a8d51f
equal deleted inserted replaced
6:5d3c38037891 7:c13a55e07a86
    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),
    48   ag->add( Gtk::Action::create("EditEdgeMap", Gtk::Stock::PROPERTIES),
    49       sigc::bind( sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::changeEditorialTool ), 4) );
    49       sigc::bind( sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::changeEditorialTool ), 4) );
    50   ag->add( Gtk::Action::create("EditNodeMap", Gtk::Stock::PREFERENCES),
    50   ag->add( Gtk::Action::create("EditNodeMap", Gtk::Stock::PREFERENCES),
    51       sigc::bind( sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::changeEditorialTool ), 5) );
    51       sigc::bind( sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::changeEditorialTool ), 5) );
       
    52   ag->add( Gtk::Action::create("AddEdgeMap", Gtk::Stock::NEW),
       
    53       sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::addNewEdgeMap ) );
       
    54   ag->add( Gtk::Action::create("AddNodeMap", Gtk::Stock::NEW),
       
    55       sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::addNewNodeMap ) );
    52 
    56 
    53   uim=Gtk::UIManager::create();
    57   uim=Gtk::UIManager::create();
    54   uim->insert_action_group(ag);
    58   uim->insert_action_group(ag);
    55   add_accel_group(uim->get_accel_group());
    59   add_accel_group(uim->get_accel_group());
    56 
    60 
    92       "    <toolitem action='CreateEdge' />"
    96       "    <toolitem action='CreateEdge' />"
    93       "    <toolitem action='EraseItem' />"
    97       "    <toolitem action='EraseItem' />"
    94       "    <toolitem action='MoveItem' />"
    98       "    <toolitem action='MoveItem' />"
    95       "    <toolitem action='EditEdgeMap' />"
    99       "    <toolitem action='EditEdgeMap' />"
    96       "    <toolitem action='EditNodeMap' />"
   100       "    <toolitem action='EditNodeMap' />"
       
   101       "    <toolitem action='AddEdgeMap' />"
       
   102       "    <toolitem action='AddNodeMap' />"
    97       "  </toolbar>"
   103       "  </toolbar>"
    98       "</ui>";
   104       "</ui>";
    99 
   105 
   100     uim->add_ui_from_string(ui_info);
   106     uim->add_ui_from_string(ui_info);
   101 
   107