]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #3101: Set property option for HideFaces panel using in operations.
authorvsv <vsv@opencascade.com>
Fri, 29 Nov 2019 11:13:05 +0000 (14:13 +0300)
committervsv <vsv@opencascade.com>
Fri, 29 Nov 2019 11:13:05 +0000 (14:13 +0300)
src/PartSet/PartSet_Module.cpp
src/XGUI/XGUI_Workshop.cpp

index 6103aa898999282b5a5f49de882a0324f759df5a..febeae273ef5db9be8d20adbc0955dfba46b164a 100644 (file)
@@ -252,6 +252,9 @@ PartSet_Module::PartSet_Module(ModuleBase_IWorkshop* theWshop)
   Config_PropManager::registerProp("Shortcuts", "add_parameter_shortcut",
     "Add parameter in parameters manager dialog",
     Config_Prop::Shortcut, "Ctrl+A");
+
+  Config_PropManager::registerProp("Windows", "use_hide_faces_panel", "Use HideFaces panel in operations",
+    Config_Prop::Boolean, "false");
 }
 
 //******************************************************
index 6a1766792f228505a90b8c5d4e33d09a248642d1..aa66b48967f44f4061d8371635c19abb1bda06d6 100644 (file)
@@ -774,9 +774,11 @@ void XGUI_Workshop::fillPropertyPanel(ModuleBase_Operation* theOperation)
 #endif
 
   myErrorMgr->setPropertyPanel(myPropertyPanel);
-  theOperation->setHideFacesVisible(myFacesPanel->isVisible());
-  if (aFeatureInfo.get() && aFeatureInfo->isHideFacesPanel() && !myFacesPanel->isVisible())
-    myFacesPanel->show();
+  if (Config_PropManager::boolean("Windows", "use_hide_faces_panel")) {
+    theOperation->setHideFacesVisible(myFacesPanel->isVisible());
+    if (aFeatureInfo.get() && aFeatureInfo->isHideFacesPanel() && !myFacesPanel->isVisible())
+      myFacesPanel->show();
+  }
   showPanel(myPropertyPanel);
 }
 
@@ -860,8 +862,10 @@ void XGUI_Workshop::onOperationStopped(ModuleBase_Operation* theOperation)
   }
   activateObjectsSelection(anObjects);
 
-  if (!theOperation->isHideFacesVisible())
-    myFacesPanel->hide();
+  if (Config_PropManager::boolean("Windows", "use_hide_faces_panel")) {
+    if (!theOperation->isHideFacesVisible())
+      myFacesPanel->hide();
+  }
 }
 
 //******************************************************