: LightApp_Application()
{
connect( desktop(), SIGNAL( message( const QString& ) ),
- this, SLOT( onLoadDocMessage( const QString& ) ), Qt::UniqueConnection );
+ this, SLOT( onParseMessage( const QString& ) ), Qt::UniqueConnection );
myIsSiman = false; // default
}
if ( desk ) {
connect( desk, SIGNAL( message( const QString& ) ),
- this, SLOT( onLoadDocMessage( const QString& ) ), Qt::UniqueConnection );
+ this, SLOT( onParseMessage( const QString& ) ), Qt::UniqueConnection );
}
}
}
/*!SLOT. Load document with a name, specified in \a aMessage.*/
-void SalomeApp_Application::onLoadDocMessage(const QString& aMessage)
+void SalomeApp_Application::onParseMessage(const QString& aMessage)
{
if (aMessage.indexOf("simanCheckoutDone ") == 0) {
#ifdef WITH_SIMANIO
printf( "* Warning: SALOME is built without SIMAN support.\n" );
printf( "****************************************************************\n" );
#endif
+ } else if (aMessage.indexOf("studyClosed:") == 0) {
+ onCloseDoc( false );
}
}
virtual bool onLoadDoc( const QString& );
virtual void onUnloadDoc( bool ask = true);
virtual void onCloseDoc( bool ask = true);
- virtual void onLoadDocMessage(const QString&);
+ virtual void onParseMessage(const QString&);
virtual void onExit();
virtual void onCopy();