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