1.1 --- a/gui/broken_edge.h Mon Nov 21 09:08:16 2005 +0000
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,39 +0,0 @@
1.4 -// -*- C++ -*- //
1.5 -
1.6 -#ifndef BROKEN_EDGE_H
1.7 -#define BROKEN_EDGE_H
1.8 -
1.9 -class BrokenEdge;
1.10 -
1.11 -#include "all_include.h"
1.12 -#include <libgnomecanvasmm.h>
1.13 -#include <libgnomecanvasmm/polygon.h>
1.14 -#include "graph_displayer_canvas.h"
1.15 -#include <lemon/xy.h>
1.16 -
1.17 -class BrokenEdge : public Gnome::Canvas::Line
1.18 -{
1.19 - GraphDisplayerCanvas & gdc;
1.20 - Gnome::Canvas::Polygon * arrow;
1.21 - Gnome::Art::Point * my_points;
1.22 -
1.23 -
1.24 - ///Indicates whether the button of mouse is pressed or not
1.25 - bool isbutton;
1.26 -
1.27 - ///At this location was the mousebutton pressed.
1.28 - ///It helps to calculate the distance of dragging.
1.29 - double clicked_x, clicked_y;
1.30 -
1.31 - ///event handler for forming edges
1.32 - bool edgeFormerEventHandler(GdkEvent*);
1.33 - public:
1.34 - BrokenEdge(Gnome::Canvas::Group &, Gnome::Canvas::Points, GraphDisplayerCanvas &);
1.35 - ~BrokenEdge();
1.36 - void setPoints(Gnome::Canvas::Points, bool move=false);
1.37 - xy<double> getArrowPos();
1.38 -};
1.39 -
1.40 -
1.41 -#endif //BROKEN_EDGE_H
1.42 -