comparison main/main.cpp @ 120:863a470df510

* Basic beginnings of what will become a tip-of-the-day dialog
author Chris Cannam
date Fri, 09 Mar 2007 18:18:30 +0000
parents b4110b17bca8
children a45733cc3939
comparison
equal deleted inserted replaced
119:a7b88d07a836 120:863a470df510
18 #include "system/System.h" 18 #include "system/System.h"
19 #include "system/Init.h" 19 #include "system/Init.h"
20 #include "base/TempDirectory.h" 20 #include "base/TempDirectory.h"
21 #include "base/PropertyContainer.h" 21 #include "base/PropertyContainer.h"
22 #include "base/Preferences.h" 22 #include "base/Preferences.h"
23 #include "widgets/TipDialog.h"
23 24
24 #include <QMetaType> 25 #include <QMetaType>
25 #include <QApplication> 26 #include <QApplication>
26 #include <QDesktopWidget> 27 #include <QDesktopWidget>
27 #include <QMessageBox> 28 #include <QMessageBox>
192 (&gui, QMessageBox::tr("Failed to open file"), 193 (&gui, QMessageBox::tr("Failed to open file"),
193 QMessageBox::tr("File \"%1\" could not be opened").arg(path)); 194 QMessageBox::tr("File \"%1\" could not be opened").arg(path));
194 } 195 }
195 } 196 }
196 197
198 TipDialog tipDialog;
199 if (tipDialog.isOK()) {
200 tipDialog.exec();
201 }
202
197 int rv = application.exec(); 203 int rv = application.exec();
198 std::cerr << "application.exec() returned " << rv << std::endl; 204 std::cerr << "application.exec() returned " << rv << std::endl;
199 205
200 cleanupMutex.lock(); 206 cleanupMutex.lock();
201 TempDirectory::getInstance()->cleanup(); 207 TempDirectory::getInstance()->cleanup();