plugin-Connector.xml
)
+SET(ICON_RESOURCES
+ icons/geom_export.png
+)
+
ADD_CUSTOM_TARGET(ConnectorPlugin SOURCES ${PYTHON_FILES} ${XML_RESOURCES})
INSTALL(FILES ${PYTHON_FILES} DESTINATION ${SHAPER_INSTALL_PYTHON_FILES})
INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
+INSTALL(FILES ${ICON_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Connector)
GeomAlgoAPI
)
+SET(ICON_RESOURCES
+ icons/axis.png
+ icons/by_two_points_32x32.png
+ icons/circle.png
+ icons/cylindrical_face_32x32.png
+ icons/plane.png
+ icons/point.png
+)
+
ADD_DEFINITIONS(-DCONSTRUCTIONPLUGIN_EXPORTS)
ADD_LIBRARY(ConstructionPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES})
TARGET_LINK_LIBRARIES(ConstructionPlugin ${PROJECT_LIBRARIES})
INSTALL(TARGETS ConstructionPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
+INSTALL(FILES ${ICON_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Construction)
INCLUDE_DIRECTORIES(
../Config
<source>
<toolbox id="CreationMethod">
- <box id="AxisByPointsCase" title="By two points" icon=":icons/by_two_points_32x32.png">
+ <box id="AxisByPointsCase" title="By two points" icon="icons/Construction/by_two_points_32x32.png">
<shape_selector id="FirstPoint"
label="First point"
- icon=":icons/point.png"
+ icon="icons/Construction/point.png"
tooltip="Select a first point"
shape_types="vertex">
<validator id="GeomValidators_ConstructionComposite"/>
</shape_selector>
<shape_selector id="SecondPoint"
label="Second point"
- icon=":icons/point.png"
+ icon="icons/Construction/point.png"
tooltip="Select a second point"
shape_types="vertex">
<validator id="GeomValidators_ConstructionComposite"/>
<validator id="GeomValidators_DifferentShapes"/>
</shape_selector>
</box>
- <box id="AxisByCylindricalFaceCase" title="As axis of cylindrical face" icon=":icons/cylindrical_face_32x32.png">
+ <box id="AxisByCylindricalFaceCase" title="As axis of cylindrical face" icon="icons/Construction/cylindrical_face_32x32.png">
<shape_selector id="CylindricalFace"
label="Main object"
- icon=":icons/circle.png"
+ icon="icons/Construction/circle.png"
tooltip="Select a cylindrical object"
shape_types="face solid shell">
<validator id="GeomValidators_Face" parameters="cylinder"/>
id="Point"
title="Point"
tooltip="Create point"
- icon=":icons/point.png">
+ icon="icons/Construction/point.png">
<source path="point_widget.xml" />
</feature>
<feature
id="Axis"
title="Axis"
tooltip="Create axis"
- icon=":icons/axis.png">
+ icon="icons/Construction/axis.png">
<source path="axis_widget.xml" />
</feature>
<feature
id="Plane"
title="Plane"
tooltip="Create plane"
- icon=":icons/plane.png">
+ icon="icons/Construction/plane.png">
<source path="plane_widget.xml" />
</feature>
</group>
GeomAlgoAPI
)
+SET(ICON_RESOURCES
+ icons/export.png
+ icons/import.png
+)
+
ADD_DEFINITIONS(-DEXCHANGEPLUGIN_EXPORTS)
ADD_LIBRARY(ExchangePlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES})
INSTALL(TARGETS ExchangePlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
+INSTALL(FILES ${ICON_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Exchange)
ADD_UNIT_TESTS(TestImport.py TestExport.py)
<plugin>
<workbench id="Part">
<group id="Exchange">
- <feature id="Import" title="Import" tooltip="Import a file" icon=":icons/import.png" document="Part">
+ <feature id="Import" title="Import" tooltip="Import a file" icon="icons/Exchange/import.png" document="Part">
<file_selector id="file_path" title="Import file" path="">
<validator id="ExchangePlugin_ImportFormat" parameters="BREP|BRP:BREP,STEP|STP:STEP,IGES|IGS:IGES" />
</file_selector>
</feature>
- <feature id="Export" title="Export" tooltip="Export to file" icon=":icons/export.png">
+ <feature id="Export" title="Export" tooltip="Export to file" icon="icons/Exchange/export.png">
<export_file_selector id="file_path" type="save" title="Export file" path="">
<validator id="ExchangePlugin_ExportFormat" parameters="BREP|BRP:BREP,STEP|STP:STEP,IGES|IGS:IGES-5.1,IGES|IGS:IGES-5.3" />
</export_file_selector>
GeomValidators
)
+SET(ICON_RESOURCES
+ icons/angle.png
+ icons/angle_down.png
+ icons/angle_up.png
+ icons/angle_up_down.png
+ icons/angle_up_down_32x32.png
+ icons/axis.png
+ icons/bool_common.png
+ icons/bool_cut.png
+ icons/bool_fuse.png
+ icons/bool_smash.png
+ icons/common.png
+ icons/cut.png
+ icons/cut_shape.png
+ icons/cut_tool.png
+ icons/dimension_down.png
+ icons/dimension_down_32x32.png
+ icons/dimension_up.png
+ icons/dimension_up_32x32.png
+ icons/dimension_up_down.png
+ icons/dimension_up_down_32x32.png
+ icons/dimension_v.png
+ icons/dimension_v_32x32.png
+ icons/dimension_vert_32x32.png
+ icons/extrusion.png
+ icons/extrusion_cut.png
+ icons/extrusion_fuse.png
+ icons/extrusionsketch.png
+ icons/feature_wire.png
+ icons/fusion.png
+ icons/intersection.png
+ icons/movement.png
+ icons/partition.png
+ icons/pipe.png
+ icons/pipe_binormal_32x32.png
+ icons/pipe_locations_32x32.png
+ icons/pipe_simple_32x32.png
+ icons/placement.png
+ icons/placement_from.png
+ icons/placement_to.png
+ icons/plane.png
+ icons/plane_inverted.png
+ icons/plane_inverted_32x32.png
+ icons/revol_cut.png
+ icons/revol_fuse.png
+ icons/revolsketch.png
+ icons/rotation.png
+ icons/shape_group.png
+ icons/sketch.png
+)
+
ADD_DEFINITIONS(-DFEATURESPLUGIN_EXPORTS)
ADD_LIBRARY(FeaturesPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES})
TARGET_LINK_LIBRARIES(FeaturesPlugin ${PROJECT_LIBRARIES})
INSTALL(TARGETS FeaturesPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
+INSTALL(FILES ${ICON_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Features)
ADD_UNIT_TESTS(TestExtrusion.py
TestExtrusionCut.py
tooltip="Type of boolean operation"
string_list="Cut Fuse Common Smash"
use_in_title="true"
- icons_list=":icons/bool_cut.png :icons/bool_fuse.png :icons/bool_common.png :icons/bool_smash.png"
+ icons_list="icons/Features/bool_cut.png :icons/bool_fuse.png :icons/bool_common.png :icons/bool_smash.png"
default="0"
/>
<multi_selector id="main_objects"
<validator id="FeaturesPlugin_ValidatorBaseForGeneration" parameters="vertex,edge,wire,face,shell"/>
</multi_selector>
<shape_selector id="direction_object"
- icon=":icons/axis.png"
+ icon="icons/Features/axis.png"
label="Direction"
tooltip="Select an edge for direction"
shape_types="edge"
<toolbox id="CreationMethod">
<box id="BySizes"
title="By sizes"
- icon=":icons/dimension_up_down_32x32.png">
+ icon="icons/Features/dimension_up_down_32x32.png">
<groupbox>
<doublevalue id="to_size"
label="Size"
step="1.0"
default="10"
- icon=":icons/dimension_up.png"
+ icon="icons/Features/dimension_up.png"
tooltip="To size"/>
</groupbox>
<groupbox>
label="Size"
step="1.0"
default="0"
- icon=":icons/dimension_down.png"
+ icon="icons/Features/dimension_down.png"
tooltip="From size"/>
</groupbox>
</box>
<box id="ByPlanesAndOffsets"
title="By bounding planes and offsets"
- icon=":icons/plane_inverted_32x32.png">
+ icon="icons/Features/plane_inverted_32x32.png">
<groupbox title="From">
<shape_selector id="from_object"
- icon=":icons/plane.png"
+ icon="icons/Features/plane.png"
label="Plane face"
tooltip="Bounding plane (select a planar face)"
shape_types="face"
label="Offset"
step="1.0"
default="0"
- icon=":icons/dimension_up_down.png"
+ icon="icons/Features/dimension_up_down.png"
tooltip="Offset for "from" bounding plane"/>
</groupbox>
<groupbox title="To">
<shape_selector id="to_object"
- icon=":icons/plane_inverted.png"
+ icon="icons/Features/plane_inverted.png"
label="Plane face"
tooltip="Bounding plane (select a planar face)"
shape_types="face"
label="Offset"
step="1.0"
default="0"
- icon=":icons/dimension_up_down.png"
+ icon="icons/Features/dimension_up_down.png"
tooltip="Offset for "to" bounding plane"/>
</groupbox>
</box>
</sketch_launcher>
<multi_selector id="base"
label="Select a sketch face"
- icon=":icons/sketch.png"
+ icon="icons/Features/sketch.png"
tooltip="Select a sketch face"
type_choice="Faces Objects">
<validator id="FeaturesPlugin_ValidatorBaseForGeneration" parameters="face,shell"/>
</multi_selector>
<shape_selector id="direction_object"
- icon=":icons/axis.png"
+ icon="icons/Features/axis.png"
label="Direction"
tooltip="Select an edge for direction"
shape_types="edge"
<validator id="GeomValidators_ShapeType" parameters="empty,line"/>
</shape_selector>
<toolbox id="CreationMethod">
- <box id="BySizes" title="By sizes" icon=":icons/dimension_up_down_32x32.png">
+ <box id="BySizes" title="By sizes" icon="icons/Features/dimension_up_down_32x32.png">
<groupbox>
<doublevalue
id="to_size"
label="Size"
step="1.0"
default="0"
- icon=":icons/dimension_up.png"
+ icon="icons/Features/dimension_up.png"
tooltip="To size">
</doublevalue>
</groupbox>
label="Size"
step="1.0"
default="10"
- icon=":icons/dimension_down.png"
+ icon="icons/Features/dimension_down.png"
tooltip="From size">
</doublevalue>
</groupbox>
</box>
- <box id="ByPlanesAndOffsets" title="By bounding planes and offsets" icon=":icons/plane_inverted_32x32.png">
+ <box id="ByPlanesAndOffsets" title="By bounding planes and offsets" icon="icons/Features/plane_inverted_32x32.png">
<groupbox title="From">
<shape_selector id="from_object"
- icon=":icons/plane.png"
+ icon="icons/Features/plane.png"
label="Plane face"
tooltip="Bounding plane (select a planar face)"
shape_types="face"
</shape_selector>
<doublevalue id="from_offset"
label="Offset" step="1.0" default="0"
- icon=":icons/dimension_up_down.png"
+ icon="icons/Features/dimension_up_down.png"
tooltip="Offset for bounding plane">
</doublevalue>
</groupbox>
<groupbox title="To">
<shape_selector id="to_object"
- icon=":icons/plane_inverted.png"
+ icon="icons/Features/plane_inverted.png"
label="Plane face"
tooltip="Bounding plane (select a planar face)"
shape_types="face"
</shape_selector>
<doublevalue id="to_offset"
label="Offset" step="1.0" default="0"
- icon=":icons/dimension_up_down.png"
+ icon="icons/Features/dimension_up_down.png"
tooltip="Offset for bounding plane">
</doublevalue>
</groupbox>
</groupbox>
<multi_selector id="main_objects"
label="Cut from:"
- icon=":icons/cut_shape.png"
+ icon="icons/Features/cut_shape.png"
tooltip="Objects to Cut"
type_choice="Solids"
concealment="true">
</sketch_launcher>
<multi_selector id="base"
label="Select a sketch face"
- icon=":icons/sketch.png"
+ icon="icons/Features/sketch.png"
tooltip="Select a sketch face"
type_choice="Faces Objects">
<validator id="FeaturesPlugin_ValidatorBaseForGeneration" parameters="vertex,edge,wire,face,shell"/>
</multi_selector>
<shape_selector id="direction_object"
- icon=":icons/axis.png"
+ icon="icons/Features/axis.png"
label="Direction"
tooltip="Select an edge for direction"
shape_types="edge"
<validator id="GeomValidators_ShapeType" parameters="empty,line"/>
</shape_selector>
<toolbox id="CreationMethod">
- <box id="BySizes" title="By sizes" icon=":icons/dimension_up_down_32x32.png">
+ <box id="BySizes" title="By sizes" icon="icons/Features/dimension_up_down_32x32.png">
<groupbox>
<doublevalue
id="to_size"
label="Size"
step="1.0"
default="10"
- icon=":icons/dimension_up.png"
+ icon="icons/Features/dimension_up.png"
tooltip="To size">
</doublevalue>
</groupbox>
label="Size"
step="1.0"
default="0"
- icon=":icons/dimension_down.png"
+ icon="icons/Features/dimension_down.png"
tooltip="From size">
</doublevalue>
</groupbox>
</box>
- <box id="ByPlanesAndOffsets" title="By bounding planes and offsets" icon=":icons/plane_inverted_32x32.png">
+ <box id="ByPlanesAndOffsets" title="By bounding planes and offsets" icon="icons/Features/plane_inverted_32x32.png">
<groupbox title="From">
<shape_selector id="from_object"
- icon=":icons/plane.png"
+ icon="icons/Features/plane.png"
label="Plane face"
tooltip="Bounding plane (select a planar face)"
shape_types="face"
</shape_selector>
<doublevalue id="from_offset"
label="Offset" step="1.0" default="0"
- icon=":icons/dimension_up_down.png"
+ icon="icons/Features/dimension_up_down.png"
tooltip="Offset for bounding plane">
</doublevalue>
</groupbox>
<groupbox title="To">
<shape_selector id="to_object"
- icon=":icons/plane_inverted.png"
+ icon="icons/Features/plane_inverted.png"
label="Plane face"
tooltip="Bounding plane (select a planar face)"
shape_types="face"
</shape_selector>
<doublevalue id="to_offset"
label="Offset" step="1.0" default="0"
- icon=":icons/dimension_up_down.png"
+ icon="icons/Features/dimension_up_down.png"
tooltip="Offset for bounding plane">
</doublevalue>
</groupbox>
</groupbox>
<multi_selector id="main_objects"
label="Fuse with:"
- icon=":icons/cut_shape.png"
+ icon="icons/Features/cut_shape.png"
tooltip="Objects to Fuse"
type_choice="Solids"
concealment="true">
<source>
<multi_selector id="main_objects"
label="Main objects"
- icon=":icons/cut_shape.png"
+ icon="icons/Features/cut_shape.png"
tooltip="Select objects(objects, compsoilds, solids, shells, faces or edges)"
type_choice="Solids Objects"
use_choice="false"
</multi_selector>
<multi_selector id="tool_objects"
label="Tool objects"
- icon=":icons/cut_tool.png"
+ icon="icons/Features/cut_tool.png"
tooltip="Select tools(objects, compsoilds, solids, shells, faces or edges)"
type_choice="Solids Objects"
use_choice="false"
<source>
<multi_selector id="main_objects"
label="Main objects"
- icon=":icons/cut_shape.png"
+ icon="icons/Features/cut_shape.png"
tooltip="Select solid objects"
type_choice="Solids"
concealment="true">
</multi_selector>
<multi_selector id="tool_objects"
label="Tool objects"
- icon=":icons/cut_tool.png"
+ icon="icons/Features/cut_tool.png"
tooltip="Select a tool face or solid"
type_choice="Faces Solids"
use_choice="false"
shape_types="edge wire">
</shape_selector>
<toolbox id="creation_method">
- <box id="simple" title="Simple pipe by objects and path" icon=":icons/pipe_simple_32x32.png"/>
- <box id="binormal" title="Pipe by objects, path and Bi-Normal" icon=":icons/pipe_binormal_32x32.png">
+ <box id="simple" title="Simple pipe by objects and path" icon="icons/Features/pipe_simple_32x32.png"/>
+ <box id="binormal" title="Pipe by objects, path and Bi-Normal" icon="icons/Features/pipe_binormal_32x32.png">
<shape_selector id="binormal"
label="Bi-Normal:"
tooltip="Select an edge for Bi-Normal"
<validator id="GeomValidators_ShapeType" parameters="line"/>
</shape_selector>
</box>
- <box id="locations" title="Pipe by objects, path and locations" icon=":icons/pipe_locations_32x32.png">
+ <box id="locations" title="Pipe by objects, path and locations" icon="icons/Features/pipe_locations_32x32.png">
<multi_selector id="locations_objects"
label="Locations:"
tooltip="Select one or more vertices to specify the locations"
<source>
<multi_selector id="placement_objects_list"
label="Select objects to move"
- icon=":icons/cut_shape.png"
+ icon="icons/Features/cut_shape.png"
tooltip="Select solid objects"
type_choice=""
concealment="true" >
</multi_selector>
<shape_selector id="placement_start_shape"
label="Select an object"
- icon=":icons/placement_from.png"
+ icon="icons/Features/placement_from.png"
tooltip="Select a start face, edge or vertex"
shape_types="face edge vertex"
/>
<shape_selector id="placement_end_shape"
label="Select an object"
- icon=":icons/placement_to.png"
+ icon="icons/Features/placement_to.png"
tooltip="Select an end face, edge or vertex"
shape_types="face edge vertex">
<validator id="PartSet_DifferentObjects"/>
<plugin>
<workbench id="Features" document="Part">
<group id="Shape">
- <feature id="Wire" title="Wire" tooltip ="Create a wire from sketch edges and wires objects" icon=":icons/feature_wire.png">
+ <feature id="Wire" title="Wire" tooltip ="Create a wire from sketch edges and wires objects" icon="icons/Features/feature_wire.png">
<source path="wire_widget.xml"/>
</feature>
</group>
<group id="Extrusion">
- <feature id="Extrusion" title="Extrusion" tooltip="Create a solid by extrusion of a face" icon=":icons/extrusion.png">
+ <feature id="Extrusion" title="Extrusion" tooltip="Create a solid by extrusion of a face" icon="icons/Features/extrusion.png">
<source path="extrusion_widget.xml"/>
</feature>
- <feature id="ExtrusionCut" title="ExtrusionCut" tooltip="" icon=":icons/extrusion_cut.png">
+ <feature id="ExtrusionCut" title="ExtrusionCut" tooltip="" icon="icons/Features/extrusion_cut.png">
<source path="extrusioncut_widget.xml"/>
</feature>
- <feature id="ExtrusionFuse" title="ExtrusionFuse" tooltip="" icon=":icons/extrusion_fuse.png">
+ <feature id="ExtrusionFuse" title="ExtrusionFuse" tooltip="" icon="icons/Features/extrusion_fuse.png">
<source path="extrusionfuse_widget.xml"/>
</feature>
</group>
<group id="Revolution">
- <feature id="Revolution" title="Revolution" tooltip="Create a solid by revolution of a face" icon=":icons/revol.png">
+ <feature id="Revolution" title="Revolution" tooltip="Create a solid by revolution of a face" icon="icons/Features/revol.png">
<source path="revolution_widget.xml"/>
</feature>
- <feature id="RevolutionCut" title="RevolutionCut" tooltip="" icon=":icons/revol_cut.png">
+ <feature id="RevolutionCut" title="RevolutionCut" tooltip="" icon="icons/Features/revol_cut.png">
<source path="revolutioncut_widget.xml"/>
</feature>
- <feature id="RevolutionFuse" title="RevolutionFuse" tooltip="" icon=":icons/revol_fuse.png">
+ <feature id="RevolutionFuse" title="RevolutionFuse" tooltip="" icon="icons/Features/revol_fuse.png">
<source path="revolutionfuse_widget.xml"/>
</feature>
</group>
<group id="Pipe">
- <feature id="Pipe" title="Pipe" tooltip="Generates extrusion along a path" icon=":icons/pipe.png">
+ <feature id="Pipe" title="Pipe" tooltip="Generates extrusion along a path" icon="icons/Features/pipe.png">
<source path="pipe_widget.xml"/>
</feature>
</group>
<group id="Boolean">
- <feature id="Boolean" title="Boolean" tooltip="Perform boolean operations with solids" icon=":icons/cut.png"
+ <feature id="Boolean" title="Boolean" tooltip="Perform boolean operations with solids" icon="icons/Features/cut.png"
auto_preview="false">
<source path="boolean_widget.xml"/>
</feature>
- <feature id="Partition" title="Partition" tooltip="Perform partition operations with solids" icon=":icons/partition.png"
+ <feature id="Partition" title="Partition" tooltip="Perform partition operations with solids" icon="icons/Features/partition.png"
auto_preview="false">
<source path="partition_widget.xml"/>
</feature>
- <feature id="Intersection" title="Intersection" tooltip="Intersect objects with tools" icon=":icons/intersection.png">
+ <feature id="Intersection" title="Intersection" tooltip="Intersect objects with tools" icon="icons/Features/intersection.png">
<source path="intersection_widget.xml"/>
</feature>
</group>
<feature id="Group"
title="Group"
tooltip="Create named collection of geometry entities"
- icon=":icons/shape_group.png">
+ icon="icons/Features/shape_group.png">
<source path="group_widget.xml"/>
</feature>
</group>
</workbench>
<workbench id="Part">
<group id="Movement">
- <feature id="Placement" title="Placement" tooltip="Place an objects relatively to another one" icon=":icons/placement.png">
+ <feature id="Placement" title="Placement" tooltip="Place an objects relatively to another one" icon="icons/Features/placement.png">
<source path="placement_widget.xml"/>
</feature>
- <feature id="Translation" title="Translation" tooltip="Perform translation of an objects along the axis to specified distance" icon=":icons/movement.png">
+ <feature id="Translation" title="Translation" tooltip="Perform translation of an objects along the axis to specified distance" icon="icons/Features/movement.png">
<source path="translation_widget.xml"/>
</feature>
- <feature id="Rotation" title="Rotation" tooltip="Perform rotation of an objects around the axis to specified angle" icon=":icons/rotation.png">
+ <feature id="Rotation" title="Rotation" tooltip="Perform rotation of an objects around the axis to specified angle" icon="icons/Features/rotation.png">
<source path="rotation_widget.xml"/>
</feature>
</group>
<validator id="FeaturesPlugin_ValidatorBaseForGeneration" parameters="vertex,edge,wire,face,shell"/>
</multi_selector>
<shape_selector id="axis_object"
- icon=":icons/axis.png"
+ icon="icons/Features/axis.png"
label="Axis"
tooltip="Select an edge for axis"
shape_types="edge"
<toolbox id="CreationMethod">
<box id="ByAngles"
title="By angles"
- icon=":icons/angle_up_down_32x32.png">
+ icon="icons/Features/angle_up_down_32x32.png">
<groupbox>
<doublevalue id="to_angle"
label="Angle"
step="1.0"
default="360"
- icon=":icons/angle_up.png"
+ icon="icons/Features/angle_up.png"
tooltip="To angle"/>
</groupbox>
<groupbox>
label="Angle"
step="1.0"
default="0"
- icon=":icons/angle_down.png"
+ icon="icons/Features/angle_down.png"
tooltip="From angle"/>
</groupbox>
</box>
<box id="ByPlanesAndOffsets"
title="By bounding planes and angles"
- icon=":icons/plane_inverted_32x32.png">
+ icon="icons/Features/plane_inverted_32x32.png">
<groupbox title="From">
<shape_selector id="from_object"
- icon=":icons/plane.png"
+ icon="icons/Features/plane.png"
label="Plane face"
tooltip="Bounding plane (select a planar face)"
shape_types="face"
label="Angle"
step="1.0"
default="0"
- icon=":icons/angle_up_down.png"
+ icon="icons/Features/angle_up_down.png"
tooltip="Angle for "from" bounding plane"/>
</groupbox>
<groupbox title="To">
<shape_selector id="to_object"
- icon=":icons/plane_inverted.png"
+ icon="icons/Features/plane_inverted.png"
label="Plane face"
tooltip="Bounding plane (select a planar face)"
shape_types="face"
label="Angle"
step="1.0"
default="0"
- icon=":icons/angle_up_down.png"
+ icon="icons/Features/angle_up_down.png"
tooltip="Angle for "to" bounding plane"/>
</groupbox>
</box>
</sketch_launcher>
<multi_selector id="base"
label="Select a sketch face"
- icon=":icons/sketch.png"
+ icon="icons/Features/sketch.png"
tooltip="Select a sketch face"
type_choice="Faces Objects">
<validator id="FeaturesPlugin_ValidatorBaseForGeneration" parameters="face,shell"/>
</multi_selector>
<shape_selector id="axis_object"
- icon=":icons/axis.png"
+ icon="icons/Features/axis.png"
label="Axis"
tooltip="Select an edge for axis"
shape_types="edge"
<validator id="GeomValidators_ShapeType" parameters="line"/>
</shape_selector>
<toolbox id="CreationMethod">
- <box id="ByAngles" title="By angles" icon=":icons/angle_up_down_32x32.png">
+ <box id="ByAngles" title="By angles" icon="icons/Features/angle_up_down_32x32.png">
<groupbox>
<doublevalue
id="to_angle"
label="Angle"
step="1.0"
default="10"
- icon=":icons/angle_up.png"
+ icon="icons/Features/angle_up.png"
tooltip="To angle">
</doublevalue>
</groupbox>
label="Angle"
step="1.0"
default="0"
- icon=":icons/angle_down.png"
+ icon="icons/Features/angle_down.png"
tooltip="From angle">
</doublevalue>
</groupbox>
</box>
- <box id="ByPlanesAndOffsets" title="By bounding planes and angles" icon=":icons/plane_inverted_32x32.png">
+ <box id="ByPlanesAndOffsets" title="By bounding planes and angles" icon="icons/Features/plane_inverted_32x32.png">
<groupbox title="From">
<shape_selector id="from_object"
- icon=":icons/plane.png"
+ icon="icons/Features/plane.png"
label="Plane face"
tooltip="Bounding plane (select a planar face)"
shape_types="face"
</shape_selector>
<doublevalue id="from_offset" label="Angle"
step="1.0" default="0"
- icon=":icons/angle_up_down.png"
+ icon="icons/Features/angle_up_down.png"
tooltip="Angle for "from" bounding plane">
</doublevalue>
</groupbox>
<groupbox title="To">
<shape_selector id="to_object"
- icon=":icons/plane_inverted.png"
+ icon="icons/Features/plane_inverted.png"
label="Plane face"
tooltip="Bounding plane (select a planar face)"
shape_types="face"
</shape_selector>
<doublevalue id="to_offset" label="Angle"
step="1.0" default="0"
- icon=":icons/angle_up_down.png"
+ icon="icons/Features/angle_up_down.png"
tooltip="Angle for "to" bounding plane">
</doublevalue>
</groupbox>
</groupbox>
<multi_selector id="main_objects"
label="Cut from:"
- icon=":icons/cut_shape.png"
+ icon="icons/Features/cut_shape.png"
tooltip="Objects to Cut"
type_choice="Solids"
concealment="true">
</sketch_launcher>
<multi_selector id="base"
label="Select a sketch face"
- icon=":icons/sketch.png"
+ icon="icons/Features/sketch.png"
tooltip="Select a sketch face"
type_choice="Faces Objects">
<validator id="FeaturesPlugin_ValidatorBaseForGeneration" parameters="vertex,edge,wire,face,shell"/>
</multi_selector>
<shape_selector id="axis_object"
- icon=":icons/axis.png"
+ icon="icons/Features/axis.png"
label="Axis"
tooltip="Select an edge for axis"
shape_types="edge"
<validator id="GeomValidators_ShapeType" parameters="line"/>
</shape_selector>
<toolbox id="CreationMethod">
- <box id="ByAngles" title="By angles" icon=":icons/angle_up_down_32x32.png">
+ <box id="ByAngles" title="By angles" icon="icons/Features/angle_up_down_32x32.png">
<groupbox>
<doublevalue
id="to_angle"
label="Angle"
step="1.0"
default="0"
- icon=":icons/angle_up.png"
+ icon="icons/Features/angle_up.png"
tooltip="To angle">
</doublevalue>
</groupbox>
label="Angle"
step="1.0"
default="10"
- icon=":icons/angle_down.png"
+ icon="icons/Features/angle_down.png"
tooltip="From angle">
</doublevalue>
</groupbox>
</box>
- <box id="ByPlanesAndOffsets" title="By bounding planes and angles" icon=":icons/plane_inverted_32x32.png">
+ <box id="ByPlanesAndOffsets" title="By bounding planes and angles" icon="icons/Features/plane_inverted_32x32.png">
<groupbox title="From">
<shape_selector id="from_object"
- icon=":icons/plane.png"
+ icon="icons/Features/plane.png"
label="Plane face"
tooltip="Bounding plane (select a planar face)"
shape_types="face"
</shape_selector>
<doublevalue id="from_offset" label="Angle"
step="1.0" default="0"
- icon=":icons/angle_up_down.png"
+ icon="icons/Features/angle_up_down.png"
tooltip="Angle for "from" for bounding plane">
</doublevalue>
</groupbox>
<groupbox title="To">
<shape_selector id="to_object"
- icon=":icons/plane_inverted.png"
+ icon="icons/Features/plane_inverted.png"
label="Plane face"
tooltip="Bounding plane (select a planar face)"
shape_types="face"
</shape_selector>
<doublevalue id="to_offset" label="Angle"
step="1.0" default="0"
- icon=":icons/angle_up_down.png"
+ icon="icons/Features/angle_up_down.png"
tooltip="Angle for "to" bounding plane">
</doublevalue>
</groupbox>
</groupbox>
<multi_selector id="main_objects"
label="Fuse with:"
- icon=":icons/cut_shape.png"
+ icon="icons/Features/cut_shape.png"
tooltip="Objects to Fuse"
type_choice="Solids"
concealment="true">
<source>
<multi_selector id="main_objects"
label="Main objects"
- icon=":icons/cut_shape.png"
+ icon="icons/Features/cut_shape.png"
tooltip="Select solid objects"
type_choice="solid"
use_choice="false"
<validator id="FeaturesPlugin_ValidatorTransform"/>
</multi_selector>
<shape_selector id="axis_object"
- icon=":icons/axis.png"
+ icon="icons/Features/axis.png"
label="Axis"
tooltip="Select an edge for axis"
shape_types="edge"
max="360"
step="1.0"
default="0"
- icon=":icons/angle.png"
+ icon="icons/Features/angle.png"
tooltip="Angle">
</doublevalue>
</source>
\ No newline at end of file
<source>
<multi_selector id="main_objects"
label="Main objects"
- icon=":icons/cut_shape.png"
+ icon="icons/Features/cut_shape.png"
tooltip="Select solid objects"
type_choice="solid"
concealment="true">
<validator id="FeaturesPlugin_ValidatorTransform"/>
</multi_selector>
<shape_selector id="axis_object"
- icon=":icons/axis.png"
+ icon="icons/Features/axis.png"
label="Axis"
tooltip="Select an edge for axis"
shape_types="edge"
label="Distance"
step="1.0"
default="0"
- icon=":icons/dimension_v.png"
+ icon="icons/Features/dimension_v.png"
tooltip="Distance">
</doublevalue>
</source>
\ No newline at end of file
*/
#include <ModuleBase_ActionInfo.h>
+#include <ModuleBase_IconFactory.h>
ModuleBase_ActionInfo::ModuleBase_ActionInfo()
{
id = QString::fromStdString(theMessage->id());
iconFile = QString::fromStdString(theMessage->icon());
if (!iconFile.isEmpty()) {
- icon = QIcon(iconFile);
+ icon = ModuleBase_IconFactory::loadIcon(iconFile);
}
text = QString::fromStdString(theMessage->text());
toolTip = QString::fromStdString(theMessage->tooltip());
<!DOCTYPE RCC><RCC version="1.0">
<qresource>
- <file>icons/angle.png</file>
+ <file>icons/activate.png</file>
<file>icons/angle_32x32.png</file>
- <file>icons/angle_backward.png</file>
- <file>icons/angle_up.png</file>
- <file>icons/angle_direct.png</file>
- <file>icons/angle_down.png</file>
- <file>icons/angle_complementary.png</file>
- <file>icons/arc.png</file>
- <file>icons/arc_base_32x32.png</file>
- <file>icons/arc_3pt_32x32.png</file>
- <file>icons/arc_tang_32x32.png</file>
- <file>icons/circle.png</file>
- <file>icons/circle_pt_rad_32x32.png</file>
- <file>icons/circle_3pt_32x32.png</file>
<file>icons/color.png</file>
- <file>icons/point.png</file>
- <file>icons/plane.png</file>
- <file>icons/plane_inverted.png</file>
- <file>icons/plane_inverted_32x32.png</file>
- <file>icons/axis.png</file>
- <file>icons/duplicate.png</file>
- <file>icons/remove.png</file>
- <file>icons/extrusion.png</file>
- <file>icons/extrusionsketch.png</file>
- <file>icons/cut.png</file>
- <file>icons/cut_tool.png</file>
- <file>icons/cut_shape.png</file>
- <file>icons/fusion.png</file>
- <file>icons/revol.png</file>
- <file>icons/revolsketch.png</file>
- <file>icons/revol_cut.png</file>
- <file>icons/revol_fuse.png</file>
- <file>icons/common.png</file>
- <file>icons/import.png</file>
- <file>icons/export.png</file>
- <file>icons/line.png</file>
- <file>icons/sketch.png</file>
- <file>icons/sketch_shape.png</file>
- <file>icons/hand_point.png</file>
- <file>icons/dimension_up.png</file>
- <file>icons/dimension_up_32x32.png</file>
- <file>icons/dimension_down.png</file>
- <file>icons/dimension_v.png</file>
- <file>icons/radius.png</file>
- <file>icons/perpendicular.png</file>
- <file>icons/partition.png</file>
- <file>icons/length.png</file>
- <file>icons/distance.png</file>
- <file>icons/radius_constr.png</file>
- <file>icons/shape_group.png</file>
- <file>icons/fixed.png</file>
- <file>icons/placement.png</file>
- <file>icons/placement_from.png</file>
- <file>icons/placement_to.png</file>
- <file>icons/geom_export.png</file>
- <file>icons/horisontal.png</file>
- <file>icons/vertical.png</file>
- <file>icons/equal.png</file>
- <file>icons/tangent.png</file>
- <file>icons/fillet.png</file>
- <file>icons/coincedence.png</file>
- <file>icons/mirror.png</file>
- <file>icons/translate.png</file>
- <file>icons/translate_32x32.png</file>
- <file>icons/translate_full_32x32.png</file>
- <file>icons/rotate.png</file>
- <file>icons/exec_state_failed.png</file>
- <file>icons/exec_state_invalid_parameters.png</file>
- <file>icons/activate.png</file>
<file>icons/deactivate.png</file>
<file>icons/edit.png</file>
- <file>icons/rotation.png</file>
- <file>icons/movement.png</file>
- <file>icons/extrusion_cut.png</file>
- <file>icons/extrusion_fuse.png</file>
- <file>icons/angle_constr.png</file>
- <file>icons/angle_up_32x32.png</file>
- <file>icons/angle_up_down.png</file>
- <file>icons/angle_up_down_32x32.png</file>
- <file>icons/angle_up_full_32x32.png</file>
- <file>icons/dimension_up_down.png</file>
- <file>icons/dimension_up_down_32x32.png</file>
- <file>icons/by_two_points_32x32.png</file>
- <file>icons/cylindrical_face_32x32.png</file>
- <file>icons/dimension_vert_32x32.png</file>
- <file>icons/bool_cut.png</file>
- <file>icons/bool_fuse.png</file>
- <file>icons/bool_common.png</file>
- <file>icons/bool_smash.png</file>
- <file>icons/plane_view.png</file>
- <file>icons/collinear.png</file>
- <file>icons/middlepoint.png</file>
- <file>icons/rectangle.png</file>
- <file>icons/intersection_point.png</file>
- <file>icons/intersection.png</file>
+ <file>icons/exec_state_failed.png</file>
+ <file>icons/exec_state_invalid_parameters.png</file>
+ <file>icons/hand_point.png</file>
<file>icons/move_to_end.png</file>
- <file>icons/pipe.png</file>
- <file>icons/pipe_simple_32x32.png</file>
- <file>icons/pipe_binormal_32x32.png</file>
- <file>icons/pipe_locations_32x32.png</file>
- <file>icons/feature_wire.png</file>
+ <file>icons/rectangle.png</file>
+ <file>icons/sketch_shape.png</file>
</qresource>
</RCC>
../GeomAPI
)
+SET(ICON_RESOURCES
+ icons/duplicate.png
+ icons/remove.png
+)
+
INSTALL(TARGETS PartSetPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
+INSTALL(FILES ${ICON_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/PartSet)
icon=":pictures/part_ico.png"/>
<feature id="Duplicate" title="Duplicate part"
tooltip="Duplicate active part"
- icon=":icons/duplicate.png"
+ icon="icons/PartSet/duplicate.png"
document="Part"/>
<feature id="Remove"
title="Remove part"
tooltip="Remove active part"
- icon=":icons/remove.png"
+ icon="icons/PartSet/remove.png"
document="Part"/>
</group>
</workbench>
)
SET(ICON_RESOURCES
+ icons/angle.png
+ icons/angle_backward.png
+ icons/angle_complementary.png
+ icons/angle_constr.png
+ icons/angle_direct.png
+ icons/angle_up_32x32.png
+ icons/angle_up_full_32x32.png
+ icons/arc.png
+ icons/arc_3pt_32x32.png
+ icons/arc_base_32x32.png
+ icons/arc_tang_32x32.png
+ icons/circle.png
+ icons/circle_3pt_32x32.png
+ icons/circle_pt_rad_32x32.png
+ icons/coincedence.png
+ icons/collinear.png
+ icons/distance.png
+ icons/equal.png
+ icons/fillet.png
+ icons/fixed.png
+ icons/horisontal.png
+ icons/intersection_point.png
+ icons/length.png
+ icons/line.png
+ icons/middlepoint.png
+ icons/mirror.png
icons/parallel.png
+ icons/perpendicular.png
+ icons/point.png
+ icons/radius.png
+ icons/radius_constr.png
+ icons/rotate.png
+ icons/sketch.png
+ icons/tangent.png
+ icons/translate.png
+ icons/translate_32x32.png
+ icons/translate_full_32x32.png
+ icons/vertical.png
)
INSTALL(TARGETS SketchPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
-INSTALL(FILES ${ICON_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
+INSTALL(FILES ${ICON_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Sketch)
ADD_UNIT_TESTS(TestSketchPointLine.py
TestSketchArcCircle.py
when_nested="accept abort"
title="Sketch"
tooltip="Create sketch"
- icon=":icons/sketch.png">
+ icon="icons/Sketch/sketch.png">
<sketch-start-label id="External" title="Select a plane on which to create a sketch" tooltip="Select a plane on which to create a sketch">
<validator id="GeomValidators_Face" parameters="plane"/>
</sketch-start-label>
<error_label id="SolverError"/>
<validator id="SketchPlugin_SolverErrorValidator"/>
- <!--icon=":pictures/x_point.png"-->
</feature>
<!-- SketchPoint -->
- <feature id="SketchPoint" title="Point" tooltip="Create point" icon=":icons/point.png">
+ <feature id="SketchPoint" title="Point" tooltip="Create point" icon="icons/Sketch/point.png">
<sketch-2dpoint_selector id="PointCoordindates" accept_expressions="0" title="Point" tooltip="Point coordinates"/>
<boolvalue id="Auxiliary" label="Auxiliary" default="false" tooltip="Construction element" obligatory="0"/>
</feature>
<!-- SketchLine -->
- <feature id="SketchLine" title="Line" tooltip="Create line" icon=":icons/line.png">
+ <feature id="SketchLine" title="Line" tooltip="Create line" icon="icons/Sketch/line.png">
<sketch-2dpoint_selector id="StartPoint" accept_expressions="0" title="Start point" tooltip="Start point coordinates" previous_feature_param="EndPoint"/>
<sketch-2dpoint_selector id="EndPoint" accept_expressions="0" title="End point" tooltip="End point coordinates"/>
<boolvalue id="Auxiliary" label="Auxiliary" default="false" tooltip="Construction element" obligatory="0"/>
id="SketchCircle"
title="Circle"
tooltip="Create circle"
- icon=":icons/circle.png">
+ icon="icons/Sketch/circle.png">
<toolbox id="CircleType">
- <box id="CenterRadius" title="Center and radius" icon=":icons/circle_pt_rad_32x32.png">
+ <box id="CenterRadius" title="Center and radius" icon="icons/Sketch/circle_pt_rad_32x32.png">
<sketch-2dpoint_selector id="CircleCenter" accept_expressions="0" title="Center" tooltip="Center coordinates"/>
- <point2ddistance id="CircleRadius" accept_expressions="0" first_point="CircleCenter" label="Radius:" min="0" step="1.0" default="0" icon=":icons/radius.png" tooltip="Set radius">
+ <point2ddistance id="CircleRadius" accept_expressions="0" first_point="CircleCenter" label="Radius:" min="0" step="1.0" default="0" icon="icons/Sketch/radius.png" tooltip="Set radius">
<validator id="GeomValidators_Positive"/>
</point2ddistance>
</box>
- <box id="ThreePoints" title="Three points" icon=":icons/circle_3pt_32x32.png">
+ <box id="ThreePoints" title="Three points" icon="icons/Sketch/circle_3pt_32x32.png">
<sketch-2dpoint_selector id="FirstPoint" accept_expressions="0" title="First point" tooltip="First point"/>
<sketch-2dpoint_selector id="SecondPoint" accept_expressions="0" title="Second point" tooltip="Second point"/>
<sketch-2dpoint_selector id="ThirdPoint" accept_expressions="0" title="Third point" tooltip="Third point"/>
id="SketchArc"
title="Arc"
tooltip="Create arc"
- icon=":icons/arc.png">
+ icon="icons/Sketch/arc.png">
<toolbox id="ArcType">
- <box id="CenterStartEnd" title="Center and two points" icon=":icons/arc_base_32x32.png">
+ <box id="CenterStartEnd" title="Center and two points" icon="icons/Sketch/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"/>
<validator id="GeomValidators_Different" parameters="ArcCenter,ArcStartPoint,ArcEndPoint"/>
</box>
- <box id="ThreePoints" title="Three points on arc" icon=":icons/arc_3pt_32x32.png">
+ <box id="ThreePoints" title="Three points on arc" icon="icons/Sketch/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"/>
<validator id="GeomValidators_Different" parameters="ArcStartPoint,ArcEndPoint,ArcPassedPoint"/>
</box>
- <box id="Tangent" title="Tangent with edge" icon=":icons/arc_tang_32x32.png">
+ <box id="Tangent" title="Tangent with edge" icon="icons/Sketch/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"/>
</box>
</toolbox>
- <doublevalue id="ArcRadius" accept_expressions="0" label="Radius:" default="computed" icon=":icons/radius.png" tooltip="Set radius" obligatory="0">
+ <doublevalue id="ArcRadius" accept_expressions="0" label="Radius:" default="computed" icon="icons/Sketch/radius.png" tooltip="Set radius" obligatory="0">
<validator id="GeomValidators_Positive"/>
</doublevalue>
- <doublevalue id="ArcAngle" label="Angle:" icon=":icons/angle.png" tooltip="Set angle" default="90" use_reset="false" obligatory="0"/>
+ <doublevalue id="ArcAngle" label="Angle:" icon="icons/Sketch/angle.png" tooltip="Set angle" default="90" use_reset="false" obligatory="0"/>
<boolvalue id="Auxiliary" label="Auxiliary" default="false" tooltip="Construction element" obligatory="0"/>
</feature>
<!-- SketchConstraintFillet -->
- <feature id="SketchConstraintFillet" title="Fillet" tooltip="Create constraint defining fillet between two objects" icon=":icons/fillet.png">
+ <feature id="SketchConstraintFillet" title="Fillet" tooltip="Create constraint defining fillet between two objects" icon="icons/Sketch/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"/>
id="SketchIntersectionPoint"
title="Intersection Point"
tooltip="Create intersection point"
- icon=":icons/intersection_point.png">
+ icon="icons/Sketch/intersection_point.png">
<sketch_shape_selector
id="ExternalLine"
label="Edge"
<!-- SketchConstraintMirror -->
<feature
id="SketchConstraintMirror"
- title="Mirror" icon=":icons/mirror.png"
+ title="Mirror" icon="icons/Sketch/mirror.png"
tooltip="Create constraint, mirroring group of objects">
<sketch_shape_selector id="ConstraintEntityA"
label="Mirror line" tooltip="Select mirror line" shape_types="edge">
<!-- SketchMultiTranslation -->
<feature
id="SketchMultiTranslation"
- title="Translation" icon=":icons/translate.png"
+ title="Translation" icon="icons/Sketch/translate.png"
tooltip="Multiple translation">
<sketch_multi_selector id="MultiTranslationList"
label="Segments:"
<validator id="SketchPlugin_CopyValidator" />
</sketch_multi_selector>
<toolbox id="ValueType">
- <box id="SingleValue" title="Single value" icon=":icons/translate_32x32.png">
+ <box id="SingleValue" title="Single value" icon="icons/Sketch/translate_32x32.png">
<groupbox title="Direction">
<sketch_shape_selector
id="MultiTranslationStartPoint"
</sketch_shape_selector>
</groupbox>
</box>
- <box id="FullValue" title="Full value" icon=":icons/translate_full_32x32.png">
+ <box id="FullValue" title="Full value" icon="icons/Sketch/translate_full_32x32.png">
<groupbox title="Direction">
<sketch_shape_selector
id="MultiTranslationStartPoint"
<!-- SketchMultiRotation -->
<feature
id="SketchMultiRotation"
- title="Rotation" icon=":icons/rotate.png"
+ title="Rotation" icon="icons/Sketch/rotate.png"
tooltip="Multiple rotation">
<sketch_multi_selector id="MultiRotationList"
label="Segments:"
<validator id="GeomValidators_ShapeType" parameters="vertex"/>
</sketch_shape_selector>
<toolbox id="AngleType">
- <box id="SingleAngle" title="Single angle" icon=":icons/angle_up_32x32.png">
+ <box id="SingleAngle" title="Single angle" icon="icons/Sketch/angle_up_32x32.png">
<doublevalue id="MultiRotationAngle"
label="Angle"
- icon=":icons/angle.png"
+ icon="icons/Sketch/angle.png"
tooltip="Rotation angle"
default="90" use_reset="false"/>
</box>
- <box id="FullAngle" title="Full angle" icon=":icons/angle_up_full_32x32.png">
+ <box id="FullAngle" title="Full angle" icon="icons/Sketch/angle_up_full_32x32.png">
<doublevalue id="MultiRotationAngle"
label="Angle"
- icon=":icons/angle.png"
+ icon="icons/Sketch/angle.png"
tooltip="Rotation angle"
default="90" use_reset="false"/>
</box>
id="SketchConstraintDistance"
title="Distance"
tooltip="Set fixed distance from a point to an object"
- icon=":icons/distance.png">
+ icon="icons/Sketch/distance.png">
<label title="Select objects for distance definition. Following objects can be accepted: point, line or arc end point, center of circle or arc."/>
<sketch_shape_selector
id="ConstraintEntityA"
</feature>
<!-- SketchConstraintLength -->
- <feature id="SketchConstraintLength" title="Length" tooltip="Set fixed length of a line segment" icon=":icons/length.png">
+ <feature id="SketchConstraintLength" title="Length" tooltip="Set fixed length of a line segment" icon="icons/Sketch/length.png">
<label title="Select a line on which to calculate length" tooltip="Select a line on which to calculate length"/>
<shape_selector id="ConstraintEntityA" label="Line" tooltip="Select an line" shape_types="edge" >
<validator id="GeomValidators_ShapeType" parameters="line"/>
</feature>
<!-- SketchConstraintAngle -->
- <feature id="SketchConstraintAngle" title="Angle" tooltip="Set fixed angle between two line segments" icon=":icons/angle_constr.png">
+ <feature id="SketchConstraintAngle" title="Angle" tooltip="Set fixed angle between two line segments" icon="icons/Sketch/angle_constr.png">
<sketch_shape_selector id="ConstraintEntityA" label="Line 1" tooltip="Select an line" shape_types="edge" >
<validator id="GeomValidators_ShapeType" parameters="line"/>
<validator id="PartSet_DifferentObjects"/>
label="Angle type"
tooltip="Type of angle"
string_list="Direct Complementary Additional"
- icons_list=":icons/angle_direct.png :icons/angle_complementary.png :icons/angle_backward.png"
+ icons_list="icons/Sketch/angle_direct.png icons/angle_complementary.png icons/angle_backward.png"
default="0"
/>
</feature>
<!-- SketchConstraintRadius -->
- <feature id="SketchConstraintRadius" title="Radius" tooltip="Set fixed radius of a circle or an arc" icon=":icons/radius_constr.png">
+ <feature id="SketchConstraintRadius" title="Radius" tooltip="Set fixed radius of a circle or an arc" icon="icons/Sketch/radius_constr.png">
<label title="Select a circle or an arc on which to calculate radius" tooltip="Select a circle or an arc on which to calculate radius"/>
<shape_selector id="ConstraintEntityA" label="Circle or Arc" tooltip="Select a circle or an arc"
shape_types="edge">
<group id="Geometrical constraints">
<!-- SketchConstraintHorizontal -->
- <feature id="SketchConstraintHorizontal" title="Horizontal" tooltip="Create constraint defining horizontal line" icon=":icons/horisontal.png">
+ <feature id="SketchConstraintHorizontal" title="Horizontal" tooltip="Create constraint defining horizontal line" icon="icons/Sketch/horisontal.png">
<sketch_shape_selector id="ConstraintEntityA"
label="Line" tooltip="Select a line" shape_types="edge" use_external="false">
<validator id="GeomValidators_ShapeType" parameters="line"/>
</feature>
<!-- SketchConstraintVertical -->
- <feature id="SketchConstraintVertical" title="Vertical" tooltip="Create constraint defining vertical line" icon=":icons/vertical.png">
+ <feature id="SketchConstraintVertical" title="Vertical" tooltip="Create constraint defining vertical line" icon="icons/Sketch/vertical.png">
<sketch_shape_selector id="ConstraintEntityA"
label="Line" tooltip="Select a line" shape_types="edge" use_external="false">
<validator id="GeomValidators_ShapeType" parameters="line"/>
</feature>
<!-- SketchConstraintRigid -->
- <feature id="SketchConstraintRigid" title="Fixed" tooltip="Fix an object" icon=":icons/fixed.png">
+ <feature id="SketchConstraintRigid" title="Fixed" tooltip="Fix an object" icon="icons/Sketch/fixed.png">
<sketch_shape_selector id="ConstraintEntityA" label="Object"
tooltip="Select point, line end point, line, center of circle or arc."
shape_types="edge vertex">
<!-- SketchConstraintParallel -->
<feature id="SketchConstraintParallel" title="Parallel" tooltip="Create constraint defining two parallel lines"
- icon="parallel.png">
+ icon="icons/Sketch/parallel.png">
<sketch_shape_selector id="ConstraintEntityA"
label="First line" tooltip="Select a line" shape_types="edge">
<validator id="GeomValidators_ShapeType" parameters="line"/>
<!-- SketchConstraintPerpendicular -->
<feature id="SketchConstraintPerpendicular" title="Perpendicular"
tooltip="Create constraint defining two perpendicular lines"
- icon=":icons/perpendicular.png">
+ icon="icons/Sketch/perpendicular.png">
<sketch_shape_selector id="ConstraintEntityA"
label="First line" tooltip="Select an line"
shape_types="edge">
</feature>
<!-- SketchConstraintTangent -->
- <feature id="SketchConstraintTangent" title="Tangent" tooltip="Create constraint defining tangency of two objects with common coincident point" icon=":icons/tangent.png">
+ <feature id="SketchConstraintTangent" title="Tangent" tooltip="Create constraint defining tangency of two objects with common coincident point" icon="icons/Sketch/tangent.png">
<sketch_shape_selector id="ConstraintEntityA"
label="First object" tooltip="Select line or arc" shape_types="edge">
<validator id="SketchPlugin_TangentAttr" parameters="ConstraintEntityB"/>
</feature>
<!-- SketchConstraintCoincidence -->
- <feature id="SketchConstraintCoincidence" title="Coincident" tooltip="Create constraint for the coincidence of two points or point on line or circle" icon=":icons/coincedence.png">
+ <feature id="SketchConstraintCoincidence" title="Coincident" tooltip="Create constraint for the coincidence of two points or point on line or circle" icon="icons/Sketch/coincedence.png">
<sketch_shape_selector id="ConstraintEntityA" label="First object" tooltip="Select a first object" shape_types="vertex edge">
<validator id="PartSet_DifferentObjects"/>
<validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
</feature>
<!-- SketchConstraintMiddle -->
- <feature id="SketchConstraintMiddle" title="Middle point" tooltip="Create constraint for setting middle point on a line" icon=":icons/middlepoint.png">
+ <feature id="SketchConstraintMiddle" title="Middle point" tooltip="Create constraint for setting middle point on a line" icon="icons/Sketch/middlepoint.png">
<sketch_shape_selector id="ConstraintEntityA" label="First object" tooltip="Select a first object" shape_types="vertex edge">
<validator id="PartSet_DifferentObjects"/>
<validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
<!-- SketchConstraintEqual -->
<feature id="SketchConstraintEqual" title="Equal"
tooltip="Create constraint defining equal lengths of two lines or line and arc or equal radii of two arcs or two circles or arc and circle"
- icon=":icons/equal.png">
+ icon="icons/Sketch/equal.png">
<sketch_shape_selector id="ConstraintEntityA"
label="First object" tooltip="Select line, circle or arc" shape_types="edge">
<validator id="PartSet_DifferentObjects"/>
<!-- SketchConstraintCollinear -->
<!--
- <feature id="SketchConstraintCollinear" title="Collinear" tooltip="Create constraint defining collinearity of two lines" icon=":icons/collinear.png">
+ <feature id="SketchConstraintCollinear" title="Collinear" tooltip="Create constraint defining collinearity of two lines" icon="icons/Sketch/collinear.png">
<sketch_shape_selector id="ConstraintEntityA"
label="First line" tooltip="Select a line" shape_types="edge">
<validator id="GeomValidators_ShapeType" parameters="line"/>