diff -r d5668800f774 -r 80eefca04b1e graph_displayer_canvas.h --- a/graph_displayer_canvas.h Wed Aug 17 15:20:18 2005 +0000 +++ b/graph_displayer_canvas.h Thu Aug 18 13:33:49 2005 +0000 @@ -23,27 +23,27 @@ ///Changes the linewidth attribute according to the given map. ///\param mapname is the name of the map which contains the new values - int changeEdgeWidth (std::string mapname, Graph::Edge new_item=INVALID); + int changeEdgeWidth (std::string mapname, 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 changeEdgeColor (std::string mapname, Graph::Edge new_item=INVALID); + int changeEdgeColor (std::string mapname, 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 changeEdgeText (std::string mapname, Graph::Edge new_item=INVALID); + int changeEdgeText (std::string mapname, 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); + int changeNodeRadius (std::string mapname, 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); + int changeNodeColor (std::string mapname, 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); + int changeNodeText (std::string mapname, Node new_item=INVALID); ///Callback for 'ViewZoomIn' action. virtual void zoomIn(); @@ -119,11 +119,9 @@ private: ///Deletes the given element. - void deleteItem(NodeIt); + void deleteItem(Node); ///Deletes the given element. - void deleteItem(EdgeIt); - ///Deletes the given element. - void deleteItem(Graph::Edge); + void deleteItem(Edge); private: @@ -166,9 +164,9 @@ ///1. we cannot query the item at he cursor as fast as it could not cause a Segmentation Fault ///2. we would like to handle only ony item per movement, therefore quering it is not a working solution Gnome::Canvas::Item * active_item, * target_item; - Graph::NodeIt active_node; - Graph::EdgeIt active_edge; - Graph::EdgeIt forming_edge; + Node active_node; + Edge active_edge; + Edge forming_edge; std::string nodemap_to_edit, edgemap_to_edit;