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