map_win.h
branchgui
changeset 16 319a4fa65e05
parent 6 603b85626bc0
child 28 fa28f1071bd6
equal deleted inserted replaced
2:1a341a937620 3:247229621d0f
    22   GraphDisplayerCanvas & gdc;
    22   GraphDisplayerCanvas & gdc;
    23 
    23 
    24   ///The \ref MapStorage in which the visualizable maps are stored
    24   ///The \ref MapStorage in which the visualizable maps are stored
    25   MapStorage & ms;
    25   MapStorage & ms;
    26 
    26 
       
    27   Gtk::Table table;
    27   
    28   
    28   Gtk::HBox * radios;
    29   Gtk::HBox combos, * labelpluscombo;
    29   Gtk::RadioButton ** rb_array;
    30   Gtk::Combo * combo_array;
    30 
    31 
    31   Gtk::VBox vbox_b, * vbox_r1, * vbox_r2;
    32   Gtk::VBox vbox_b, vbox_r1, vbox_r2;
    32 
    33 
    33   ///The notebook has different pages for each attribute.
    34   Gtk::Label * label;
    34   Gtk::Notebook notebook;
       
    35 
       
    36   Gtk::Label * labels;
       
    37 
    35 
    38 public:
    36 public:
    39   ///Constructor of MapWin creates the widgets shown in MapWin.
    37   ///Constructor of MapWin creates the widgets shown in MapWin.
    40   MapWin(const std::string& title, MapStorage &, GraphDisplayerCanvas &);
    38   MapWin(const std::string& title, MapStorage &, GraphDisplayerCanvas &);
    41 
    39 
    42   ///If a radiobutton is clicked, this function determines
    40   ///If a radiobutton is clicked, this function determines
    43   ///which button was that and after that calls the
    41   ///which button was that and after that calls the
    44   ///appropriate function of the \ref GraphDisplayerCanvas
    42   ///appropriate function of the \ref GraphDisplayerCanvas
    45   ///to change the visible values of that attribute.
    43   ///to change the visible values of that attribute.
    46   virtual void radio_click(int, int);
    44   virtual void combo_changed(int);
       
    45   virtual bool close_if_escape_is_pressed(GdkEventKey*);
    47 };
    46 };
    48 
    47 
    49 #endif //MAP_WIN_H
    48 #endif //MAP_WIN_H