]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1502 Select sub-solids in viewer : Compsolid shape selection type should be...
authornds <nds@opencascade.com>
Thu, 23 Jun 2016 10:21:08 +0000 (13:21 +0300)
committernds <nds@opencascade.com>
Thu, 23 Jun 2016 10:21:08 +0000 (13:21 +0300)
src/ExchangePlugin/export_widget.xml
src/ExchangePlugin/plugin-Exchange.xml
src/FeaturesPlugin/boolean_widget.xml
src/FeaturesPlugin/extrusioncut_widget.xml
src/FeaturesPlugin/extrusionfuse_widget.xml
src/FeaturesPlugin/group_widget.xml
src/FeaturesPlugin/revolutioncut_widget.xml
src/FeaturesPlugin/revolutionfuse_widget.xml
src/FeaturesPlugin/union_widget.xml
src/ModuleBase/ModuleBase_WidgetSelector.cpp

index 60f0454caf084f5e1aa1a46152a86c6460bde5aa..914ef4508fac508acb8a6fd2c08fc2bccdf9ba84 100644 (file)
@@ -12,7 +12,7 @@
       </export_file_selector>
       <multi_selector id="selection_list" 
                       tooltip="Select a set of objects" 
-                      type_choice="Vertices Edges Faces Solids Objects">
+                      type_choice="Vertices Edges Faces Solids Compsolids Objects">
         <validator id="GeomValidators_Finite"/>
       </multi_selector>
     </case>
index eeafa5b9587372684607384524dc4f7dcd2d04d3..28f13d951b28af72f6c651666e6b7ef85f6ae8a1 100755 (executable)
@@ -5,7 +5,7 @@
     <group id="Exchange">
       <feature id="Import" title="Import" tooltip="Import a file" icon="icons/Exchange/import.png" document="Part">
         <file_selector id="file_path" title="Import file" path="">
-          <validator id="ExchangePlugin_ImportFormat" parameters="BREP|BRP:BREP,STEP|STP:STEP,IGES|IGS:IGES,XAO:XAO" />
+          <validator id="ExchangePlugin_ImportFormat" parameters="BREP|BRP:BREP,STEP|STP:STEP,IGES|IGS:IGES" />
         </file_selector>
       </feature>
       <feature id="Export" title="Export" tooltip="Export to file" icon="icons/Exchange/export.png">
@@ -13,7 +13,7 @@
           <validator id="ExchangePlugin_ExportFormat" parameters="BREP|BRP:BREP,STEP|STP:STEP,IGES|IGS:IGES-5.1,IGES|IGS:IGES-5.3" />
         </export_file_selector>
         <multi_selector id="selection_list" tooltip="Select a set of objects"
-                        type_choice="Vertices Edges Faces Solids Objects" use_choice="true">
+                        type_choice="Vertices Edges Faces Solids Compsolids Objects" use_choice="true">
           <validator id="GeomValidators_Finite"/>
         </multi_selector>
       </feature>
index 7c5e30ad131bb73c95b837d551a70b274ee250c1..83c5cee2bea6460e2c0fde655126b0c795755c41 100644 (file)
@@ -15,7 +15,7 @@
     label="Main objects"
     icon=""
     tooltip="Select solid objects"
-    type_choice="solids edges faces"
+    type_choice="solids compsolids edges faces"
     use_choice="false"
     concealment="true">
     <validator id="PartSet_DifferentObjects"/>
@@ -25,7 +25,7 @@
     label="Tool objects"
     icon=""
     tooltip="Select a tool solid"
-    type_choice="solids edges faces"
+    type_choice="solids compsolids edges faces"
     use_choice="false"
     concealment="true" >
     <validator id="PartSet_DifferentObjects"/>
index cdc7fb4b9ee8ed794ca7f32f2eabe7f054b86485..14d21f559a35be6222098eeb09e29517b2782825 100755 (executable)
@@ -87,7 +87,8 @@
     label="Cut from:"
     icon="icons/Features/cut_shape.png"
     tooltip="Objects to Cut"
