main_win.cc
branchgui
changeset 91 55cf06f14981
parent 87 b44281e4cca7
child 94 adfdc2f70548
equal deleted inserted replaced
22:4bd1535883e5 23:418faf47bfca
     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