diff -r d6b95a59da26 -r e54392395480 gui/graph_displayer_canvas.h --- a/gui/graph_displayer_canvas.h Fri Jun 24 08:44:54 2005 +0000 +++ b/gui/graph_displayer_canvas.h Fri Jun 24 18:16:12 2005 +0000 @@ -6,6 +6,7 @@ class GraphDisplayerCanvas; #include +#include #include #include #include @@ -17,20 +18,32 @@ typedef Gnome::Canvas::CanvasAA Parent; public: - GraphDisplayerCanvas(Graph &, CoordinatesMap &, MapStorage &); + GraphDisplayerCanvas(Graph &, CoordinatesMap &, MapStorage &, MapWin *); virtual ~GraphDisplayerCanvas(); ///Changes the linewidth attribute according to the given map. ///\param mapname is the name of the map which contains the new values - int changeLineWidth (std::string mapname); + int changeEdgeWidth (std::string mapname, Graph::Edge new_item=INVALID); ///Changes the linecolor attribute according to the given map. ///\param mapname is the name of the map which contains the new values - int changeColor (std::string mapname); + int changeEdgeColor (std::string mapname, Graph::Edge new_item=INVALID); ///Changes the text of line attribute according to the given map. ///\param mapname is the name of the map which contains the new values - int changeText (std::string mapname); + int changeEdgeText (std::string mapname, Graph::Edge new_item=INVALID); + + ///Changes the linewidth attribute according to the given map. + ///\param mapname is the name of the map which contains the new values + int changeNodeRadius (std::string mapname, Graph::Node new_item=INVALID); + + ///Changes the linecolor attribute according to the given map. + ///\param mapname is the name of the map which contains the new values + int changeNodeColor (std::string mapname, Graph::Node new_item=INVALID); + + ///Changes the text of line attribute according to the given map. + ///\param mapname is the name of the map which contains the new values + int changeNodeText (std::string mapname, Graph::Node new_item=INVALID); ///Callback for 'ViewZoomIn' action. virtual void zoomIn(); @@ -107,6 +120,9 @@ ///Map of texts to write on edges Graph::EdgeMap edgetextmap; + ///Map of texts to write on nodes + Graph::NodeMap nodetextmap; + ///Group of graphical elements of displayed_graph Gnome::Canvas::Group displayed_graph; @@ -133,6 +149,9 @@ static const int zoom_step = 5; + ///We need to store mapwin, to be able to ask the appropriate values for properties of new items. + MapWin * mapwin; + }; #endif //GRAPH_DISPLAYER_CANVAS_H