]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #163: Correct messages in extrusion
authorvsv <vitaly.smetannikov@opencascade.com>
Wed, 24 Sep 2014 11:55:44 +0000 (15:55 +0400)
committervsv <vitaly.smetannikov@opencascade.com>
Wed, 24 Sep 2014 11:55:44 +0000 (15:55 +0400)
src/FeaturesPlugin/plugin-Features.xml
src/ModuleBase/ModuleBase_WidgetShapeSelector.cpp

index 876a748219b28b828aabf764b8ebbdc73204019d..1088f2425bd73836b5fdec61c81b5b91d69363a3 100644 (file)
@@ -1,7 +1,7 @@
 <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">
index 92c31271cdafbed56c2c6a577d907888c080ed05..dafc37e3890092774786fa80ea075f5bd50ba292 100644 (file)
@@ -198,9 +198,17 @@ void ModuleBase_WidgetShapeSelector::updateSelectionName()
     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"));
   }
 }