<!-- Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
-
+<!-- Modified by Clarisse Genrault (CEA) : 17 Nov 2016 -->
<source>
- <multi_selector id="main_objects"
- label="Main objects"
- icon=":icons/cut_shape.png"
- tooltip="Select a solid objects"
- type_choice=""
- concealment="true">
- </multi_selector>
- <shape_selector id="axis_object"
- icon=":icons/axis.png"
- label="Axis"
- tooltip="Select an edge for axis"
- shape_types="edge"
- default="">
- <validator id="GeomValidators_ShapeType" parameters="line"/>
- </shape_selector>
- <doublevalue
- id="distance"
- label="Distance"
- step="1.0"
- default="0"
- icon=":icons/dimension_v.png"
- tooltip="Distance">
- </doublevalue>
-</source>
\ No newline at end of file
+ <toolbox id="CreationMethod">
+ <box id="ByAxisAndDistance"
+ title="By an axis and a distance"
+ icon="icons/Features/translation_vector_32x32.png">
+ <multi_selector id="main_objects"
+ label="Main objects"
+ icon=""
+ tooltip="Select solid objects"
+ type_choice="objects"
+ concealment="true">
+ <validator id="FeaturesPlugin_ValidatorTransform"/>
+ </multi_selector>
+ <shape_selector id="axis_object"
+ icon="icons/Features/axis.png"
+ label="Axis"
+ tooltip="Select an edge for axis"
+ shape_types="edge"
+ default="">
+ <validator id="GeomValidators_ShapeType" parameters="line"/>
+ </shape_selector>
+ <doublevalue id="distance"
+ label="Distance"
+ step="1.0"
+ default="0"
+ icon="icons/Features/dimension_v.png"
+ tooltip="Distance">
+ </doublevalue>
+ </box>
+ <box id="ByDimensions"
+ title="By dimensions in X, in X and in Z"
+ icon="icons/Features/translation_dxyz_32x32.png">
+ <multi_selector id="main_objects"
+ label="Main objects"
+ icon=""
+ tooltip="Select solid objects"
+ type_choice="objects"
+ concealment="true">
+ <validator id="FeaturesPlugin_ValidatorTransform"/>
+ </multi_selector>
+ <doublevalue id="dx"
+ label="DX"
+ step="1.0"
+ default="10"
+ icon=""
+ tooltip="Dimension in X">
+ </doublevalue>
+ <doublevalue id="dy"
+ label="DY"
+ step="1.0"
+ default="0"
+ icon=""
+ tooltip="Dimension in Y">
+ </doublevalue>
+ <doublevalue id="dz"
+ label="DZ"
+ step="1.0"
+ default="0"
+ icon=""
+ tooltip="Dimension in Z">
+ </doublevalue>
+ </box>
+ <box id="ByTwoPoints"
+ title="By two points"
+ icon="icons/Features/translation_2pt_32x32.png">
+ <multi_selector id="main_objects"
+ label="Main objects"
+ icon=""
+ tooltip="Select solid objects"
+ type_choice="objects"
+ concealment="true">
+ <validator id="FeaturesPlugin_ValidatorTransform"/>
+ </multi_selector>
+ <shape_selector id="start_point"
+ icon=""
+ label="Start point"
+ tooltip="Select the start point to define the axis"
+ shape_types="vertex"
+ default="">
+ <validator id="GeomValidators_ShapeType" parameters="vertex"/>
+ <validator id="GeomValidators_ConstructionComposite"/>
+ </shape_selector>
+ <shape_selector id="end_point"
+ icon=""
+ label="End point"
+ tooltip="Select the end point to define the axis"
+ shape_types="vertex"
+ default="">
+ <validator id="GeomValidators_ShapeType" parameters="vertex"/>
+ <validator id="GeomValidators_ConstructionComposite"/>
+ <validator id="GeomValidators_DifferentShapes"/>
+ </shape_selector>
+ </box>
+ </toolbox>
+</source>