gui/graph_displayer_canvas.h
changeset 1636 260ac104190f
parent 1606 dc4ea2010dee
child 1643 9285f3777553
equal deleted inserted replaced
22:49b5749cf5a4 23:4d0f36faf8a9
    16 class GraphDisplayerCanvas : public Gnome::Canvas::CanvasAA
    16 class GraphDisplayerCanvas : public Gnome::Canvas::CanvasAA
    17 {
    17 {
    18   typedef Gnome::Canvas::CanvasAA Parent;
    18   typedef Gnome::Canvas::CanvasAA Parent;
    19 
    19 
    20 public:
    20 public:
    21   GraphDisplayerCanvas(MapStorage &, MapWin &);
    21   GraphDisplayerCanvas(MapStorage &, MapWin &, Gtk::Window *);
    22   virtual ~GraphDisplayerCanvas();
    22   virtual ~GraphDisplayerCanvas();
    23 
    23 
    24   ///Changes the linewidth attribute according to the given map.
    24   ///Changes the linewidth attribute according to the given map.
    25   ///\param mapname is the name of the map which contains the new values
    25   ///\param mapname is the name of the map which contains the new values
    26   int changeEdgeWidth (std::string mapname, Graph::Edge new_item=INVALID);
    26   int changeEdgeWidth (std::string mapname, Graph::Edge new_item=INVALID);
   175   static const int zoom_step = 5;
   175   static const int zoom_step = 5;
   176 
   176 
   177   ///We need to store mapwin, to be able to ask the appropriate values for properties of new items.
   177   ///We need to store mapwin, to be able to ask the appropriate values for properties of new items.
   178   MapWin & mapwin;
   178   MapWin & mapwin;
   179 
   179 
       
   180   ///We need to store the parent window to be able to set the focus on a given widget
       
   181   ///We will use this variable to activate the set focus on entry widget in the case of editing map values.
       
   182   Gtk::Window * parentwin;
       
   183 
   180 };
   184 };
   181 
   185 
   182 #endif //GRAPH_DISPLAYER_CANVAS_H
   186 #endif //GRAPH_DISPLAYER_CANVAS_H