Uh, long comment arrives... Zoom update does not happen after editorial steps. Nodes initial color is light blue, if there is any item under them. Strange node-text relations disappeared. Initial values of new items are given now in a more common way. The wood-cutter way of handling default values of properties is now changed.
8 #include <all_include.h>
9 #include <libgnomecanvasmm.h>
10 #include <libgnomecanvasmm/polygon.h>
11 #include <graph_displayer_canvas.h>
14 class BrokenEdge : public Gnome::Canvas::Line
16 GraphDisplayerCanvas & gdc;
17 Gnome::Canvas::Polygon * arrow;
18 Gnome::Art::Point * my_points;
21 ///Indicates whether the button of mouse is pressed or not
24 ///At this location was the mousebutton pressed.
25 ///It helps to calculate the distance of dragging.
26 double clicked_x, clicked_y;
28 ///event handler for forming edges
29 bool edgeFormerEventHandler(GdkEvent*);
31 BrokenEdge(Gnome::Canvas::Group &, Gnome::Canvas::Points, GraphDisplayerCanvas &);
33 void setPoints(Gnome::Canvas::Points, bool move=false);
34 xy<double> getArrowPos();
38 #endif //BROKEN_EDGE_H