107 sigc::bind( sigc::mem_fun ( *this, &MainWin::createAlgoWin ), 0) ); |
107 sigc::bind( sigc::mem_fun ( *this, &MainWin::createAlgoWin ), 0) ); |
108 ag->add( Gtk::Action::create("AlgoKruskal", _("_Kruskal")), |
108 ag->add( Gtk::Action::create("AlgoKruskal", _("_Kruskal")), |
109 sigc::bind( sigc::mem_fun ( *this, &MainWin::createAlgoWin ), 1) ); |
109 sigc::bind( sigc::mem_fun ( *this, &MainWin::createAlgoWin ), 1) ); |
110 ag->add( Gtk::Action::create("AlgoDijkstra", _("_Dijkstra")), |
110 ag->add( Gtk::Action::create("AlgoDijkstra", _("_Dijkstra")), |
111 sigc::bind( sigc::mem_fun ( *this, &MainWin::createAlgoWin ), 2) ); |
111 sigc::bind( sigc::mem_fun ( *this, &MainWin::createAlgoWin ), 2) ); |
|
112 ag->add( Gtk::Action::create("AlgoSuurballe", _("_Suurballe")), |
|
113 sigc::bind( sigc::mem_fun ( *this, &MainWin::createAlgoWin ), 3) ); |
112 |
114 |
113 Gtk::RadioAction::Group tool_group; |
115 Gtk::RadioAction::Group tool_group; |
114 ag->add( Gtk::RadioAction::create(tool_group, "MoveItem", Gtk::StockID("gd-move"), _("Move")), |
116 ag->add( Gtk::RadioAction::create(tool_group, "MoveItem", Gtk::StockID("gd-move"), _("Move")), |
115 sigc::bind( sigc::mem_fun ( *this, &MainWin::changeEditorialTool ), 0) ); |
117 sigc::bind( sigc::mem_fun ( *this, &MainWin::changeEditorialTool ), 0) ); |
116 ag->add( Gtk::RadioAction::create(tool_group, "CreateNode", Gtk::StockID("gd-addnode"), _("Create node")), |
118 ag->add( Gtk::RadioAction::create(tool_group, "CreateNode", Gtk::StockID("gd-addnode"), _("Create node")), |
160 " </menu>" |
162 " </menu>" |
161 " <menu action='AlgoMenu'>" |
163 " <menu action='AlgoMenu'>" |
162 " <menuitem action='AlgoGeneral'/>" |
164 " <menuitem action='AlgoGeneral'/>" |
163 " <menuitem action='AlgoKruskal'/>" |
165 " <menuitem action='AlgoKruskal'/>" |
164 " <menuitem action='AlgoDijkstra'/>" |
166 " <menuitem action='AlgoDijkstra'/>" |
|
167 " <menuitem action='AlgoSuurballe'/>" |
165 " </menu>" |
168 " </menu>" |
166 " </menubar>" |
169 " </menubar>" |
167 " <toolbar name='ToolBar'>" |
170 " <toolbar name='ToolBar'>" |
168 " <toolitem action='FileNew' />" |
171 " <toolitem action='FileNew' />" |
169 " <toolitem action='FileOpen' />" |
172 " <toolitem action='FileOpen' />" |