<plugin>
<workbench id="Features" document="Part">
<group id="Basic">
- <feature id="Extrusion" title="Extrusion" tooltip="Create a shape by extrusion of a contour" icon=":icons/extrusion.png">
+ <feature id="Extrusion" title="Extrusion" tooltip="Create a shape by extrusion of a face" icon=":icons/extrusion.png">
<source path="extrusion_widget.xml"/>
</feature>
<feature id="Boolean" title="Boolean" tooltip="Perform boolean operations with shapes" icon=":icons/cut.png">
std::string aName = mySelectedObject->data()->name();
myTextLine->setText(QString::fromStdString(aName));
} else {
- if (myIsActive)
- myTextLine->setText(tr("Select an object"));
- else
+ if (myIsActive) {
+ QString aMsg = tr("Select a ");
+ int i = 0;
+ foreach (QString aType, myShapeTypes) {
+ if (i > 0)
+ aMsg += " or ";
+ aMsg += aType;
+ i++;
+ }
+ myTextLine->setText(aMsg);
+ } else
myTextLine->setText(tr("No object selected"));
}
}