2. An existing sketch face or contour. Extrusion will be filled by it.<br />
3. An existing result shape of kind: wires/edge/vertices. Extrusion will be filled by it."
shape_types="Vertices Edges Faces"
+ type_icons=":/icons/extrusion_vertex32.png :/icons/extrusion_edge32.png :/icons/extrusion_face32.png"
default_type = "2"
use_choice="true">
<validator id="FeaturesPlugin_ValidatorCompositeLauncher" parameters="base,Sketch"/>
label="Base objects:"
tooltip="Select a base objects"
shape_types="Vertices Edges Faces"
+ type_icons=":/icons/extrusion_vertex32.png :/icons/extrusion_edge32.png :/icons/extrusion_face32.png"
default_type = "2"
use_choice="true"
concealment="true">
2. An existing sketch face or contour. Extrusion will be filled by it.<br />
3. An existing result shape of kind: wires/edge/vertices. Extrusion will be filled by it."
shape_types="Vertices Edges Faces"
+ type_icons=":/icons/extrusion_vertex32.png :/icons/extrusion_edge32.png :/icons/extrusion_face32.png"
default_type = "2"
use_choice="true">
<validator id="FeaturesPlugin_ValidatorCompositeLauncher" parameters="base,Sketch"/>
icon="icons/Features/sketch.png"
tooltip="Select a sketch face"
shape_types="Vertices Edges Faces"
+ type_icons=":/icons/extrusion_vertex32.png :/icons/extrusion_edge32.png :/icons/extrusion_face32.png"
default_type = "2"
use_choice="true"
concealment="true">
2. An existing sketch face or contour. Extrusion will be filled by it.<br />
3. An existing result shape of kind: wires/edge/vertices. Extrusion will be filled by it."
shape_types="Vertices Edges Faces"
+ type_icons=":/icons/extrusion_vertex32.png :/icons/extrusion_edge32.png :/icons/extrusion_face32.png"
default_type = "2"
use_choice="true">
<validator id="FeaturesPlugin_ValidatorCompositeLauncher" parameters="base,Sketch"/>
label="Base objects:"
tooltip="Select a base objects"
shape_types="Vertices Edges Faces"
+ type_icons=":/icons/extrusion_vertex32.png :/icons/extrusion_edge32.png :/icons/extrusion_face32.png"
default_type = "2"
use_choice="true"
concealment="true">
2. An existing sketch face or contour. Extrusion will be filled by it.<br />
3. An existing result shape of kind: wires/edge/vertices. Extrusion will be filled by it."
shape_types="Vertices Edges Faces"
+ type_icons=":/icons/extrusion_vertex32.png :/icons/extrusion_edge32.png :/icons/extrusion_face32.png"
default_type = "2"
use_choice="true">
<validator id="FeaturesPlugin_ValidatorCompositeLauncher" parameters="base,Sketch"/>
icon="icons/Features/sketch.png"
tooltip="Select a sketch face"
shape_types="Vertices Edges Faces"
+ type_icons=":/icons/extrusion_vertex32.png :/icons/extrusion_edge32.png :/icons/extrusion_face32.png"
default_type = "2"
use_choice="true"
concealment="true">
myMainLayout = new QVBoxLayout(this);
ModuleBase_Tools::adjustMargins(myMainLayout);
- QStringList aIconsList = getIconsList(myShapeTypes);
+
+ QStringList aIconsList;
+ std::string aIcons = theData->getProperty("type_icons");
+ if (aIcons.size() > 0)
+ aIconsList = QString(aIcons.c_str()).split(' ', QString::SkipEmptyParts);
+
+ if (aIconsList.size() != myShapeTypes.size())
+ aIconsList = getIconsList(myShapeTypes);
+
myTypeCtrl = new ModuleBase_ChoiceCtrl(this, myShapeTypes, aIconsList);
myTypeCtrl->setLabel(tr("Type"));
if (!myShapeTypes.empty()) {
std::string aTypes = theData->getProperty("shape_types");
myShapeTypes = QString(aTypes.c_str()).split(' ', QString::SkipEmptyParts);
myIsUseChoice = theData->getBooleanAttribute("use_choice", false);
- QStringList aIconsList = getIconsList(myShapeTypes);
+
+ QStringList aIconsList;
+ std::string aIcons = theData->getProperty("type_icons");
+ if (aIcons.size() > 0)
+ aIconsList = QString(aIcons.c_str()).split(' ', QString::SkipEmptyParts);
+
+ if (aIconsList.size() != myShapeTypes.size())
+ aIconsList = getIconsList(myShapeTypes);
+
myTypeCtrl = new ModuleBase_ChoiceCtrl(this, myShapeTypes, aIconsList);
myTypeCtrl->setLabel(tr("Type"));
if (!myShapeTypes.empty()) {
- <!DOCTYPE RCC><RCC version="1.0">
- <qresource>
- <file>icons/activate.png</file>
- <file>icons/angle_32x32.png</file>
- <file>icons/concealed_on.png</file>
- <file>icons/concealed_off.png</file>
- <file>icons/deactivate.png</file>
- <file>icons/edit.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/sketch_shape.png</file>
- <file>icons/expression.png</file>
- <file>icons/paper_roll.png</file>
-
- <file>icons/group_edge.png</file>
- <file>icons/group_face.png</file>
- <file>icons/group_solid.png</file>
- <file>icons/group_vertex.png</file>
- <file>icons/toWork.png</file>
- <file>icons/isFailed.png</file>
- <file>icons/hasWarning.png</file>
- </qresource>
- </RCC>
+<RCC>
+ <qresource prefix="/">
+ <file>icons/activate.png</file>
+ <file>icons/angle_32x32.png</file>
+ <file>icons/concealed_on.png</file>
+ <file>icons/concealed_off.png</file>
+ <file>icons/deactivate.png</file>
+ <file>icons/edit.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/sketch_shape.png</file>
+ <file>icons/expression.png</file>
+ <file>icons/paper_roll.png</file>
+ <file>icons/group_edge.png</file>
+ <file>icons/group_face.png</file>
+ <file>icons/group_solid.png</file>
+ <file>icons/group_vertex.png</file>
+ <file>icons/toWork.png</file>
+ <file>icons/isFailed.png</file>
+ <file>icons/hasWarning.png</file>
+ <file>icons/extrusion_edge32.png</file>
+ <file>icons/extrusion_face32.png</file>
+ <file>icons/extrusion_vertex32.png</file>
+ </qresource>
+</RCC>