/*!Constructor.*/
SalomeApp_Application::SalomeApp_Application()
: LightApp_Application()
-{}
+{
+ connect( desktop(), SIGNAL( message( const QString& ) ),
+ this, SLOT( onDesktopMessage( const QString& ) ) );
+}
/*!Destructor.
*\li Destroy event filter.
return false;
}
+
+/*! Process standard messages from desktop */
+void SalomeApp_Application::onDesktopMessage( const QString& message )
+{
+ // update object browser
+ if ( message.lower() == "updateobjectbrowser" ||
+ message.lower() == "updateobjbrowser" )
+ updateObjectBrowser();
+}
+
protected slots:
void onStudySaved( SUIT_Study* );
void onStudyOpened( SUIT_Study* );
+ void onDesktopMessage( const QString& );
protected:
virtual void createActions();