- <feature id="SketchArc" title="Arc" tooltip="Create arc" icon=":icons/arc.png">
- <sketch-2dpoint_selector id="ArcCenter" title="Center" tooltip="Center of a circle"/>
- <sketch-2dpoint_selector id="ArcStartPoint" title="Start point" tooltip="Start point"/>
- <sketch-2dpoint_selector id="ArcEndPoint" title="End point" tooltip="End point"/>
- <boolvalue id="Auxiliary" label="Auxiliary" default="false" tooltip="Construction element" obligatory="0"/>
- <validator id="GeomValidators_Different" parameters="ArcCenter,ArcStartPoint,ArcEndPoint"/>
+
+ <!-- SketchArc -->
+ <feature
+ id="SketchArc"
+ title="Arc"
+ tooltip="Create arc"
+ icon=":icons/arc.png">
+ <toolbox id="ArcType">
+ <box id="CenterStartEnd" title="Center and two points" icon=":icons/arc_base_32x32.png">
+ <sketch-2dpoint_selector id="ArcCenter" accept_expressions="0" title="Center" tooltip="Center of a circle"/>
+ <sketch-2dpoint_selector id="ArcStartPoint" accept_expressions="0" title="Start point" tooltip="Start point"/>
+ <sketch-2dpoint_selector id="ArcEndPoint" accept_expressions="0" title="End point" tooltip="End point"/>
+ <boolvalue id="Auxiliary" label="Auxiliary" default="false" tooltip="Construction element" obligatory="0"/>
+ <validator id="GeomValidators_Different" parameters="ArcCenter,ArcStartPoint,ArcEndPoint"/>
+ </box>
+ <box id="ThreePoints" title="Three points on arc" icon=":icons/arc_3pt_32x32.png">
+ <sketch-2dpoint_selector id="ArcStartPoint" accept_expressions="0" title="Start point" tooltip="Start point"/>
+ <sketch-2dpoint_selector id="ArcEndPoint" accept_expressions="0" title="End point" tooltip="End point"/>
+ <sketch-2dpoint_selector id="ArcPassedPoint" accept_expressions="0" title="Passed point" tooltip="Passed point"/>
+ <doublevalue id="ArcRadius" accept_expressions="0" label="Radius:" default="computed" icon=":icons/radius.png" tooltip="Set radius" obligatory="1">
+ <validator id="GeomValidators_Positive"/>
+ </doublevalue>
+ <doublevalue id="ArcAngle" label="Angle:" icon=":icons/angle.png" tooltip="Set angle" default="90" use_reset="false" obligatory="1"/>
+ <boolvalue id="Auxiliary" label="Auxiliary" default="false" tooltip="Construction element" obligatory="0"/>
+ <validator id="GeomValidators_Different" parameters="ArcStartPoint,ArcEndPoint,ArcPassedPoint"/>
+ </box>
+ <box id="Tangent" title="Tangent with edge" icon=":icons/arc_tang_32x32.png">
+ <sketch_shape_selector id="ArcTangentPoint" label="Start point" tooltip="Select point on line" shape_types="vertex">
+ <validator id="SketchPlugin_ArcTangentPoint" parameters="" />
+ </sketch_shape_selector>
+ <sketch-2dpoint_selector id="ArcEndPoint" accept_expressions="0" title="End point" tooltip="End point"/>
+ <doublevalue id="ArcRadius" accept_expressions="0" label="Radius:" default="computed" icon=":icons/radius.png" tooltip="Set radius" obligatory="1">
+ <validator id="GeomValidators_Positive"/>
+ </doublevalue>
+ <doublevalue id="ArcAngle" label="Angle:" icon=":icons/angle.png" tooltip="Set angle" default="90" use_reset="false" obligatory="1"/>
+ <boolvalue id="Auxiliary" label="Auxiliary" default="false" tooltip="Construction element" obligatory="0"/>
+ </box>
+ </toolbox>
+ </feature>
+ </group>
+
+ <group id="Macro">
+ <!-- SketchConstraintFillet -->
+ <feature id="SketchConstraintFillet" title="Fillet" tooltip="Create constraint defining fillet between two objects" icon=":icons/fillet.png">
+ <!--<sketch_shape_selector id="ConstraintEntityA"
+ label="Point" tooltip="Select point for fillet (should be shared by two entities only)" shape_types="vertex">
+ <validator id="SketchPlugin_FilletVertexValidator"/>
+ </sketch_shape_selector>-->
+ <sketch_multi_selector id="ConstraintEntityA"
+ label="Points:"
+ tooltip="Select points for fillets"
+ type_choice="Vertices">
+ <validator id="SketchPlugin_FilletVertexValidator"/>
+ </sketch_multi_selector>
+ <doublevalue label="Radius" tooltip="Fillet arc radius" id="ConstraintValue" accept_expressions="0" min="0" use_reset="false">
+ <validator id="GeomValidators_Positive"/>
+ </doublevalue>
+ <validator id="PartSet_FilletSelection"/>