Several changes. \n If new map is added to mapstorage it emits signal with the name of the new map. This was important, because from now on not only tha mapwin should be updated. \n Furthermore algobox gets a pointer to mapstorage instead of only the mapnames from it. This is important because without it it would be complicated to pass all of the required maps to algobox.
8 #include <all_include.h>
10 #include <libgnomecanvasmm.h>
11 #include <libgnomecanvasmm/polygon.h>
13 enum {GENERAL, KRUSKAL, ALGO_NUM}; // algorithm IDs;
15 class AlgoWin : public Gtk::Window
19 Gtk::Button * runbutton;
20 Gtk::Button * closebutton;
23 sigc::signal<void, AlgoWin *> signal_closed;
24 sigc::signal<void, AlgoWin *, std::string> signal_maplist_need;
27 bool closeIfEscapeIsPressed(GdkEventKey* e);
29 sigc::signal<void, AlgoWin *> signal_closing();
30 sigc::signal<void, AlgoWin *, std::string> signal_maplist_needed();
32 void emit_tab_change(std::string);
34 AlgoWin(int, std::vector<std::string>);
36 void update_tablist(std::vector<std::string> tabnames);
37 void update_maplist( void *);