Changeset 89:4042761b21e3 in glemon-0.x for graph_displayer_canvas.h
- Timestamp:
- 11/21/05 13:07:05 (18 years ago)
- Branch:
- gui
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk/gui@2368
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
graph_displayer_canvas.h
r88 r89 8 8 #include "all_include.h" 9 9 #include "mapstorage.h" 10 #include "broken_edge.h"11 10 #include "map_win.h" 12 11 #include <libgnomecanvasmm.h> 13 12 #include <libgnomecanvasmm/polygon.h> 13 #include <lemon/xy.h> 14 14 15 15 ///This class is the canvas, on which the graph can be drawn. 16 16 class GraphDisplayerCanvas : public Gnome::Canvas::CanvasAA 17 17 { 18 class BrokenEdge : public Gnome::Canvas::Line 19 { 20 GraphDisplayerCanvas & gdc; 21 Gnome::Canvas::Polygon * arrow; 22 Gnome::Art::Point * my_points; 23 24 25 ///Indicates whether the button of mouse is pressed or not 26 bool isbutton; 27 28 ///At this location was the mousebutton pressed. 29 ///It helps to calculate the distance of dragging. 30 double clicked_x, clicked_y; 31 32 ///event handler for forming edges 33 bool edgeFormerEventHandler(GdkEvent*); 34 public: 35 BrokenEdge(Gnome::Canvas::Group &, Gnome::Canvas::Points, GraphDisplayerCanvas &); 36 ~BrokenEdge(); 37 void setPoints(Gnome::Canvas::Points, bool move=false); 38 xy<double> getArrowPos(); 39 }; 18 40 typedef Gnome::Canvas::CanvasAA Parent; 19 41
Note: See TracChangeset
for help on using the changeset viewer.