hegyi@115: // -*- C++ -*- // hegyi@115: hegyi@115: #ifndef MAPSELECTOR_H hegyi@115: #define MAPSELECTOR_H hegyi@115: hegyi@115: class MapSelector; hegyi@115: hegyi@115: #include hegyi@115: #include hegyi@115: #include hegyi@115: #include hegyi@115: hegyi@115: class MapSelector : public Gtk::HBox hegyi@115: { hegyi@115: protected: hegyi@115: sigc::signal signal_cbt; hegyi@115: sigc::signal signal_newmapwin; hegyi@115: hegyi@115: bool def; hegyi@115: hegyi@115: bool itisedge; hegyi@115: hegyi@115: bool default_state; hegyi@115: hegyi@115: bool set_new_map; hegyi@115: hegyi@115: Gtk::ComboBoxText cbt; hegyi@115: hegyi@115: Gtk::Button * newbut, * defbut; hegyi@115: hegyi@115: Gtk::HBox hbox; hegyi@115: hegyi@115: Gtk::Label * label; hegyi@115: hegyi@115: public: hegyi@115: hegyi@115: MapSelector(std::vector, std::string, std::string, bool, bool def=true); hegyi@115: hegyi@115: sigc::signal signal_cbt_ch(); hegyi@115: sigc::signal signal_newmapwin_needed(); hegyi@115: hegyi@115: void update_list( std::vector ); hegyi@115: hegyi@115: ///If a radiobutton is clicked, this function determines hegyi@115: ///which button was that and after that calls the hegyi@115: ///appropriate function of the \ref GraphDisplayerCanvas hegyi@115: ///to change the visible values of that attribute. hegyi@115: virtual void comboChanged(); hegyi@115: hegyi@115: virtual void new_but_pressed(); hegyi@115: hegyi@115: virtual void reset(); hegyi@115: hegyi@115: Glib::ustring get_active_text(); hegyi@115: void set_active_text(Glib::ustring); hegyi@115: void set_active(int index){cbt.set_active(index);}; hegyi@115: void clear(){cbt.clear();}; hegyi@115: void append_text(Glib::ustring); hegyi@115: }; hegyi@115: #endif //MAPSELECTOR_H