Salome HOME
Two new types of messages are added to the GUI CORGBA interface
authorvsr <vsr@opencascade.com>
Thu, 30 Oct 2014 06:22:58 +0000 (09:22 +0300)
committervsr <vsr@opencascade.com>
Thu, 30 Oct 2014 06:22:58 +0000 (09:22 +0300)
- connect_to_study: to connect to the study opened at a data server
- activate viewer: to activate viewer if given type

src/LightApp/LightApp_Application.cxx
src/SalomeApp/SalomeApp_Application.cxx

index ef2f6c55ddec9bd91a2ba4bef90220834f35f925..2229aa3eaaf8d4629169146f3f7ddbf4f7f1c4b2 100644 (file)
@@ -4154,6 +4154,11 @@ void LightApp_Application::onDesktopMessage( const QString& message )
     // update object browser
     updateObjectBrowser();
   }
+  else if ( message.toLower().startsWith( "activate_viewer" ) ) {
+    QString vtype = message.split( sectionSeparator ).last();
+    if ( !vtype.isEmpty() )
+      getViewManager( vtype, true );
+  }
   else {
     QStringList data = message.split( sectionSeparator );
     if ( data.count() > 1 ) {
index 12ff6b9a3f70b4f324833268e7b396d8bcec2bf5..c9e8d72e1cedf94cf07ab3505ed4fc463b1c8138 100644 (file)
@@ -588,6 +588,9 @@ void SalomeApp_Application::onDesktopMessage( const QString& message )
     if ( a )
       a->setEnabled( false );
   }
+  else if ( message.toLower() == "connect_to_study" ) {
+    onLoadDoc();
+  }
   LightApp_Application::onDesktopMessage( message );
 }