]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Icon for placement operation
authorvsv <vitaly.smetannikov@opencascade.com>
Tue, 2 Dec 2014 13:44:35 +0000 (16:44 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Tue, 2 Dec 2014 13:44:35 +0000 (16:44 +0300)
src/FeaturesPlugin/plugin-Features.xml
src/PartSet/PartSet_Module.cpp
src/PartSet/PartSet_icons.qrc
src/PartSet/icons/placement.png [new file with mode: 0644]

index cbe584eab5ae511e4fdd3771d071964bb223f30d..5177058f30f91ce7b2cbd36dff29678477393ba7 100644 (file)
@@ -7,7 +7,7 @@
       <feature id="Boolean" title="Boolean" tooltip="Perform boolean operations with shapes" icon=":icons/cut.png">
           <source path="boolean_widget.xml"/>
       </feature>
-      <feature id="Placement" title="Placement" tooltip="Perform moving an object to specified position" icon="">
+      <feature id="Placement" title="Placement" tooltip="Perform moving an object to specified position" icon=":icons/placement.png">
           <source path="placement_widget.xml"/>
       </feature>
     </group>
index 3cb8ce2470f9f68da1d2c7cf45d7feb78d18b045..490ffdfd9913879e33c5cafeebc07eef161e6431 100644 (file)
@@ -310,7 +310,7 @@ void PartSet_Module::onMousePressed(ModuleBase_IViewWindow* theWnd, QMouseEvent*
     QList<ModuleBase_ViewerPrs> aObjects = aSelect->getHighlighted();
     myEditingFeatures.clear();
     myEditingAttr.clear();
-    if (aObjects.size() > 0) {
+    if (aObjects.size() == 1) {
       foreach(ModuleBase_ViewerPrs aPrs, aObjects) {
         FeaturePtr aFeature = ModelAPI_Feature::feature(aObjects.first().object());
         if (aFeature) {
index d0985d40c5d7573a235bb9a03823ae65bdd2bda7..b0bffcc5ae59cd015c706a1ed2578748543181fb 100644 (file)
@@ -27,5 +27,6 @@
      <file>icons/radius_constr.png</file>
      <file>icons/shape_group.png</file>
      <file>icons/fixed.png</file>
+     <file>icons/placement.png</file>
  </qresource>
  </RCC>
diff --git a/src/PartSet/icons/placement.png b/src/PartSet/icons/placement.png
new file mode 100644 (file)
index 0000000..906a1ad
Binary files /dev/null and b/src/PartSet/icons/placement.png differ