map_win.h
branchgui
changeset 28 fa28f1071bd6
parent 8 abac0179a26a
child 30 f70bbee5350a
     1.1 --- a/map_win.h	Fri Jun 24 07:58:18 2005 +0000
     1.2 +++ b/map_win.h	Fri Jun 24 18:16:12 2005 +0000
     1.3 @@ -3,6 +3,8 @@
     1.4  #ifndef MAP_WIN_H
     1.5  #define MAP_WIN_H
     1.6  
     1.7 +class MapWin;
     1.8 +
     1.9  #include <all_include.h>
    1.10  #include <mapstorage.h>
    1.11  #include <graph_displayer_canvas.h>
    1.12 @@ -24,15 +26,14 @@
    1.13    ///The \ref MapStorage in which the visualizable maps are stored
    1.14    MapStorage & ms;
    1.15  
    1.16 -  Gtk::Table table;
    1.17 +  Gtk::Table * table;
    1.18    
    1.19 -  Gtk::HBox combos, * labelpluscombo;
    1.20 -  Gtk::Combo * combo_array;
    1.21 -
    1.22 -  Gtk::VBox vbox_b, vbox_r1, vbox_r2;
    1.23 +  Gtk::Combo * e_combo_array, * n_combo_array;
    1.24  
    1.25    Gtk::Label * label;
    1.26  
    1.27 +  Gtk::VBox vbox;
    1.28 +
    1.29  public:
    1.30    ///Constructor of MapWin creates the widgets shown in MapWin.
    1.31    MapWin(const std::string& title, MapStorage &, GraphDisplayerCanvas &);
    1.32 @@ -41,7 +42,19 @@
    1.33    ///which button was that and after that calls the
    1.34    ///appropriate function of the \ref GraphDisplayerCanvas
    1.35    ///to change the visible values of that attribute.
    1.36 -  virtual void combo_changed(int);
    1.37 +  virtual void e_combo_changed(int);
    1.38 +  ///If a radiobutton is clicked, this function determines
    1.39 +  ///which button was that and after that calls the
    1.40 +  ///appropriate function of the \ref GraphDisplayerCanvas
    1.41 +  ///to change the visible values of that attribute.
    1.42 +  virtual void n_combo_changed(int);
    1.43 +
    1.44 +  ///This function is created to set the appropriate maps on the newly created node
    1.45 +  void update_node(Graph::Node);
    1.46 +
    1.47 +  ///This function is created to set the appropriate maps on the newly created edge
    1.48 +  void update_edge(Graph::Edge);
    1.49 +
    1.50    virtual bool close_if_escape_is_pressed(GdkEventKey*);
    1.51  };
    1.52