| [1442] | 1 | // -*- C++ -*- // |
|---|
| 2 | |
|---|
| 3 | #ifndef MAP_WIN_H |
|---|
| 4 | #define MAP_WIN_H |
|---|
| 5 | |
|---|
| 6 | #include <all_include.h> |
|---|
| 7 | #include <mapstorage.h> |
|---|
| 8 | #include <graph_displayer_canvas.h> |
|---|
| 9 | #include <libgnomecanvasmm.h> |
|---|
| 10 | #include <libgnomecanvasmm/polygon.h> |
|---|
| 11 | |
|---|
| 12 | ///This class is responsible for creating a window, |
|---|
| 13 | ///on which the visualization attributes can be |
|---|
| 14 | ///assigned to maps. |
|---|
| 15 | class MapWin : public Gtk::Window |
|---|
| 16 | { |
|---|
| 17 | protected: |
|---|
| 18 | ///The \ref GraphDisplayerCanvas on which the graph will be drawn. |
|---|
| 19 | ///It has to be known for this class, because |
|---|
| 20 | ///when a map assigned to a certain attribute |
|---|
| 21 | ///a function of the \ref GraphDisplayerCanvas will be called. |
|---|
| 22 | GraphDisplayerCanvas & gdc; |
|---|
| 23 | |
|---|
| 24 | ///The \ref MapStorage in which the visualizable maps are stored |
|---|
| 25 | MapStorage & ms; |
|---|
| 26 | |
|---|
| [1446] | 27 | Gtk::Table table; |
|---|
| [1442] | 28 | |
|---|
| [1446] | 29 | Gtk::HBox combos, * labelpluscombo; |
|---|
| 30 | Gtk::Combo * combo_array; |
|---|
| [1442] | 31 | |
|---|
| [1446] | 32 | Gtk::VBox vbox_b, vbox_r1, vbox_r2; |
|---|
| [1442] | 33 | |
|---|
| [1446] | 34 | Gtk::Label * label; |
|---|
| [1442] | 35 | |
|---|
| 36 | public: |
|---|
| 37 | ///Constructor of MapWin creates the widgets shown in MapWin. |
|---|
| 38 | MapWin(const std::string& title, MapStorage &, GraphDisplayerCanvas &); |
|---|
| 39 | |
|---|
| 40 | ///If a radiobutton is clicked, this function determines |
|---|
| 41 | ///which button was that and after that calls the |
|---|
| 42 | ///appropriate function of the \ref GraphDisplayerCanvas |
|---|
| 43 | ///to change the visible values of that attribute. |
|---|
| [1446] | 44 | virtual void combo_changed(int); |
|---|
| 45 | virtual bool close_if_escape_is_pressed(GdkEventKey*); |
|---|
| [1442] | 46 | }; |
|---|
| 47 | |
|---|
| 48 | #endif //MAP_WIN_H |
|---|