# HG changeset patch # User hegyi # Date 1119018049 0 # Node ID c4d09637b2f8cedb1326607f8110f8ba1797626f # Parent 44bb9201410852fc3ad1fbf939cf15fc140f00ac 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. diff -r 44bb92014108 -r c4d09637b2f8 main_win.cc --- a/main_win.cc Fri Jun 17 12:25:53 2005 +0000 +++ b/main_win.cc Fri Jun 17 14:20:49 2005 +0000 @@ -37,6 +37,15 @@ ag->add( Gtk::Action::create("ShowEditorials", "_Editorials"), sigc::mem_fun(*this, &MainWin::showEditorials)); + ag->add( Gtk::Action::create("CreateNode", Gtk::Stock::NO), + sigc::bind( sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::changeEditorialTool ), 1) ); + ag->add( Gtk::Action::create("CreateEdge", Gtk::Stock::REMOVE), + sigc::bind( sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::changeEditorialTool ), 2) ); + ag->add( Gtk::Action::create("EraseItem", Gtk::Stock::DELETE), + sigc::bind( sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::changeEditorialTool ), 3) ); + ag->add( Gtk::Action::create("MoveItem", Gtk::Stock::CONVERT), + sigc::bind( sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::changeEditorialTool ), 0) ); + uim=Gtk::UIManager::create(); uim->insert_action_group(ag); add_accel_group(uim->get_accel_group()); @@ -74,6 +83,11 @@ " " " " " " + " " + " " + " " + " " + " " " " "";