]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
refs #1488
authorisn <isn@opencascade.com>
Wed, 13 Dec 2017 18:35:35 +0000 (21:35 +0300)
committerisn <isn@opencascade.com>
Wed, 13 Dec 2017 18:38:04 +0000 (21:38 +0300)
src/HYDROGUI/HYDROGUI_Module.cxx
src/HYDROGUI/HYDROGUI_ViewerDlg.cxx

index de6e90393f6d4b31b017bc02843bfe5aa5d83ca7..03a78832368f51deb1616c17644940f9052df243 100644 (file)
@@ -41,7 +41,7 @@
 #include "HYDROGUI_ImportGeomObjectOp.h"
 #include "HYDROGUI_ShowHideOp.h"
 #include "HYDROGUI_Overview.h"
-
+#include <HYDROGUI_ProfileDlg.h>
 #include <HYDROData_Tool.h>
 #include <HYDROData_Image.h>
 #include <HYDROData_Stream.h>
@@ -989,6 +989,14 @@ void HYDROGUI_Module::preferencesChanged( const QString& theSection, const QStri
         if (anOCCViewMgr)
           anOCCViewMgr->setChainedOperations( aChainedPan );
       }
+      
+      QList<QDockWidget*> docW = getApp()->desktop()->findChildren<QDockWidget*>();
+      foreach (QDockWidget* qw, docW)
+      {
+        HYDROGUI_ProfileDlg* pdlg = dynamic_cast<HYDROGUI_ProfileDlg*>(qw);
+        if (pdlg)
+          pdlg->viewManager()->setChainedOperations(aChainedPan);
+      }
     }
     else
       LightApp_Module::preferencesChanged( theSection, thePref );
index c46ec47a7dc441a6f475e8df6ed2fe0730df791e..a2b58bc1f4bdbb6428f2bd5d02902fc837ea8e61 100644 (file)
@@ -53,6 +53,8 @@ HYDROGUI_ViewerDlg::HYDROGUI_ViewerDlg( HYDROGUI_Module* theModule, const QStrin
   SUIT_Study* aStudy = 0;
 #endif
   myViewManager = new OCCViewer_ViewManager( aStudy, 0 );
+  bool IsChainedPan = aResMgr->booleanValue( "HYDRO", "chained_panning" );
+  myViewManager->setChainedOperations(IsChainedPan);
   OCCViewer_Viewer* aViewer = new OCCViewer_Viewer( dispTrihedron );
 
   aViewer->setBackground( OCCViewer_ViewFrame::TOP_LEFT,