Documentation of MapSelector. If no default value is present in MapSelector, Reset button does not appear.
8 #include <all_include.h>
9 //#include <mapstorage.h>
11 #include <libgnomecanvasmm.h>
12 #include <libgnomecanvasmm/polygon.h>
16 enum {GENERAL, KRUSKAL, ALGO_NUM}; // algorithm IDs;
18 class AlgoWin : public Gtk::Window
22 Gtk::Button * runbutton;
23 Gtk::Button * closebutton;
26 sigc::signal<void, AlgoWin *> signal_closed;
27 sigc::signal<void, AlgoWin *, std::string> signal_maplist_need;
28 sigc::signal<void, std::string, bool> signal_newmapwin_need;
31 bool closeIfEscapeIsPressed(GdkEventKey* e);
33 sigc::signal<void, AlgoWin *> signal_closing();
34 sigc::signal<void, AlgoWin *, std::string> signal_maplist_needed();
35 sigc::signal<void, std::string, bool> signal_newmapwin_needed(){return signal_newmapwin_need;};
37 void emit_tab_change(std::string);
38 void emit_new_map_signal(std::string tabname, bool itisedge){signal_newmapwin_need.emit(tabname, itisedge);};
40 AlgoWin(int, std::vector<std::string>);
42 void update_tablist(std::vector<std::string> tabnames);
43 void update_maplist(MapStorage *);