main_win.cc
changeset 194 6b2b718420eb
parent 191 af2ed974ab68
child 201 879e47e5b731
     1.1 --- a/main_win.cc	Wed Feb 28 15:19:20 2007 +0000
     1.2 +++ b/main_win.cc	Wed Feb 28 18:20:28 2007 +0000
     1.3 @@ -20,9 +20,15 @@
     1.4  #include <config.h>
     1.5  #endif
     1.6  
     1.7 -#include "main_win.h"
     1.8 -#include "guipixbufs.h"
     1.9 -#include "background_chooser_dialog.h"
    1.10 +#include <main_win.h>
    1.11 +#include <guipixbufs.h>
    1.12 +#include <background_chooser_dialog.h>
    1.13 +
    1.14 +#include <mapstorage.h>
    1.15 +#include <graph_displayer_canvas.h>
    1.16 +#include <algowin.h>
    1.17 +#include <new_map_win.h>
    1.18 +#include <nbtab.h>
    1.19  
    1.20  #include "i18n.h"
    1.21  
    1.22 @@ -364,7 +370,7 @@
    1.23  {
    1.24    if(active_tab!=-1)
    1.25      {
    1.26 -      if (tabs[active_tab]->mapstorage.modified)
    1.27 +      if (tabs[active_tab]->mapstorage->modified)
    1.28  	{
    1.29  	  Gtk::MessageDialog mdialog(_("<b>Save changes before closing?</b>"), true, 
    1.30  				     Gtk::MESSAGE_WARNING, Gtk::BUTTONS_NONE);
    1.31 @@ -553,7 +559,7 @@
    1.32    for(;(i<(int)tabnames.size())&&(tabnames[i]!=tabname);i++)
    1.33      {
    1.34      }
    1.35 -  awp->update_maplist(&(tabs[i]->mapstorage));
    1.36 +  awp->update_maplist(tabs[i]->mapstorage);
    1.37  }
    1.38  
    1.39  void MainWin::deRegisterAlgoWin(AlgoWin * awp)
    1.40 @@ -632,6 +638,6 @@
    1.41  
    1.42  void MainWin::createBackgroundChooser()
    1.43  {
    1.44 -  BackgroundChooserDialog dialog(&(tabs[active_tab]->mapstorage));
    1.45 +  BackgroundChooserDialog dialog(tabs[active_tab]->mapstorage);
    1.46    dialog.run();
    1.47  }