diff -r 2c43106bef85 -r 3d2e3cfb2a6c gui/graph_displayer_canvas.h --- a/gui/graph_displayer_canvas.h Thu May 26 16:32:26 2005 +0000 +++ b/gui/graph_displayer_canvas.h Fri May 27 10:34:20 2005 +0000 @@ -8,6 +8,7 @@ #include #include +///This class is the canvas, on which the graph can be drawn. class GraphDisplayerCanvas : public Gnome::Canvas::CanvasAA { typedef Gnome::Canvas::CanvasAA Parent; @@ -16,25 +17,40 @@ GraphDisplayerCanvas(Graph &, CoordinatesMap &, MapStorage &); 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); + + ///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); + + ///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); + + ///Changes the dot-pro-pixel to be able to show the whole graph. int rezoom(); protected: + //maximizing, minimizing, restoring window, etc. virtual bool on_expose_event(GdkEventExpose *); private: - ///Event handler function that handles dragging nodes of displayed_graph + ///This function is responsible for the correct + ///reaction of any action happened in the territory + ///of the canvas bool event_handler(GdkEvent* e, Node n); ///The graph, on which we work Graph g; - ///Map of nodes of planefigure + + ///Map of nodes of graph Graph::NodeMap nodesmap; - ///Map of edges of planefigure + + ///Map of edges of graph Graph::EdgeMap edgesmap; ///Map of texts to write on edges