Creation of algorithm dialog is even simpler by the usage of the newly created addMapSelector function.
8 #include <all_include.h>
10 #include <libgnomecanvasmm.h>
11 #include <libgnomecanvasmm/polygon.h>
13 class MapSelector : public Gtk::HBox
16 sigc::signal<void, std::string> signal_cbt;
17 sigc::signal<void, bool> signal_newmapwin;
27 Gtk::ComboBoxText cbt;
29 Gtk::Button * newbut, * defbut;
37 MapSelector(std::vector<std::string>, std::string, std::string, bool, bool def=true);
39 sigc::signal<void, std::string> signal_cbt_ch();
40 sigc::signal<void, bool> signal_newmapwin_needed();
42 void update_list( std::vector<std::string> );
44 ///If a radiobutton is clicked, this function determines
45 ///which button was that and after that calls the
46 ///appropriate function of the \ref GraphDisplayerCanvas
47 ///to change the visible values of that attribute.
48 virtual void comboChanged();
50 virtual void new_but_pressed();
54 Glib::ustring get_active_text();
55 void set_active_text(Glib::ustring);
56 void set_active(int index){cbt.set_active(index);};
57 void clear(){cbt.clear();};
58 void append_text(Glib::ustring);
60 #endif //MAPSELECTOR_H