# HG changeset patch
# User hegyi
# Date 1119018049 0
# Node ID 371aba7d61caefbc677f691d7e39f1959c3058c0
# Parent 39d59aee2a1acd1b1645a2d0805ac57acec6b985
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 39d59aee2a1a -r 371aba7d61ca gui/main_win.cc
--- a/gui/main_win.cc Fri Jun 17 12:25:53 2005 +0000
+++ b/gui/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 @@
" "
" "
" "
+ " "
+ " "
+ " "
+ " "
+ " "
" "
"";