Commit 6b7a34fd authored by Stéphane Albert's avatar Stéphane Albert

ENH: Initialized Application/Catalogue/MainWindow.

parent babd4299
......@@ -58,24 +58,11 @@ main( int argc, char* argv[] )
application.Initialize();
#if 0
// TODO: 1) MVD2-viewer: Factorize settings loading between Viewer & Catalogue // Check if the application have a settings file already available
bool appHasSettingsFile = application.HasSettingsFile();
bool appHasIncorrectCacheDir(false);
if (appHasSettingsFile)
{
// Read cache dir from settings
application.ReadCacheDirFromSettings();
// Check the cache dir
if (!application.CheckCacheDirIsCorrect() )
{
appHasIncorrectCacheDir = true;
}
}
#endif
mvd::MainWindow mainWindow;
mainWindow.Initialize();
#if 0
// TODO: 1) MVD2-viewer: Factorize cache-dir search between Viewer & Catalogue.
if (!appHasSettingsFile || appHasIncorrectCacheDir)
......
......@@ -112,7 +112,7 @@ void
MainWindow
::OnAboutToChangeModel( const AbstractModel* model )
{
qDebug() << "MainWindow:" << this << "::OnAboutToChangeModel(" << model << ")";
qDebug() << this << "::OnAboutToChangeModel(" << model << ")";
}
/*****************************************************************************/
......@@ -120,7 +120,7 @@ void
MainWindow
::OnModelChanged( AbstractModel* model )
{
qDebug() << "MainWindow:" << this << "::OnModelChanged(" << model << ")";
qDebug() << this << "::OnModelChanged(" << model << ")";
}
} // end namespace 'mvd'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment