ladanyi@6: // -*- C++ -*- // ladanyi@6: ladanyi@6: #ifndef MAP_WIN_H ladanyi@6: #define MAP_WIN_H ladanyi@6: ladanyi@6: #include ladanyi@6: #include ladanyi@6: #include ladanyi@6: #include ladanyi@6: #include ladanyi@6: ladanyi@6: ///This class is responsible for creating a window, ladanyi@6: ///on which the visualization attributes can be ladanyi@6: ///assigned to maps. ladanyi@6: class MapWin : public Gtk::Window ladanyi@6: { ladanyi@6: protected: ladanyi@6: ///The \ref GraphDisplayerCanvas on which the graph will be drawn. ladanyi@6: ///It has to be known for this class, because ladanyi@6: ///when a map assigned to a certain attribute ladanyi@6: ///a function of the \ref GraphDisplayerCanvas will be called. ladanyi@6: GraphDisplayerCanvas & gdc; ladanyi@6: ladanyi@6: ///The \ref MapStorage in which the visualizable maps are stored ladanyi@6: MapStorage & ms; ladanyi@6: hegyi@8: Gtk::Table table; ladanyi@6: hegyi@8: Gtk::HBox combos, * labelpluscombo; hegyi@8: Gtk::Combo * combo_array; ladanyi@6: hegyi@8: Gtk::VBox vbox_b, vbox_r1, vbox_r2; ladanyi@6: hegyi@8: Gtk::Label * label; ladanyi@6: ladanyi@6: public: ladanyi@6: ///Constructor of MapWin creates the widgets shown in MapWin. ladanyi@6: MapWin(const std::string& title, MapStorage &, GraphDisplayerCanvas &); ladanyi@6: ladanyi@6: ///If a radiobutton is clicked, this function determines ladanyi@6: ///which button was that and after that calls the ladanyi@6: ///appropriate function of the \ref GraphDisplayerCanvas ladanyi@6: ///to change the visible values of that attribute. hegyi@8: virtual void combo_changed(int); hegyi@8: virtual bool close_if_escape_is_pressed(GdkEventKey*); ladanyi@6: }; ladanyi@6: ladanyi@6: #endif //MAP_WIN_H