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.
1 #include "gui_writer.h"
3 #include "mapstorage.h"
7 std::string GuiWriter::header()
12 void GuiWriter::write(std::ostream& os)
15 std::map<int, xy<double> > m;
16 for (EdgeIt e(mapstorage->graph); e != INVALID; ++e)
18 int edgeid = (int)(*(mapstorage->edgemap_storage["id"]))[e];
19 m[edgeid] = mapstorage->arrow_pos[e];
24 GuiWriter::GuiWriter(LemonWriter& writer, MapStorage* ms) : Parent(writer), mapstorage(ms)