diff -r 5adf29662354 -r 930e838ad5b6 graph_displayer_canvas.h --- a/graph_displayer_canvas.h Mon Sep 18 16:02:20 2006 +0000 +++ b/graph_displayer_canvas.h Tue Sep 19 07:43:55 2006 +0000 @@ -43,6 +43,7 @@ virtual void draw() = 0; virtual void setLineWidth(int) = 0; virtual void setFillColor(Gdk::Color) = 0; + virtual Gnome::Canvas::Item * getLine() = 0; }; ///Edge displayer class @@ -97,6 +98,8 @@ void setLineWidth(int); void setFillColor(Gdk::Color); + + Gnome::Canvas::Item * getLine() { return (Gnome::Canvas::Item *)(&line); }; }; class LoopEdge : public EdgeBase @@ -109,6 +112,7 @@ void draw(); void setLineWidth(int); void setFillColor(Gdk::Color); + Gnome::Canvas::Item * getLine() { return (Gnome::Canvas::Item *)(&line); }; }; ///Type of canvas, on which the graph is drawn @@ -259,10 +263,8 @@ bool createEdgeEventHandler(GdkEvent*); ///event handler for the case when eraser-tool is active bool eraserEventHandler(GdkEvent*); - ///event handler for the case when edge map editor tool is active - bool edgeMapEditEventHandler(GdkEvent*); - ///event handler for the case when node map editor tool is active - bool nodeMapEditEventHandler(GdkEvent*); + ///event handler for the case when map editor tool is active + bool mapEditEventHandler(GdkEvent*); public: ///Moves the text to new place