graph_displayer_canvas.h
branchgui
changeset 77 ba023627ff1a
parent 62 80eefca04b1e
child 81 5ad61c33487c
equal deleted inserted replaced
24:82546fc8d229 25:0b9c95310dd2
    88   ///event handler for the case when edge map editor tool is active
    88   ///event handler for the case when edge map editor tool is active
    89   bool edgeMapEditEventHandler(GdkEvent*);
    89   bool edgeMapEditEventHandler(GdkEvent*);
    90   ///event handler for the case when node map editor tool is active
    90   ///event handler for the case when node map editor tool is active
    91   bool nodeMapEditEventHandler(GdkEvent*);
    91   bool nodeMapEditEventHandler(GdkEvent*);
    92 
    92 
    93   ///event handler for the case when the entry widget is changed
       
    94   bool entryWidgetChangeHandler(GdkEvent*);
       
    95 
       
    96 public:
    93 public:
    97   ///Moves the text to new place
    94   ///Moves the text to new place
    98   void textReposition(xy<double>);
    95   void textReposition(xy<double>);
    99   ///Activates an edge belonging to a BrokenEdge
    96   ///Activates an edge belonging to a BrokenEdge
   100   ///
    97   ///
   138   Graph::NodeMap<Gnome::Canvas::Text *> nodetextmap;
   135   Graph::NodeMap<Gnome::Canvas::Text *> nodetextmap;
   139 
   136 
   140   ///Group of graphical elements of displayed_graph
   137   ///Group of graphical elements of displayed_graph
   141   Gnome::Canvas::Group displayed_graph;
   138   Gnome::Canvas::Group displayed_graph;
   142 
   139 
   143   ///Map editor entry
       
   144   Gtk::Entry entrywidget;
       
   145 
       
   146   ///GnomeCanvas holder for entry
       
   147   Gnome::Canvas::Widget * canvasentrywidget;
       
   148 
       
   149   ///Here we store the maps that can be displayed through properties.
   140   ///Here we store the maps that can be displayed through properties.
   150   MapStorage & mapstorage;
   141   MapStorage & mapstorage;
   151 
   142 
   152   ///Indicates whether the button of mouse is pressed or not
   143   ///Indicates whether the button of mouse is pressed or not
   153   int isbutton;
   144   int isbutton;
   173   static const int zoom_step = 5;
   164   static const int zoom_step = 5;
   174 
   165 
   175   ///We need to store mapwin, to be able to ask the appropriate values for properties of new items.
   166   ///We need to store mapwin, to be able to ask the appropriate values for properties of new items.
   176   MapWin & mapwin;
   167   MapWin & mapwin;
   177 
   168 
   178   ///We need to store the parent window to be able to set the focus on a given widget
   169   ///pointer to the parent window
   179   ///We will use this variable to activate the set focus on entry widget in the case of editing map values.
       
   180   Gtk::Window * parentwin;
   170   Gtk::Window * parentwin;
   181 
   171 
   182 };
   172 };
   183 
   173 
   184 #endif //GRAPH_DISPLAYER_CANVAS_H
   174 #endif //GRAPH_DISPLAYER_CANVAS_H