Salome HOME
Issue #2811: Update content of Object node on creation moment
[modules/shaper.git] / src / FeaturesPlugin / translation_widget.xml
1 <!--
2 Copyright (C) 2014-2017  CEA/DEN, EDF R&D
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with this library; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
18 See http:##www.salome-platform.org/ or
19 email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
20 -->
21
22 <source>
23   <toolbox id="CreationMethod">
24     <box id="ByAxisAndDistance"
25          title="By an axis and a distance"
26          icon="icons/Features/translation_vector_32x32.png">
27       <multi_selector id="main_objects"
28                       label="Main objects"
29                       icon=""
30                       tooltip="Select solid objects"
31                       type_choice="objects"
32                       concealment="true">
33         <validator id="FeaturesPlugin_ValidatorTransform"/>
34       </multi_selector>
35       <shape_selector id="axis_object"
36                       icon="icons/Features/axis.png"
37                       label="Axis"
38                       tooltip="Select an edge for axis"
39                       shape_types="edge"
40                       default=""
41                       geometrical_selection="true">
42         <validator id="GeomValidators_ShapeType" parameters="line"/>
43       </shape_selector>
44       <doublevalue id="distance"
45                    label="Distance"
46                    step="1.0"
47                    default="0"
48                    icon="icons/Features/dimension_v.png"
49                    tooltip="Distance">
50       </doublevalue>
51     </box>
52     <box id="ByDimensions"
53          title="By X, Y and Z dimensions"
54          icon="icons/Features/translation_dxyz_32x32.png">
55       <multi_selector id="main_objects"
56                       label="Main objects"
57                       icon=""
58                       tooltip="Select solid objects"
59                       type_choice="objects"
60                       concealment="true">
61         <validator id="FeaturesPlugin_ValidatorTransform"/>
62       </multi_selector>
63       <doublevalue id="dx"
64                    label="DX"
65                    step="1.0"
66                    default="10"
67                    icon=""
68                    tooltip="Dimension in X">
69       </doublevalue>
70       <doublevalue id="dy"
71                    label="DY"
72                    step="1.0"
73                    default="0"
74                    icon=""
75                    tooltip="Dimension in Y">
76       </doublevalue>
77       <doublevalue id="dz"
78                    label="DZ"
79                    step="1.0"
80                    default="0"
81                    icon=""
82                    tooltip="Dimension in Z">
83       </doublevalue>
84     </box>
85     <box id="ByTwoPoints"
86          title="By two points"
87          icon="icons/Features/translation_2pt_32x32.png">
88       <multi_selector id="main_objects"
89                       label="Main objects"
90                       icon=""
91                       tooltip="Select solid objects"
92                       type_choice="objects"
93                       concealment="true">
94         <validator id="FeaturesPlugin_ValidatorTransform"/>
95       </multi_selector>
96       <shape_selector id="start_point"
97                       icon=""
98                       label="Start point"
99                       tooltip="Select the start point to define the axis"
100                       shape_types="vertex"
101                       default="">
102         <validator id="GeomValidators_ShapeType" parameters="vertex"/>
103         <validator id="GeomValidators_ConstructionComposite"/>
104       </shape_selector>
105       <shape_selector id="end_point"
106                       icon=""
107                       label="End point"
108                       tooltip="Select the end point to define the axis"
109                       shape_types="vertex"
110                       default="">
111         <validator id="GeomValidators_ShapeType" parameters="vertex"/>
112         <validator id="GeomValidators_ConstructionComposite"/>
113         <validator id="GeomValidators_DifferentShapes"/>
114       </shape_selector>
115     </box>
116  </toolbox>
117 </source>