Salome HOME
Fix for the issue #2588 : Invalid selection when select feature
[modules/shaper.git] / src / FeaturesPlugin / pipe_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   <multi_selector id="base_objects"
24                   label="Base objects:"
25                   tooltip="Select a base objects"
26                   type_choice="vertices edges wires faces shells compsolids"
27                   use_choice="false"
28                   concealment="true">
29     <validator id="FeaturesPlugin_ValidatorBaseForGeneration" parameters="vertex,edge,wire,face,shell,compound"/>
30   </multi_selector>
31   <shape_selector id="path_object"
32                   label="Path object:"
33                   tooltip="Select an edge or wire for path"
34                   shape_types="edge wire">
35     <validator id="FeaturesPlugin_ValidatorPipePath"/>
36   </shape_selector>
37   <toolbox id="creation_method">
38     <box id="simple" title="Simple pipe by objects and path" icon="icons/Features/pipe_simple_32x32.png"/>
39     <box id="binormal" title="Pipe by objects, path and Bi-Normal" icon="icons/Features/pipe_binormal_32x32.png">
40       <shape_selector id="binormal"
41                       label="Bi-Normal:"
42                       tooltip="Select an edge for Bi-Normal"
43                       shape_types="edge">
44         <validator id="GeomValidators_ShapeType" parameters="line"/>
45       </shape_selector>
46     </box>
47     <box id="locations" title="Pipe by objects, path and locations" icon="icons/Features/pipe_locations_32x32.png">
48       <multi_selector id="locations_objects"
49                       label="Locations:"
50                       tooltip="Select one or more vertices to specify the locations"
51                       type_choice="vertex">
52       </multi_selector>
53     </box>
54   </toolbox>
55   <validator id="FeaturesPlugin_ValidatorPipeLocations"/>
56   <validator id="FeaturesPlugin_ValidatorBaseForGenerationSketchOrSketchObjects" parameters="base_objects"/>
57 </source>