]> SALOME platform Git repositories - modules/shaper.git/blob - src/FeaturesPlugin/translation_widget.xml
Salome HOME
Issue #2052: Modification of parameters don't work (sketch, extrusion)
[modules/shaper.git] / src / FeaturesPlugin / translation_widget.xml
1 <!-- Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
2 <!-- Modified by Clarisse Genrault (CEA) : 17 Nov 2016 -->
3 <source>
4   <toolbox id="CreationMethod">
5     <box id="ByAxisAndDistance"
6          title="By an axis and a distance"
7          icon="icons/Features/translation_vector_32x32.png">
8       <multi_selector id="main_objects"
9                       label="Main objects"
10                       icon=""
11                       tooltip="Select solid objects"
12                       type_choice="objects"
13                       concealment="true">
14         <validator id="FeaturesPlugin_ValidatorTransform"/>
15       </multi_selector>
16       <shape_selector id="axis_object"
17                       icon="icons/Features/axis.png"
18                       label="Axis"
19                       tooltip="Select an edge for axis"
20                       shape_types="edge"
21                       default="">
22         <validator id="GeomValidators_ShapeType" parameters="line"/>
23       </shape_selector>
24       <doublevalue id="distance"
25                    label="Distance"
26                    step="1.0"
27                    default="0"
28                    icon="icons/Features/dimension_v.png"
29                    tooltip="Distance">
30       </doublevalue>
31     </box>
32     <box id="ByDimensions"
33          title="By dimensions in X, in X and in Z"
34          icon="icons/Features/translation_dxyz_32x32.png">
35       <multi_selector id="main_objects"
36                       label="Main objects"
37                       icon=""
38                       tooltip="Select solid objects"
39                       type_choice="objects"
40                       concealment="true">
41         <validator id="FeaturesPlugin_ValidatorTransform"/>
42       </multi_selector>
43       <doublevalue id="dx"
44                    label="DX"
45                    step="1.0"
46                    default="10"
47                    icon=""
48                    tooltip="Dimension in X">
49       </doublevalue>
50       <doublevalue id="dy"
51                    label="DY"
52                    step="1.0"
53                    default="0"
54                    icon=""
55                    tooltip="Dimension in Y">
56       </doublevalue>
57       <doublevalue id="dz"
58                    label="DZ"
59                    step="1.0"
60                    default="0"
61                    icon=""
62                    tooltip="Dimension in Z">
63       </doublevalue>
64     </box>
65     <box id="ByTwoPoints"
66          title="By two points"
67          icon="icons/Features/translation_2pt_32x32.png">
68       <multi_selector id="main_objects"
69                       label="Main objects"
70                       icon=""
71                       tooltip="Select solid objects"
72                       type_choice="objects"
73                       concealment="true">
74         <validator id="FeaturesPlugin_ValidatorTransform"/>
75       </multi_selector>
76       <shape_selector id="start_point"
77                       icon=""
78                       label="Start point"
79                       tooltip="Select the start point to define the axis"
80                       shape_types="vertex"
81                       default="">
82         <validator id="GeomValidators_ShapeType" parameters="vertex"/>
83         <validator id="GeomValidators_ConstructionComposite"/>
84       </shape_selector>
85       <shape_selector id="end_point"
86                       icon=""
87                       label="End point"
88                       tooltip="Select the end point to define the axis"
89                       shape_types="vertex"
90                       default="">
91         <validator id="GeomValidators_ShapeType" parameters="vertex"/>
92         <validator id="GeomValidators_ConstructionComposite"/>
93         <validator id="GeomValidators_DifferentShapes"/>
94       </shape_selector>
95     </box>
96  </toolbox>
97 </source>