<!-- 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 for the axis"
- shape_types="vertex"
- use_subshapes="true"
- />
- <shape_selector id="secondPoint"
- label="Second point"
- icon=":icons/point.png"
- tooltip="Select a second point for the axis"
- shape_types="vertex"
- use_subshapes="true">
- </shape_selector>
+ <toolbox id="CreationMethod">
+ <box id="AxisByPointsCase" title="By two points" icon="icons/Construction/by_two_points_32x32.png">
+ <shape_selector id="FirstPoint"
+ label="First point"
+ icon="icons/Construction/point.png"
+ tooltip="Select a first point"
+ shape_types="vertex">
+ <validator id="GeomValidators_ConstructionComposite"/>
+ <validator id="GeomValidators_ShapeType" parameters="vertex"/>
+ </shape_selector>
+ <shape_selector id="SecondPoint"
+ label="Second point"
+ icon="icons/Construction/point.png"
+ tooltip="Select a second point"
+ shape_types="vertex">
+ <validator id="GeomValidators_ConstructionComposite"/>
+ <validator id="GeomValidators_ShapeType" parameters="vertex"/>
+ <validator id="GeomValidators_DifferentShapes"/>
+ </shape_selector>
+ </box>
+ <box id="AxisByCylindricalFaceCase" title="As axis of cylindrical face" icon="icons/Construction/cylindrical_face_32x32.png">
+ <shape_selector id="CylindricalFace"
+ label="Main object"
+ icon="icons/Construction/circle.png"
+ tooltip="Select a cylindrical object"
+ shape_types="face">
+ <validator id="GeomValidators_Face" parameters="cylinder"/>
+ </shape_selector>
+ </box>
+ </toolbox>
+
</source>