# HG changeset patch # User hegyi # Date 1122290243 0 # Node ID 9cab23d9b124cad16cc9ef1255a5cbf5fca9c199 # Parent 1dc5b49457c01c6bc28a6f31148076510158777e Continuing adding new maps. diff -r 1dc5b49457c0 -r 9cab23d9b124 graph_displayer_canvas-event.cc --- a/graph_displayer_canvas-event.cc Mon Jul 25 10:33:03 2005 +0000 +++ b/graph_displayer_canvas-event.cc Mon Jul 25 11:17:23 2005 +0000 @@ -805,6 +805,9 @@ void GraphDisplayerCanvas::addNewEdgeMap() { + Graph::EdgeMap * emptr=new Graph::EdgeMap (g); + mapstorage.addEdgeMap("NewEdgeMap",emptr); + mapwin->registerNewEdgeMap("NewEdgeMap"); std::cout << "Add New EdgeMap is not yet implemented." << std::endl; } diff -r 1dc5b49457c0 -r 9cab23d9b124 map_win.cc --- a/map_win.cc Mon Jul 25 10:33:03 2005 +0000 +++ b/map_win.cc Mon Jul 25 11:17:23 2005 +0000 @@ -248,3 +248,13 @@ } } } + +void MapWin::registerNewEdgeMap(std::string) +{ + std::cout << "void MapWin::registerNewEdgeMap(std::string) is not yet implemented" << std::endl; +} + +void MapWin::registerNewNodeMap(std::string) +{ + std::cout << "void MapWin::registerNewNodeMap(std::string) is not yet implemented" << std::endl; +} diff -r 1dc5b49457c0 -r 9cab23d9b124 map_win.h --- a/map_win.h Mon Jul 25 10:33:03 2005 +0000 +++ b/map_win.h Mon Jul 25 11:17:23 2005 +0000 @@ -55,7 +55,14 @@ ///This function is created to set the appropriate maps on the newly created edge void updateEdge(Graph::Edge); + ///This function inserts name of the new edgemap in the list in the combo box + void registerNewEdgeMap(std::string); + + ///This function inserts name of the new nodemap in the list in the combo box + void registerNewNodeMap(std::string); + virtual bool closeIfEscapeIsPressed(GdkEventKey*); + }; #endif //MAP_WIN_H