desktop()->show();
}
-void SUIT_Application::useFile( const QString& theFileName )
+bool SUIT_Application::useFile( const QString& theFileName )
{
createEmptyStudy();
if ( activeStudy() )
- activeStudy()->openDocument( theFileName );
+ return activeStudy()->openDocument( theFileName );
+ return false;
+}
+
+bool SUIT_Application::useStudy( const QString& theName )
+{
+ return false;
}
void SUIT_Application::createEmptyStudy()
delete myDesktop;
myDesktop = desk;
- connect( myDesktop, SIGNAL( activated() ),
- this, SLOT( onDesktopActivated() ) );
+ if ( myDesktop )
+ connect( myDesktop, SIGNAL( activated() ), this, SLOT( onDesktopActivated() ) );
}
SUIT_Study* SUIT_Application::createNewStudy()