Documentation of MapSelector. If no default value is present in MapSelector, Reset button does not appear.
1 #include "gui_reader.h"
3 #include "mapstorage.h"
7 bool GuiReader::header(const std::string& line)
9 std::istringstream ls(line);
12 return head == "@gui";
15 void GuiReader::read(std::istream& is)
18 std::map<int, xy<double> > m;
21 if ((int)m.size() != countEdges(mapstorage->graph)) return;
23 for (EdgeIt e(mapstorage->graph); e != INVALID; ++e)
25 int edgeid = (int)(*mapstorage->edgemap_storage["id"])[e];
26 mapstorage->arrow_pos.set(e, m[edgeid]);
28 mapstorage->ArrowPosReadOK();
31 GuiReader::GuiReader(LemonReader& reader, MapStorage* ms) : Parent(reader), mapstorage(ms)