Salome HOME
Property panel widgets redesign
[modules/shaper.git] / src / ConstructionPlugin / axis_widget.xml
index a3424e3f1b1d5acb8a0b43f68b91684142b7da1d..0042745695cfdb98d3a7011925caded1e206e97e 100644 (file)
@@ -1,19 +1,32 @@
 <!-- Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
 
 <source>
-  <shape_selector id="firstPoint"
-    label="First point"
-    icon=":icons/point.png"
-    tooltip="Select a first point"
-    shape_types="vertex">
-    <selection_filter id="NoConstructionSubShapesFilter"/>
-  </shape_selector>
-  <shape_selector id="secondPoint"
-    label="Second point"
-    icon=":icons/point.png"
-    tooltip="Select a second point"
-    shape_types="vertex">
-    <selection_filter id="NoConstructionSubShapesFilter"/>
-    <validator id="PartSet_DifferentShapes"/>
-  </shape_selector>
+  <toolbox>
+    <box id="AxisByPointsCase" title="By two points">
+      <shape_selector id="firstPoint"
+        label="First point"
+        icon=":icons/point.png"
+        tooltip="Select a first point"
+        shape_types="vertex">
+        <selection_filter id="NoConstructionSubShapesFilter"/>
+      </shape_selector>
+      <shape_selector id="secondPoint"
+        label="Second point"
+        icon=":icons/point.png"
+        tooltip="Select a second point"
+        shape_types="vertex">
+        <selection_filter id="NoConstructionSubShapesFilter"/>
+        <validator id="PartSet_DifferentShapes"/>
+      </shape_selector>
+    </box>
+    <box id="AxisByCylindricalFaceCase" title="As axis of cylindrical face">
+      <shape_selector id="main_object" 
+        label="Main object" 
+        icon=":icons/circle.png" 
+        tooltip="Select a cylindrical object"
+        shape_types="face solid shell">
+      </shape_selector>
+    </box>
+  </toolbox>
+  
 </source>