[Lemon-commits] [lemon_svn] hegyi: r1983 - hugo/trunk/gui

Lemon SVN svn at lemon.cs.elte.hu
Mon Nov 6 20:49:16 CET 2006


Author: hegyi
Date: Fri Jun 17 16:20:49 2005
New Revision: 1983

Modified:
   hugo/trunk/gui/main_win.cc

Log:
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.

Modified: hugo/trunk/gui/main_win.cc
==============================================================================
--- hugo/trunk/gui/main_win.cc	(original)
+++ hugo/trunk/gui/main_win.cc	Fri Jun 17 16:20:49 2005
@@ -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 @@
       "    <toolitem action='ViewZoomOut' />"
       "    <toolitem action='ViewZoomFit' />"
       "    <toolitem action='ViewZoom100' />"
+      "    <separator />"
+      "    <toolitem action='CreateNode' />"
+      "    <toolitem action='CreateEdge' />"
+      "    <toolitem action='EraseItem' />"
+      "    <toolitem action='MoveItem' />"
       "  </toolbar>"
       "</ui>";
 



More information about the Lemon-commits mailing list