graph_displayer_canvas.h
changeset 149 930e838ad5b6
parent 148 5adf29662354
child 150 86273bfe0e4d
     1.1 --- a/graph_displayer_canvas.h	Mon Sep 18 16:02:20 2006 +0000
     1.2 +++ b/graph_displayer_canvas.h	Tue Sep 19 07:43:55 2006 +0000
     1.3 @@ -43,6 +43,7 @@
     1.4        virtual void draw() = 0;
     1.5        virtual void setLineWidth(int) = 0;
     1.6        virtual void setFillColor(Gdk::Color) = 0;
     1.7 +      virtual Gnome::Canvas::Item * getLine() = 0;
     1.8    };
     1.9  
    1.10    ///Edge displayer class
    1.11 @@ -97,6 +98,8 @@
    1.12  
    1.13        void setLineWidth(int);
    1.14        void setFillColor(Gdk::Color);
    1.15 +
    1.16 +      Gnome::Canvas::Item * getLine() { return (Gnome::Canvas::Item *)(&line); };
    1.17    };
    1.18  
    1.19    class LoopEdge : public EdgeBase
    1.20 @@ -109,6 +112,7 @@
    1.21        void draw();
    1.22        void setLineWidth(int);
    1.23        void setFillColor(Gdk::Color);
    1.24 +      Gnome::Canvas::Item * getLine() { return (Gnome::Canvas::Item *)(&line); };
    1.25    };
    1.26  
    1.27    ///Type of canvas, on which the graph is drawn
    1.28 @@ -259,10 +263,8 @@
    1.29    bool createEdgeEventHandler(GdkEvent*);
    1.30    ///event handler for the case when eraser-tool is active
    1.31    bool eraserEventHandler(GdkEvent*);
    1.32 -  ///event handler for the case when edge map editor tool is active
    1.33 -  bool edgeMapEditEventHandler(GdkEvent*);
    1.34 -  ///event handler for the case when node map editor tool is active
    1.35 -  bool nodeMapEditEventHandler(GdkEvent*);
    1.36 +  ///event handler for the case when map editor tool is active
    1.37 +  bool mapEditEventHandler(GdkEvent*);
    1.38  
    1.39  public:
    1.40    ///Moves the text to new place