Continuing adding new maps.
1.1 --- a/gui/graph_displayer_canvas-event.cc Mon Jul 25 10:33:03 2005 +0000
1.2 +++ b/gui/graph_displayer_canvas-event.cc Mon Jul 25 11:17:23 2005 +0000
1.3 @@ -805,6 +805,9 @@
1.4
1.5 void GraphDisplayerCanvas::addNewEdgeMap()
1.6 {
1.7 + Graph::EdgeMap<double> * emptr=new Graph::EdgeMap<double> (g);
1.8 + mapstorage.addEdgeMap("NewEdgeMap",emptr);
1.9 + mapwin->registerNewEdgeMap("NewEdgeMap");
1.10 std::cout << "Add New EdgeMap is not yet implemented." << std::endl;
1.11 }
1.12
2.1 --- a/gui/map_win.cc Mon Jul 25 10:33:03 2005 +0000
2.2 +++ b/gui/map_win.cc Mon Jul 25 11:17:23 2005 +0000
2.3 @@ -248,3 +248,13 @@
2.4 }
2.5 }
2.6 }
2.7 +
2.8 +void MapWin::registerNewEdgeMap(std::string)
2.9 +{
2.10 + std::cout << "void MapWin::registerNewEdgeMap(std::string) is not yet implemented" << std::endl;
2.11 +}
2.12 +
2.13 +void MapWin::registerNewNodeMap(std::string)
2.14 +{
2.15 + std::cout << "void MapWin::registerNewNodeMap(std::string) is not yet implemented" << std::endl;
2.16 +}
3.1 --- a/gui/map_win.h Mon Jul 25 10:33:03 2005 +0000
3.2 +++ b/gui/map_win.h Mon Jul 25 11:17:23 2005 +0000
3.3 @@ -55,7 +55,14 @@
3.4 ///This function is created to set the appropriate maps on the newly created edge
3.5 void updateEdge(Graph::Edge);
3.6
3.7 + ///This function inserts name of the new edgemap in the list in the combo box
3.8 + void registerNewEdgeMap(std::string);
3.9 +
3.10 + ///This function inserts name of the new nodemap in the list in the combo box
3.11 + void registerNewNodeMap(std::string);
3.12 +
3.13 virtual bool closeIfEscapeIsPressed(GdkEventKey*);
3.14 +
3.15 };
3.16
3.17 #endif //MAP_WIN_H