main_win.cc
branchgui
changeset 55 e4ee805ca5fc
parent 53 e73d7540bd24
child 56 7a9a55a2f45d
equal deleted inserted replaced
11:f24cf48e4846 12:3492cfa7cd06
     1 #include "main_win.h"
     1 #include "main_win.h"
     2 
     2 
     3 MainWin::MainWin(const std::string& title) :
     3 MainWin::MainWin(const std::string& title) :
     4   mapwin("Map Setup", mapstorage, gd_canvas),
     4   mapwin("Map Setup", mapstorage, gd_canvas),
     5   newmapwin("Creating new map", gd_canvas), gd_canvas(mapstorage, mapwin)
     5   newmapwin("Creating new map", gd_canvas), gd_canvas(mapstorage, mapwin, (Gtk::Window *)this)
     6 {
     6 {
     7 
       
     8   set_title (title);
     7   set_title (title);
     9   set_default_size(WIN_WIDTH,WIN_HEIGHT);
     8   set_default_size(WIN_WIDTH,WIN_HEIGHT);
    10   add(vbox);
     9   add(vbox);
    11 
    10 
    12   ag=Gtk::ActionGroup::create();
    11   ag=Gtk::ActionGroup::create();