- <!-- SketchConstraintFillet -->
- <feature id="SketchConstraintFillet" title="Fillet" tooltip="Create constraint defining fillet between two objects" icon=":icons/fillet.png">
- <sketch_constraint_shape_selector id="ConstraintEntityA"
- label="First object" tooltip="Select line or arc" shape_types="edge">
- </sketch_constraint_shape_selector>
-
- <sketch_constraint_shape_selector id="ConstraintEntityB"
- label="Last object" tooltip="Select line or arc" shape_types="edge">
- </sketch_constraint_shape_selector>
+ <!-- SketchConstraintMirror -->
+ <feature
+ id="SketchConstraintMirror"
+ title="Mirror" icon=":icons/mirror.png"
+ tooltip="Create constraint, mirroring group of objects">
+ <sketch_shape_selector id="ConstraintEntityA"
+ label="Mirror line" tooltip="Select mirror line" shape_types="edge">
+ <validator id="GeomValidators_ShapeType" parameters="line"/>
+ </sketch_shape_selector>
+ <sketch_multi_selector id="ConstraintMirrorList"
+ label="Segments:"
+ tooltip="Select list of mirroring objects"
+ type_choice="Edges"
+ use_external="true">
+ <validator id="SketchPlugin_MirrorAttr" />
+ </sketch_multi_selector>
+ </feature>
+
+ <!-- SketchMultiTranslation -->
+ <feature
+ id="SketchMultiTranslation"
+ title="Translation" icon=":icons/translate.png"
+ tooltip="Multiple translation">
+ <sketch_multi_selector id="MultiTranslationList"
+ label="Segments:"
+ tooltip="Select list of translating objects"
+ type_choice="Edges"
+ use_external="true">
+ <validator id="SketchPlugin_CopyValidator" />
+ </sketch_multi_selector>
+ <toolbox id="ValueType">
+ <box id="SingleValue" title="Single value" icon=":icons/translate_32x32.png">
+ <groupbox title="Direction">
+ <sketch_shape_selector
+ id="MultiTranslationStartPoint"
+ label="Start point"
+ tooltip="Start point of translation"
+ shape_types="vertex">
+ <validator id="PartSet_DifferentObjects"/>
+ <validator id="GeomValidators_ShapeType" parameters="vertex"/>
+ </sketch_shape_selector>
+ <sketch_shape_selector
+ id="MultiTranslationEndPoint"
+ label="End point"
+ tooltip="Final point of translation"
+ shape_types="vertex">
+ <validator id="PartSet_DifferentObjects"/>
+ <validator id="GeomValidators_ShapeType" parameters="vertex"/>
+ </sketch_shape_selector>
+ </groupbox>
+ </box>
+ <box id="FullValue" title="Full value" icon=":icons/translate_full_32x32.png">
+ <groupbox title="Direction">
+ <sketch_shape_selector
+ id="MultiTranslationStartPoint"
+ label="Start point"
+ tooltip="Start point of translation"
+ shape_types="vertex">
+ <validator id="PartSet_DifferentObjects"/>
+ <validator id="GeomValidators_ShapeType" parameters="vertex"/>
+ </sketch_shape_selector>
+ <sketch_shape_selector
+ id="MultiTranslationEndPoint"
+ label="End point"
+ tooltip="Final point of translation"
+ shape_types="vertex">
+ <validator id="PartSet_DifferentObjects"/>
+ <validator id="GeomValidators_ShapeType" parameters="vertex"/>
+ </sketch_shape_selector>
+ </groupbox>
+ </box>
+ </toolbox>
+ <integervalue id="MultiTranslationObjects"
+ label="Total number of objects"
+ tooltip="Total number of objects"
+ default="2" min="2" use_reset="false">
+ <validator id="GeomValidators_Positive"/>
+ </integervalue>
+ </feature>