Salome HOME
Fix for the issue #2753 : error when dump/load script
[modules/shaper.git] / src / FeaturesPlugin / remove_subshapes_widget.xml
index b2698e274c197719d918007f6317fed11285dcc9..92cb0aab07e22f78261d5b8a9d6da33ec3ca9a2a 100644 (file)
@@ -27,14 +27,31 @@ email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com
                   concealment="true"
                   greed="true">
     <validator id="GeomValidators_ShapeType" parameters="wire,shell,compsolid,compound"/>
-    <validator id="GeomValidators_BodyShapes"/>
+    <validator id="GeomValidators_BodyShapes" parameters="toplevel"/>
   </shape_selector>
-  <multi_selector id="subshapes"
-                  label="Sub-Shapes to keep:"
-                  tooltip="Select shapes to keep."
-                  type_choice="vertices edges wires faces shells solids compsolids compounds"
-                  clear_in_neutral_point="false">
-    <validator id="FeaturesPlugin_ValidatorRemoveSubShapesSelection"/>
-  </multi_selector>
+  <toolbox id="creation_method">
+    <box id="by_remove_subshapes"
+     title="By removing sub-shapes"
+     icon="icons/Features/remove_subshapes_32x32.png">
+      <multi_selector id="subshapes_to_remove"
+                label="Sub-Shapes to remove:"
+                tooltip="Select shapes to remove."
+                type_choice="vertices edges wires faces shells solids compsolids compounds"
+                clear_in_neutral_point="false">
+        <validator id="FeaturesPlugin_ValidatorRemoveSubShapesSelection"/>
+      </multi_selector>
+    </box>
+    <box id="by_keep_subshapes"
+     title="By keeping sub-shapes"
+     icon="icons/Features/keep_subshapes_32x32.png">
+      <multi_selector id="subshapes_to_keep"
+                label="Sub-Shapes to keep:"
+                tooltip="Select shapes to keep."
+                type_choice="vertices edges wires faces shells solids compsolids compounds"
+                clear_in_neutral_point="false">
+        <validator id="FeaturesPlugin_ValidatorRemoveSubShapesSelection"/>
+      </multi_selector>
+    </box>
+  </toolbox>
   <validator id="FeaturesPlugin_ValidatorRemoveSubShapesResult"/>
 </source>