# HG changeset patch # User hegyi # Date 1122290243 0 # Node ID 1a8630f2e9440077616aadbf3fa957221afa1c0d # Parent 0e3ef435bdc3849873aa2b1fff860ef4498b098e Continuing adding new maps. diff -r 0e3ef435bdc3 -r 1a8630f2e944 gui/graph_displayer_canvas-event.cc --- a/gui/graph_displayer_canvas-event.cc Mon Jul 25 10:33:03 2005 +0000 +++ b/gui/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 0e3ef435bdc3 -r 1a8630f2e944 gui/map_win.cc --- a/gui/map_win.cc Mon Jul 25 10:33:03 2005 +0000 +++ b/gui/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 0e3ef435bdc3 -r 1a8630f2e944 gui/map_win.h --- a/gui/map_win.h Mon Jul 25 10:33:03 2005 +0000 +++ b/gui/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