gui/main_win.cc
changeset 1823 cb082cdf3667
parent 1777 a70cee06ae9c
child 1837 8dd6160ff699
equal deleted inserted replaced
22:a38ab2833ea8 23:f5dae0d5c70f
     1 #include "main_win.h"
     1 #include "main_win.h"
     2 #include "icons/guipixbufs.h"
     2 #include "icons/guipixbufs.h"
     3 
     3 
     4 MainWin::MainWin() :
     4 MainWin::MainWin() :
     5   newmapwin("Creating new map", gd_canvas),
     5   mapwin("Map Setup", mapstorage, gd_canvas),
     6   mapwin("Map Setup", mapstorage, gd_canvas, newmapwin),
       
     7   gd_canvas(mapstorage, mapwin, (Gtk::Window *)this)
     6   gd_canvas(mapstorage, mapwin, (Gtk::Window *)this)
     8 {
     7 {
     9   set_title ("unsaved file - " + prog_name);
     8   set_title ("unsaved file - " + prog_name);
    10   set_default_size(WIN_WIDTH,WIN_HEIGHT);
     9   set_default_size(WIN_WIDTH,WIN_HEIGHT);
    11   add(vbox);
    10   add(vbox);
   119       sigc::bind( sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::changeEditorialTool ), 4) );
   118       sigc::bind( sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::changeEditorialTool ), 4) );
   120   ag->add( Gtk::RadioAction::create(tool_group, "EditNodeMap", Gtk::StockID("gd-editnode"), "Edit node map"),
   119   ag->add( Gtk::RadioAction::create(tool_group, "EditNodeMap", Gtk::StockID("gd-editnode"), "Edit node map"),
   121       sigc::bind( sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::changeEditorialTool ), 5) );
   120       sigc::bind( sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::changeEditorialTool ), 5) );
   122 
   121 
   123   ag->add( Gtk::Action::create("AddMap", Gtk::StockID("gd-newmap")),
   122   ag->add( Gtk::Action::create("AddMap", Gtk::StockID("gd-newmap")),
   124       sigc::mem_fun ( this->newmapwin, &NewMapWin::show ) );
   123       sigc::mem_fun (new NewMapWin("NewMapWin", gd_canvas), &NewMapWin::show ) );
   125 
   124 
   126   uim=Gtk::UIManager::create();
   125   uim=Gtk::UIManager::create();
   127   uim->insert_action_group(ag);
   126   uim->insert_action_group(ag);
   128   add_accel_group(uim->get_accel_group());
   127   add_accel_group(uim->get_accel_group());
   129 
   128