Salome HOME
Implementation of macro-feature Rectangle
[modules/shaper.git] / src / PythonAddons / macros / rectangle / widget.xml
1 <source>
2   <workbench id="Sketch">
3     <group id="Macro">
4
5       <!-- SketchRectangle (python feature) -->
6       <feature
7         id="SketchRectangle"
8         title="Rectangle"
9         tooltip="Create rectangle"
10         icon=":icons/rectangle.png">
11         <sketch-2dpoint_selector id="RectStartPoint" accept_expressions="0" title="Start point" tooltip="Start point coordinates"/>
12         <sketch-2dpoint_selector id="RectEndPoint" accept_expressions="0" title="End point" tooltip="End point coordinates"/>
13         <boolvalue id="Auxiliary" label="Auxiliary" default="false" tooltip="Construction element" obligatory="0"/>
14         <validator id="GeomValidators_Different" parameters="RectStartPoint,RectEndPoint"/>
15       </feature>
16
17     </group>
18   </workbench>  
19 </source>