]> SALOME platform Git repositories - modules/shaper.git/blob - src/FeaturesPlugin/translation_widget.xml
Salome HOME
Reverted some changes in salome build/run scripts.
[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         <validator id="GeomValidators_ShapeType" parameters="line"/>
42       </shape_selector>
43       <doublevalue id="distance"
44                    label="Distance"
45                    step="1.0"
46                    default="0"
47                    icon="icons/Features/dimension_v.png"
48                    tooltip="Distance">
49       </doublevalue>
50     </box>
51     <box id="ByDimensions"
52          title="By X, Y and Z dimensions"
53          icon="icons/Features/translation_dxyz_32x32.png">
54       <multi_selector id="main_objects"
55                       label="Main objects"
56                       icon=""
57                       tooltip="Select solid objects"
58                       type_choice="objects"
59                       concealment="true">
60         <validator id="FeaturesPlugin_ValidatorTransform"/>
61       </multi_selector>
62       <doublevalue id="dx"
63                    label="DX"
64                    step="1.0"
65                    default="10"
66                    icon=""
67                    tooltip="Dimension in X">
68       </doublevalue>
69       <doublevalue id="dy"
70                    label="DY"
71                    step="1.0"
72                    default="0"
73                    icon=""
74                    tooltip="Dimension in Y">
75       </doublevalue>
76       <doublevalue id="dz"
77                    label="DZ"
78                    step="1.0"
79                    default="0"
80                    icon=""
81                    tooltip="Dimension in Z">
82       </doublevalue>
83     </box>
84     <box id="ByTwoPoints"
85          title="By two points"
86          icon="icons/Features/translation_2pt_32x32.png">
87       <multi_selector id="main_objects"
88                       label="Main objects"
89                       icon=""
90                       tooltip="Select solid objects"
91                       type_choice="objects"
92                       concealment="true">
93         <validator id="FeaturesPlugin_ValidatorTransform"/>
94       </multi_selector>
95       <shape_selector id="start_point"
96                       icon=""
97                       label="Start point"
98                       tooltip="Select the start point to define the axis"
99                       shape_types="vertex"
100                       default="">
101         <validator id="GeomValidators_ShapeType" parameters="vertex"/>
102         <validator id="GeomValidators_ConstructionComposite"/>
103       </shape_selector>
104       <shape_selector id="end_point"
105                       icon=""
106                       label="End point"
107                       tooltip="Select the end point to define the axis"
108                       shape_types="vertex"
109                       default="">
110         <validator id="GeomValidators_ShapeType" parameters="vertex"/>
111         <validator id="GeomValidators_ConstructionComposite"/>
112         <validator id="GeomValidators_DifferentShapes"/>
113       </shape_selector>
114     </box>
115  </toolbox>
116 </source>