Changeset 28:fa28f1071bd6 in glemon-0.x for graph_displayer_canvas.h
- Timestamp:
- 06/24/05 20:16:12 (19 years ago)
- Branch:
- gui
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk/gui@1996
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
graph_displayer_canvas.h
r25 r28 7 7 8 8 #include <all_include.h> 9 #include <map_win.h> 9 10 #include <mapstorage.h> 10 11 #include <broken_edge.h> … … 18 19 19 20 public: 20 GraphDisplayerCanvas(Graph &, CoordinatesMap &, MapStorage & );21 GraphDisplayerCanvas(Graph &, CoordinatesMap &, MapStorage &, MapWin *); 21 22 virtual ~GraphDisplayerCanvas(); 22 23 23 24 ///Changes the linewidth attribute according to the given map. 24 25 ///\param mapname is the name of the map which contains the new values 25 int change LineWidth (std::string mapname);26 int changeEdgeWidth (std::string mapname, Graph::Edge new_item=INVALID); 26 27 27 28 ///Changes the linecolor attribute according to the given map. 28 29 ///\param mapname is the name of the map which contains the new values 29 int change Color (std::string mapname);30 int changeEdgeColor (std::string mapname, Graph::Edge new_item=INVALID); 30 31 31 32 ///Changes the text of line attribute according to the given map. 32 33 ///\param mapname is the name of the map which contains the new values 33 int changeText (std::string mapname); 34 int changeEdgeText (std::string mapname, Graph::Edge new_item=INVALID); 35 36 ///Changes the linewidth attribute according to the given map. 37 ///\param mapname is the name of the map which contains the new values 38 int changeNodeRadius (std::string mapname, Graph::Node new_item=INVALID); 39 40 ///Changes the linecolor attribute according to the given map. 41 ///\param mapname is the name of the map which contains the new values 42 int changeNodeColor (std::string mapname, Graph::Node new_item=INVALID); 43 44 ///Changes the text of line attribute according to the given map. 45 ///\param mapname is the name of the map which contains the new values 46 int changeNodeText (std::string mapname, Graph::Node new_item=INVALID); 34 47 35 48 ///Callback for 'ViewZoomIn' action. … … 108 121 Graph::EdgeMap<Gnome::Canvas::Text *> edgetextmap; 109 122 123 ///Map of texts to write on nodes 124 Graph::NodeMap<Gnome::Canvas::Text *> nodetextmap; 125 110 126 ///Group of graphical elements of displayed_graph 111 127 Gnome::Canvas::Group displayed_graph; … … 134 150 static const int zoom_step = 5; 135 151 152 ///We need to store mapwin, to be able to ask the appropriate values for properties of new items. 153 MapWin * mapwin; 154 136 155 }; 137 156
Note: See TracChangeset
for help on using the changeset viewer.