graph_displayer_canvas.h
branchgui
changeset 96 e664d8aa3f72
parent 94 adfdc2f70548
child 98 f60f89147531
equal deleted inserted replaced
29:9ac30f1cd0fb 30:9fc692c493ac
     4 #define GRAPH_DISPLAYER_CANVAS_H
     4 #define GRAPH_DISPLAYER_CANVAS_H
     5 
     5 
     6 class GraphDisplayerCanvas;
     6 class GraphDisplayerCanvas;
     7 
     7 
     8 #include "all_include.h"
     8 #include "all_include.h"
     9 #include "main_win.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/xy.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.
    37     xy<double> getArrowPos();
    37     xy<double> getArrowPos();
    38   };
    38   };
    39   typedef Gnome::Canvas::CanvasAA Parent;
    39   typedef Gnome::Canvas::CanvasAA Parent;
    40 
    40 
    41 public:
    41 public:
    42   GraphDisplayerCanvas(MainWin &);
    42   GraphDisplayerCanvas(NoteBookTab &);
    43   virtual ~GraphDisplayerCanvas();
    43   virtual ~GraphDisplayerCanvas();
    44 
    44 
    45   ///Changes the linewidth attribute according to the given map.
    45   ///Changes the linewidth attribute according to the given map.
    46   ///\param mapname is the name of the map which contains the new values
    46   ///\param mapname is the name of the map which contains the new values
    47   int changeEdgeWidth (std::string mapname, Edge new_item=INVALID);
    47   int changeEdgeWidth (std::string mapname, Edge new_item=INVALID);
   196   static const int zoom_step = 5;
   196   static const int zoom_step = 5;
   197 
   197 
   198 private:
   198 private:
   199 
   199 
   200   ///reference to the parent window
   200   ///reference to the parent window
   201   MainWin & mainwin;
   201   NoteBookTab & mytab;
   202 
   202 
   203 };
   203 };
   204 
   204 
   205 #endif //GRAPH_DISPLAYER_CANVAS_H
   205 #endif //GRAPH_DISPLAYER_CANVAS_H