]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
fIX FOR bug IPAL9242(3.0.0: Activation of OCC viewer breaks current VTK viewer in...
authormzn <mzn@opencascade.com>
Wed, 29 Jun 2005 12:34:51 +0000 (12:34 +0000)
committermzn <mzn@opencascade.com>
Wed, 29 Jun 2005 12:34:51 +0000 (12:34 +0000)
src/SalomeApp/SalomeApp_Selection.cxx

index 39ecc9b1cba5df2ff2cb3709b532d05f0b78f59f..d3e26a3048bb664802f922c3c9e4808c554ba9b5 100644 (file)
@@ -58,6 +58,14 @@ QtxValue SalomeApp_Selection::globalParam( const QString& p ) const
 {
   if( p=="client" )
     return myPopupClient;
+  else if ( p=="activeView" )
+    {
+      QString aViewType = "";
+      SUIT_ViewWindow* anActiveView = study()->application()->desktop()->activeWindow();
+      if (anActiveView)
+       aViewType = anActiveView->getViewManager()->getType();
+      return QtxValue(aViewType);
+    }
   else
     return QtxPopupMgr::Selection::globalParam( p );
 }