# HG changeset patch # User hegyi # Date 1122287583 0 # Node ID 0e3ef435bdc3849873aa2b1fff860ef4498b098e # Parent cf4bc8d477f4019a5ead05a516034e1381e4e68d Initializing adding new maps. diff -r cf4bc8d477f4 -r 0e3ef435bdc3 gui/all_include.h --- a/gui/all_include.h Fri Jul 22 16:57:07 2005 +0000 +++ b/gui/all_include.h Mon Jul 25 10:33:03 2005 +0000 @@ -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 edge_property_strings; diff -r cf4bc8d477f4 -r 0e3ef435bdc3 gui/graph_displayer_canvas-event.cc --- a/gui/graph_displayer_canvas-event.cc Fri Jul 22 16:57:07 2005 +0000 +++ b/gui/graph_displayer_canvas-event.cc Mon Jul 25 10:33:03 2005 +0000 @@ -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; +} + diff -r cf4bc8d477f4 -r 0e3ef435bdc3 gui/graph_displayer_canvas.h --- a/gui/graph_displayer_canvas.h Fri Jul 22 16:57:07 2005 +0000 +++ b/gui/graph_displayer_canvas.h Mon Jul 25 10:33:03 2005 +0000 @@ -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); diff -r cf4bc8d477f4 -r 0e3ef435bdc3 gui/main_win.cc --- a/gui/main_win.cc Fri Jul 22 16:57:07 2005 +0000 +++ b/gui/main_win.cc Mon Jul 25 10:33:03 2005 +0000 @@ -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 @@ " " " " " " + " " + " " " " "";