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