gui/map_win.h
changeset 1440 3d2e3cfb2a6c
parent 1435 8e85e6bbefdf
child 1442 1e3c69aa035b
     1.1 --- a/gui/map_win.h	Thu May 26 16:32:26 2005 +0000
     1.2 +++ b/gui/map_win.h	Fri May 27 10:34:20 2005 +0000
     1.3 @@ -9,21 +9,40 @@
     1.4  #include <libgnomecanvasmm.h>
     1.5  #include <libgnomecanvasmm/polygon.h>
     1.6  
     1.7 +///This class is responsible for creating a window,
     1.8 +///on which the visualization attributes can be
     1.9 +///assigned to maps.
    1.10  class MapWin : public Gtk::Window
    1.11  {
    1.12  protected:
    1.13 +  ///The \ref GraphDisplayerCanvas on which the graph will be drawn.
    1.14 +  ///It has to be known for this class, because
    1.15 +  ///when a map assigned to a certain attribute
    1.16 +  ///a function of the \ref GraphDisplayerCanvas will be called.
    1.17    GraphDisplayerCanvas & gdc;
    1.18 +
    1.19 +  ///The \ref MapStorage in which the visualizable maps are stored
    1.20    MapStorage & ms;
    1.21  
    1.22 +  
    1.23    Gtk::HBox * radios;
    1.24    Gtk::RadioButton ** rb_array;
    1.25  
    1.26    Gtk::VBox vbox_b, * vbox_r1, * vbox_r2;
    1.27 +
    1.28 +  ///The notebook has different pages for each attribute.
    1.29    Gtk::Notebook notebook;
    1.30 +
    1.31    Gtk::Label * labels;
    1.32  
    1.33  public:
    1.34 +  ///Constructor of MapWin creates the widgets shown in MapWin.
    1.35    MapWin(const std::string& title, MapStorage &, GraphDisplayerCanvas &);
    1.36 +
    1.37 +  ///If a radiobutton is clicked, this function determines
    1.38 +  ///which button was that and after that calls the
    1.39 +  ///appropriate function of the \ref GraphDisplayerCanvas
    1.40 +  ///to change the visible values of that attribute.
    1.41    virtual void radio_click(int, int);
    1.42  };
    1.43