mainwindow.cpp
changeset 164 d442a66e9121
parent 163 30b22f7bd009
child 166 325958acb69b
     1.1 --- a/mainwindow.cpp	Mon Sep 12 19:52:51 2005 +0000
     1.2 +++ b/mainwindow.cpp	Thu Sep 22 12:14:23 2005 +0000
     1.3 @@ -60,6 +60,7 @@
     1.4  
     1.5  extern TextEditor *textEditor;
     1.6  extern Main *mainWindow;
     1.7 +extern QString tmpVymDir;
     1.8  extern int statusbarTime;
     1.9  extern MapEditor *clipboardME;
    1.10  extern FlagRowObj* standardFlagsDefault;
    1.11 @@ -168,6 +169,11 @@
    1.12  	        settings.readNumEntry( "/vym/mainwindow/geometry/posY", 100));
    1.13  
    1.14  
    1.15 +	// Create unique temporary directory
    1.16 +	tmpVymDir=makeUniqueDir ("/tmp/vym-XXXXXX");
    1.17 +
    1.18 +	// TODO Create direcctory for clipboard
    1.19 +
    1.20  	// Set random seed (random used for object IDs)
    1.21      QTime t = QTime::currentTime();		// set random seed
    1.22      srand( t.hour()*12+t.minute()*60+t.second()*60 );
    1.23 @@ -236,7 +242,6 @@
    1.24  	connect (findWindow, SIGNAL( somethingChanged() ), 
    1.25  		this, SLOT(editFindChanged() ) );	
    1.26  
    1.27 -	// FIXME testing
    1.28  	// Connect TextEditor, so that we can update flags if text changes
    1.29  	connect (textEditor, SIGNAL (textHasChanged() ), this, SLOT (updateNoteFlag()));
    1.30  
    1.31 @@ -277,6 +282,9 @@
    1.32  
    1.33  	// To make the texteditor save its settings, call the destructor
    1.34  	delete (textEditor);
    1.35 +
    1.36 +	// Remove temporary directory
    1.37 +	removeDir (QDir(tmpVymDir));
    1.38  }
    1.39  
    1.40  void Main::loadCmdLine()
    1.41 @@ -1329,7 +1337,7 @@
    1.42  						{
    1.43  							for ( QStringList::Iterator it = flist.begin(); it != flist.end(); ++it ) 
    1.44  								*it=tmpMapDir + "/" + *it;
    1.45 -							// FIXME Multiple entries, load all (but only the first one into this ME)
    1.46 +							// TODO Multiple entries, load all (but only the first one into this ME)
    1.47  							//mainWindow->fileLoadFromTmp (flist);
    1.48  							//returnCode=1;	// Silently forget this attempt to load
    1.49  							qWarning ("MainWindow::load (fn)  multimap found...");