graph_displayer_canvas.h
changeset 150 86273bfe0e4d
parent 149 930e838ad5b6
child 151 72f1c33f89d4
equal deleted inserted replaced
36:d26b30b8fbb4 37:cd093f206b05
     7 
     7 
     8 #include "all_include.h"
     8 #include "all_include.h"
     9 #include "nbtab.h"
     9 #include "nbtab.h"
    10 #include <libgnomecanvasmm.h>
    10 #include <libgnomecanvasmm.h>
    11 #include <libgnomecanvasmm/polygon.h>
    11 #include <libgnomecanvasmm/polygon.h>
    12 #include <lemon/xy.h>
    12 #include <lemon/dim2.h>
    13 
    13 
    14 ///This class is the canvas, on which the graph can be drawn.
    14 ///This class is the canvas, on which the graph can be drawn.
    15 class GraphDisplayerCanvas : public Gnome::Canvas::CanvasAA
    15 class GraphDisplayerCanvas : public Gnome::Canvas::CanvasAA
    16 {
    16 {
    17   friend class BrokenEdge;
    17   friend class BrokenEdge;
   266   ///event handler for the case when map editor tool is active
   266   ///event handler for the case when map editor tool is active
   267   bool mapEditEventHandler(GdkEvent*);
   267   bool mapEditEventHandler(GdkEvent*);
   268 
   268 
   269 public:
   269 public:
   270   ///Moves the text to new place
   270   ///Moves the text to new place
   271   void textReposition(xy<double>);
   271   void textReposition(XY);
   272 
   272 
   273   ///Activates an edge belonging to an EdgeBase
   273   ///Activates an edge belonging to an EdgeBase
   274 
   274 
   275   ///After we have activated an edge this way,
   275   ///After we have activated an edge this way,
   276   ///the GDC object will know, which edge is under forming
   276   ///the GDC object will know, which edge is under forming