gui
Last change
on this file since 28:fa28f1071bd6 was
25:c45a34eaa118,
checked in by Hegyi Péter, 19 years ago
|
Previous commit was also mine, but I forgot to say, that it was my younger brother's birthyear. From this commit texts of activated maps move together with red arrows.
|
File size:
908 bytes
|
Rev | Line | |
---|
[17] | 1 | // -*- C++ -*- // |
---|
| 2 | |
---|
| 3 | #ifndef BROKEN_EDGE_H |
---|
| 4 | #define BROKEN_EDGE_H |
---|
| 5 | |
---|
[21] | 6 | class BrokenEdge; |
---|
| 7 | |
---|
[17] | 8 | #include <all_include.h> |
---|
| 9 | #include <libgnomecanvasmm.h> |
---|
| 10 | #include <libgnomecanvasmm/polygon.h> |
---|
[21] | 11 | #include <graph_displayer_canvas.h> |
---|
[25] | 12 | #include <lemon/xy.h> |
---|
[17] | 13 | |
---|
| 14 | class BrokenEdge : public Gnome::Canvas::Line |
---|
| 15 | { |
---|
[21] | 16 | GraphDisplayerCanvas & gdc; |
---|
[19] | 17 | Gnome::Canvas::Polygon * arrow; |
---|
| 18 | Gnome::Art::Point * my_points; |
---|
| 19 | |
---|
[21] | 20 | |
---|
[19] | 21 | ///Indicates whether the button of mouse is pressed or not |
---|
| 22 | bool isbutton; |
---|
| 23 | |
---|
| 24 | ///At this location was the mousebutton pressed. |
---|
| 25 | ///It helps to calculate the distance of dragging. |
---|
| 26 | double clicked_x, clicked_y; |
---|
| 27 | |
---|
| 28 | ///event handler for forming edges |
---|
| 29 | bool edge_former_event_handler(GdkEvent*); |
---|
[17] | 30 | public: |
---|
[21] | 31 | BrokenEdge(Gnome::Canvas::Group &, Gnome::Canvas::Points, GraphDisplayerCanvas &); |
---|
[19] | 32 | ~BrokenEdge(); |
---|
[20] | 33 | void set_points(Gnome::Canvas::Points, bool move=false); |
---|
[25] | 34 | xy<double> get_arrow_pos(); |
---|
[17] | 35 | }; |
---|
| 36 | |
---|
| 37 | |
---|
| 38 | #endif //BROKEN_EDGE_H |
---|
| 39 | |
---|
Note: See
TracBrowser
for help on using the repository browser.