gui/main_win.cc
changeset 1549 8bf39d55b1db
parent 1502 371aba7d61ca
child 1550 4dcbb4ab1d7a
equal deleted inserted replaced
4:7da8b046efdb 5:34a818651f9d
     1 #include <main_win.h>
     1 #include <main_win.h>
     2 
     2 
     3 MainWin::MainWin(const std::string& title, Graph & graph, CoordinatesMap & cm,
     3 MainWin::MainWin(const std::string& title, Graph & graph, CoordinatesMap & cm,
     4     MapStorage & ms):mapwin("Map Setup", ms, gd_canvas),editwin("Editorial Window", gd_canvas),gd_canvas(graph, cm, ms)
     4     MapStorage & ms):mapwin("Map Setup", ms, gd_canvas),editwin("Editorial Window", gd_canvas),gd_canvas(graph, cm, ms, &mapwin)
     5 {
     5 {
     6   set_title (title);
     6   set_title (title);
     7   set_default_size(WIN_WIDTH,WIN_HEIGHT);
     7   set_default_size(WIN_WIDTH,WIN_HEIGHT);
     8   add(vbox);
     8   add(vbox);
     9 
     9