-    type_choice="Solids"
+    type_choice="Solids Compsolids"
+    use_choice="false"
     concealment="true">
     <validator id="GeomValidators_ShapeType" parameters="solid"/>
   </multi_selector>
index 96a843907cc5b796ec6b7c4fd4da281a3e058d22..778c584f2dc2f5ebcf9d5084fbeaa57f9686d248 100644 (file)
@@ -87,7 +87,8 @@
     label="Fuse with:"
     icon="icons/Features/cut_shape.png"
     tooltip="Objects to Fuse"
-    type_choice="Solids"
+    type_choice="Solids Compsolids"
+    use_choice="false"
     concealment="true">
     <validator id="GeomValidators_ShapeType" parameters="solid"/>
   </multi_selector>
index 076b6ba41fa017082c9bd5c72bf0893c14eeee67..6192e9826a17fda234fa6215031f7084cba65d5a 100644 (file)
@@ -3,7 +3,7 @@
 <source>
   <multi_selector id="group_list"
     tooltip="Select a set of objects"
-    type_choice="vertices edges faces solids"
+    type_choice="Vertices Edges Faces Solids"
     use_choice="true"
     clear_in_neutral_point="false">
     <validator id="GeomValidators_BodyShapes"/>
index 10482c12f08fd0eefc022bcd3ae817cbe6c2db47..1465db55cd36ce778d0680b37865ab808393e705 100644 (file)
@@ -87,7 +87,8 @@
     label="Cut from:"
     icon="icons/Features/cut_shape.png"
     tooltip="Objects to Cut"
-    type_choice="Solids"
+    type_choice="Solids Compsolids"
+    use_choice="false"
     concealment="true">
     <validator id="GeomValidators_ShapeType" parameters="solid"/>
   </multi_selector>
index 7e36ba71ffd47e166228dd132d2f835501a252b9..aee797d557875bf63c258b2f83d67fc7f32676ff 100644 (file)
@@ -87,7 +87,8 @@
     label="Fuse with:"
     icon="icons/Features/cut_shape.png"
     tooltip="Objects to Fuse"
-    type_choice="Solids"
+    type_choice="Solids Compsolids"
+    use_choice="false"
     concealment="true">
     <validator id="GeomValidators_ShapeType" parameters="solid"/>
   </multi_selector>
index f8725f877591bdacb7fe2c7556d933ddf5efc351..d0dcdb8b9fb307fe5a44df9f3da7aba5f09f2c3f 100644 (file)
@@ -4,7 +4,8 @@
   <multi_selector id="base_objects"
     label="Base objects:"
     tooltip="Select solids for union."
-    type_choice="solids"
+    type_choice="solids compsolids"
+    use_choice="false"
     concealment="true">
     <validator id="FeaturesPlugin_ValidatorUnionSelection"/>
   </multi_selector>
index a6c82a0dd45823fe51a04a57000e3427a7e14837..bd0dd48d2c84682a5ba7ef94c1661a65d6c8731c 100755 (executable)
@@ -78,7 +78,8 @@ void ModuleBase_WidgetSelector::updateOnSelectionChanged(const bool theDone)
 QIntList ModuleBase_WidgetSelector::getShapeTypes() const
 {
   QIntList aShapeTypes = shapeTypes();
-  if (aShapeTypes.contains(TopAbs_SOLID) || aShapeTypes.contains(ModuleBase_ResultPrs::Sel_Result/*TopAbs_SHAPE*/)) {
+  if (/*aShapeTypes.contains(TopAbs_SOLID) ||*/ // this type should be mentioned in XML, poor selection otherwise
+      aShapeTypes.contains(ModuleBase_ResultPrs::Sel_Result/*TopAbs_SHAPE*/)) {
     // it should be selectable for both, "solids" and "objects" types
     aShapeTypes.append(TopAbs_COMPSOLID);
   }