Three commits, one after the other! 81 is my, 82 is my fiancee's, 83 is my younger sister's birthyear :) In this commit Alpar's wish came true: editorial buttons are now available directly on toolbar.
1.1 --- a/gui/main_win.cc Fri Jun 17 12:25:53 2005 +0000
1.2 +++ b/gui/main_win.cc Fri Jun 17 14:20:49 2005 +0000
1.3 @@ -37,6 +37,15 @@
1.4 ag->add( Gtk::Action::create("ShowEditorials", "_Editorials"),
1.5 sigc::mem_fun(*this, &MainWin::showEditorials));
1.6
1.7 + ag->add( Gtk::Action::create("CreateNode", Gtk::Stock::NO),
1.8 + sigc::bind( sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::changeEditorialTool ), 1) );
1.9 + ag->add( Gtk::Action::create("CreateEdge", Gtk::Stock::REMOVE),
1.10 + sigc::bind( sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::changeEditorialTool ), 2) );
1.11 + ag->add( Gtk::Action::create("EraseItem", Gtk::Stock::DELETE),
1.12 + sigc::bind( sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::changeEditorialTool ), 3) );
1.13 + ag->add( Gtk::Action::create("MoveItem", Gtk::Stock::CONVERT),
1.14 + sigc::bind( sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::changeEditorialTool ), 0) );
1.15 +
1.16 uim=Gtk::UIManager::create();
1.17 uim->insert_action_group(ag);
1.18 add_accel_group(uim->get_accel_group());
1.19 @@ -74,6 +83,11 @@
1.20 " <toolitem action='ViewZoomOut' />"
1.21 " <toolitem action='ViewZoomFit' />"
1.22 " <toolitem action='ViewZoom100' />"
1.23 + " <separator />"
1.24 + " <toolitem action='CreateNode' />"
1.25 + " <toolitem action='CreateEdge' />"
1.26 + " <toolitem action='EraseItem' />"
1.27 + " <toolitem action='MoveItem' />"
1.28 " </toolbar>"
1.29 "</ui>";
1.30