hegyi@17: // -*- C++ -*- // hegyi@17: hegyi@17: #ifndef BROKEN_EDGE_H hegyi@17: #define BROKEN_EDGE_H hegyi@17: hegyi@21: class BrokenEdge; hegyi@21: hegyi@17: #include hegyi@17: #include hegyi@17: #include hegyi@21: #include hegyi@17: hegyi@17: class BrokenEdge : public Gnome::Canvas::Line hegyi@17: { hegyi@21: GraphDisplayerCanvas & gdc; hegyi@19: Gnome::Canvas::Polygon * arrow; hegyi@19: Gnome::Art::Point * my_points; hegyi@19: hegyi@21: hegyi@19: ///Indicates whether the button of mouse is pressed or not hegyi@19: bool isbutton; hegyi@19: hegyi@19: ///At this location was the mousebutton pressed. hegyi@19: ///It helps to calculate the distance of dragging. hegyi@19: double clicked_x, clicked_y; hegyi@19: hegyi@19: ///event handler for forming edges hegyi@19: bool edge_former_event_handler(GdkEvent*); hegyi@17: public: hegyi@21: BrokenEdge(Gnome::Canvas::Group &, Gnome::Canvas::Points, GraphDisplayerCanvas &); hegyi@19: ~BrokenEdge(); hegyi@20: void set_points(Gnome::Canvas::Points, bool move=false); hegyi@17: }; hegyi@17: hegyi@17: hegyi@17: #endif //BROKEN_EDGE_H hegyi@17: