mainwindow.cpp
changeset 791 f1006de05c54
parent 790 133e2ed6b9c5
child 792 7d67be709091
     1.1 --- a/mainwindow.cpp	Thu Sep 03 08:52:00 2009 +0000
     1.2 +++ b/mainwindow.cpp	Mon Sep 07 15:36:57 2009 +0000
     1.3 @@ -23,6 +23,8 @@
     1.4  #include "warningdialog.h"
     1.5  #include "xlinkitem.h"
     1.6  
     1.7 +#include <modeltest.h>	// FIXME-3
     1.8 +
     1.9  #if defined(Q_OS_WIN32)
    1.10  // Define only this structure as opposed to
    1.11  // including full 'windows.h'. FindWindow
    1.12 @@ -1707,13 +1709,18 @@
    1.13  {
    1.14  	VymModel *vm=new VymModel;
    1.15  
    1.16 +new ModelTest(vm, this);	//FIXME-3
    1.17 +
    1.18 +
    1.19  	VymView *vv=new VymView (vm);
    1.20  	vymViews.append (vv);
    1.21  	tabWidget->addTab (vv,tr("unnamed","MainWindow: name for new and empty file"));
    1.22  	tabWidget->setCurrentIndex (vymViews.count() );
    1.23  	vv->initFocus();
    1.24  
    1.25 -	
    1.26 +	// Create MapCenter for empty map
    1.27 +	//vm->createMapCenter();
    1.28 +
    1.29  	// For the very first map we do not have flagrows yet...
    1.30  	vm->select("mc:");
    1.31  }
    1.32 @@ -2797,6 +2804,7 @@
    1.33  			|| actionSettingsAutoEditNewBranch->isOn()) 
    1.34  		{
    1.35  			m->select (bi);
    1.36 +			cout << "Main::editNewBranch  prevSel="<<prevSelection.toStdString()<<endl;
    1.37  			if (actionSettingsAutoEditNewBranch->isOn())
    1.38  				currentMapEditor()->editHeading();
    1.39  		}