gui/graph_displayer_canvas.h
changeset 1858 a5b6d941ed52
parent 1837 8dd6160ff699
child 1860 27a9a75b957b
equal deleted inserted replaced
29:006cec22dea0 30:777dd3899c3c
     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