graph_displayer_canvas.h
branchgui
changeset 98 f60f89147531
parent 96 e664d8aa3f72
child 118 cfd49e5c8723
     1.1 --- a/graph_displayer_canvas.h	Thu Dec 08 14:16:08 2005 +0000
     1.2 +++ b/graph_displayer_canvas.h	Sat Dec 17 20:55:41 2005 +0000
     1.3 @@ -14,12 +14,13 @@
     1.4  ///This class is the canvas, on which the graph can be drawn.
     1.5  class GraphDisplayerCanvas : public Gnome::Canvas::CanvasAA
     1.6  {
     1.7 +  friend class BrokenEdge;
     1.8 +
     1.9    class BrokenEdge : public Gnome::Canvas::Line
    1.10    {
    1.11 +    Edge edge;
    1.12      GraphDisplayerCanvas & gdc;
    1.13      Gnome::Canvas::Polygon * arrow;
    1.14 -    Gnome::Art::Point * my_points;
    1.15 -
    1.16  
    1.17      ///Indicates whether the button of mouse is pressed or not
    1.18      bool isbutton;
    1.19 @@ -31,10 +32,9 @@
    1.20      ///event handler for forming edges
    1.21      bool edgeFormerEventHandler(GdkEvent*);
    1.22    public:
    1.23 -    BrokenEdge(Gnome::Canvas::Group &, Gnome::Canvas::Points, GraphDisplayerCanvas &);
    1.24 +    BrokenEdge(Gnome::Canvas::Group &, Edge, GraphDisplayerCanvas &);
    1.25      ~BrokenEdge();
    1.26 -    void setPoints(Gnome::Canvas::Points, bool move=false);
    1.27 -    xy<double> getArrowPos();
    1.28 +    void draw();
    1.29    };
    1.30    typedef Gnome::Canvas::CanvasAA Parent;
    1.31  
    1.32 @@ -200,6 +200,7 @@
    1.33    ///reference to the parent window
    1.34    NoteBookTab & mytab;
    1.35  
    1.36 +  XY GraphDisplayerCanvas::calcArrowPos(XY, XY, XY, XY, bool);
    1.37  };
    1.38  
    1.39  #endif //GRAPH_DISPLAYER_CANVAS_H