diff -r 30b22f7bd009 -r d442a66e9121 mainwindow.cpp --- a/mainwindow.cpp Mon Sep 12 19:52:51 2005 +0000 +++ b/mainwindow.cpp Thu Sep 22 12:14:23 2005 +0000 @@ -60,6 +60,7 @@ extern TextEditor *textEditor; extern Main *mainWindow; +extern QString tmpVymDir; extern int statusbarTime; extern MapEditor *clipboardME; extern FlagRowObj* standardFlagsDefault; @@ -168,6 +169,11 @@ settings.readNumEntry( "/vym/mainwindow/geometry/posY", 100)); + // Create unique temporary directory + tmpVymDir=makeUniqueDir ("/tmp/vym-XXXXXX"); + + // TODO Create direcctory for clipboard + // Set random seed (random used for object IDs) QTime t = QTime::currentTime(); // set random seed srand( t.hour()*12+t.minute()*60+t.second()*60 ); @@ -236,7 +242,6 @@ connect (findWindow, SIGNAL( somethingChanged() ), this, SLOT(editFindChanged() ) ); - // FIXME testing // Connect TextEditor, so that we can update flags if text changes connect (textEditor, SIGNAL (textHasChanged() ), this, SLOT (updateNoteFlag())); @@ -277,6 +282,9 @@ // To make the texteditor save its settings, call the destructor delete (textEditor); + + // Remove temporary directory + removeDir (QDir(tmpVymDir)); } void Main::loadCmdLine() @@ -1329,7 +1337,7 @@ { for ( QStringList::Iterator it = flist.begin(); it != flist.end(); ++it ) *it=tmpMapDir + "/" + *it; - // FIXME Multiple entries, load all (but only the first one into this ME) + // TODO Multiple entries, load all (but only the first one into this ME) //mainWindow->fileLoadFromTmp (flist); //returnCode=1; // Silently forget this attempt to load qWarning ("MainWindow::load (fn) multimap found...");