diff -r e2c86ae158cf -r fa28f1071bd6 map_win.h --- a/map_win.h Fri Jun 24 07:58:18 2005 +0000 +++ b/map_win.h Fri Jun 24 18:16:12 2005 +0000 @@ -3,6 +3,8 @@ #ifndef MAP_WIN_H #define MAP_WIN_H +class MapWin; + #include #include #include @@ -24,15 +26,14 @@ ///The \ref MapStorage in which the visualizable maps are stored MapStorage & ms; - Gtk::Table table; + Gtk::Table * table; - Gtk::HBox combos, * labelpluscombo; - Gtk::Combo * combo_array; - - Gtk::VBox vbox_b, vbox_r1, vbox_r2; + Gtk::Combo * e_combo_array, * n_combo_array; Gtk::Label * label; + Gtk::VBox vbox; + public: ///Constructor of MapWin creates the widgets shown in MapWin. MapWin(const std::string& title, MapStorage &, GraphDisplayerCanvas &); @@ -41,7 +42,19 @@ ///which button was that and after that calls the ///appropriate function of the \ref GraphDisplayerCanvas ///to change the visible values of that attribute. - virtual void combo_changed(int); + virtual void e_combo_changed(int); + ///If a radiobutton is clicked, this function determines + ///which button was that and after that calls the + ///appropriate function of the \ref GraphDisplayerCanvas + ///to change the visible values of that attribute. + virtual void n_combo_changed(int); + + ///This function is created to set the appropriate maps on the newly created node + void update_node(Graph::Node); + + ///This function is created to set the appropriate maps on the newly created edge + void update_edge(Graph::Edge); + virtual bool close_if_escape_is_pressed(GdkEventKey*); };