]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #18834 (Tuleap): Show/hide Faces and Property panels on activate/deactivate...
authorvsv <vsv@opencascade.com>
Thu, 9 Apr 2020 16:09:22 +0000 (19:09 +0300)
committervsv <vsv@opencascade.com>
Thu, 9 Apr 2020 16:09:22 +0000 (19:09 +0300)
src/SHAPERGUI/SHAPERGUI.cpp
src/SHAPERGUI/SHAPERGUI.h

index 084f623d16e8a75ffd5252cdb121ca94b6a1378e..941258cf1d123224eaeb7e4c82cd786eb25c74c8 100644 (file)
@@ -136,7 +136,7 @@ private:
 SHAPERGUI::SHAPERGUI()
     : LightApp_Module("SHAPER"),
       mySelector(0), myIsOpened(0), myPopupMgr(0), myIsInspectionVisible(false),
-  myInspectionPanel(0), myIsToolbarsModified(false)
+  myInspectionPanel(0), myIsFacesPanelVisible(false), myIsToolbarsModified(false)
 {
   myWorkshop = new XGUI_Workshop(this);
   connect(myWorkshop, SIGNAL(commandStatusUpdated()),
@@ -282,6 +282,11 @@ bool SHAPERGUI::activateModule(SUIT_Study* theStudy)
     }
     myInspectionPanel->toggleViewAction()->setVisible(true);
 
+    myWorkshop->facesPanel()->toggleViewAction()->setVisible(true);
+    if (myIsFacesPanelVisible)
+      myWorkshop->facesPanel()->show();
+    myWorkshop->propertyPanel()->toggleViewAction()->setVisible(true);
+
     if (!mySelector) {
       ViewManagerList OCCViewManagers;
       application()->viewManagers(OCCViewer_Viewer::Type(), OCCViewManagers);
@@ -395,6 +400,13 @@ bool SHAPERGUI::deactivateModule(SUIT_Study* theStudy)
   myInspectionPanel->hide();
   myInspectionPanel->toggleViewAction()->setVisible(false);
 
+  myIsFacesPanelVisible = myWorkshop->facesPanel()->isVisible();
+  myWorkshop->facesPanel()->hide();
+  myWorkshop->facesPanel()->toggleViewAction()->setVisible(false);
+
+  myWorkshop->propertyPanel()->hide();
+  myWorkshop->propertyPanel()->toggleViewAction()->setVisible(false);
+
   // the active operation should be stopped for the next activation.
   // There should not be active operation and visualized preview.
   // Abort operation should be performed before the selection's remove
index 348923c1b521bd48036a59ddc1a0392397501c31..61cbc0339d99805f0f5af909c4eda7e506769dcc 100644 (file)
@@ -274,6 +274,7 @@ private slots:
 
   bool myIsInspectionVisible;
   QDockWidget* myInspectionPanel;
+  bool myIsFacesPanelVisible;
 
   /// List of registered actions
   QIntList myActionsList;