NewMapWin has become Dialog instead of Window. Therefore it is created dynamically, when there is need for it, instead of keeping one instance in memory. This solution is slower, but more correct than before.
4 #include <lemon/list_graph.h>
7 using lemon::ListGraph;
17 typedef typename M::Key Key;
18 typedef xy<typename M::Value> Value;
20 XYMap(M &_xmap, M &_ymap) : xmap(&_xmap), ymap(&_ymap) {}
21 void setXMap(M &_xmap) { xmap = &_xmap; }
22 void setYMap(M &_ymap) { ymap = &_ymap; }
23 Value operator[](Key k) const
25 Value v(xmap->operator[](k), ymap->operator[](k));
28 void set(Key k, Value v)