[Lemon-commits] [lemon_svn] hegyi: r2088 - hugo/trunk/gui
Lemon SVN
svn at lemon.cs.elte.hu
Mon Nov 6 20:50:03 CET 2006
Author: hegyi
Date: Mon Jul 25 12:33:03 2005
New Revision: 2088
Modified:
hugo/trunk/gui/all_include.h
hugo/trunk/gui/graph_displayer_canvas-event.cc
hugo/trunk/gui/graph_displayer_canvas.h
hugo/trunk/gui/main_win.cc
Log:
Initializing adding new maps.
Modified: hugo/trunk/gui/all_include.h
==============================================================================
--- hugo/trunk/gui/all_include.h (original)
+++ hugo/trunk/gui/all_include.h Mon Jul 25 12:33:03 2005
@@ -22,7 +22,7 @@
#define RANGE 3
#define WIN_WIDTH 900
#define WIN_HEIGHT 600
-#define ALMOST_ONE 0.99999999999999
+#define ALMOST_ONE 0.9999999999
#ifndef MAIN_PART
extern std::vector <std::string> edge_property_strings;
Modified: hugo/trunk/gui/graph_displayer_canvas-event.cc
==============================================================================
--- hugo/trunk/gui/graph_displayer_canvas-event.cc (original)
+++ hugo/trunk/gui/graph_displayer_canvas-event.cc Mon Jul 25 12:33:03 2005
@@ -803,3 +803,13 @@
}
+void GraphDisplayerCanvas::addNewEdgeMap()
+{
+ std::cout << "Add New EdgeMap is not yet implemented." << std::endl;
+}
+
+void GraphDisplayerCanvas::addNewNodeMap()
+{
+ std::cout << "Add New NodeMap is not yet implemented." << std::endl;
+}
+
Modified: hugo/trunk/gui/graph_displayer_canvas.h
==============================================================================
--- hugo/trunk/gui/graph_displayer_canvas.h (original)
+++ hugo/trunk/gui/graph_displayer_canvas.h Mon Jul 25 12:33:03 2005
@@ -109,6 +109,11 @@
///\return the actual tool in hand
int getActualTool();
+ ///creates a new Nodemap
+ void addNewNodeMap();
+ ///creates a new Edgemap
+ void addNewEdgeMap();
+
private:
///Deletes the given element.
void deleteItem(NodeIt);
Modified: hugo/trunk/gui/main_win.cc
==============================================================================
--- hugo/trunk/gui/main_win.cc (original)
+++ hugo/trunk/gui/main_win.cc Mon Jul 25 12:33:03 2005
@@ -49,6 +49,10 @@
sigc::bind( sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::changeEditorialTool ), 4) );
ag->add( Gtk::Action::create("EditNodeMap", Gtk::Stock::PREFERENCES),
sigc::bind( sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::changeEditorialTool ), 5) );
+ ag->add( Gtk::Action::create("AddEdgeMap", Gtk::Stock::NEW),
+ sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::addNewEdgeMap ) );
+ ag->add( Gtk::Action::create("AddNodeMap", Gtk::Stock::NEW),
+ sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::addNewNodeMap ) );
uim=Gtk::UIManager::create();
uim->insert_action_group(ag);
@@ -94,6 +98,8 @@
" <toolitem action='MoveItem' />"
" <toolitem action='EditEdgeMap' />"
" <toolitem action='EditNodeMap' />"
+ " <toolitem action='AddEdgeMap' />"
+ " <toolitem action='AddNodeMap' />"
" </toolbar>"
"</ui>";
More information about the Lemon-commits
mailing list