]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #640 It is impossible to remove dimension
authornds <natalia.donis@opencascade.com>
Thu, 25 Jun 2015 08:36:37 +0000 (11:36 +0300)
committernds <natalia.donis@opencascade.com>
Thu, 25 Jun 2015 08:37:06 +0000 (11:37 +0300)
src/PartSet/PartSet_MenuMgr.cpp
src/PartSet/PartSet_Module.cpp

index 1664be7692736498a7cd55c83dd4d6c7c301c247..744b9b4f0c6d3ba1c155d2bddf926eeadff8c261 100644 (file)
@@ -172,7 +172,7 @@ bool PartSet_MenuMgr::addViewerMenu(QMenu* theMenu, const QMap<QString, QAction*
   bool hasAttribute = false;
   bool hasFeature = false;
 
-  QList<ModuleBase_ViewerPrs> aPrsList = aSelection->getSelected();
+  QList<ModuleBase_ViewerPrs> aPrsList = aSelection->getSelected(ModuleBase_ISelection::AllControls);
   TopoDS_Shape aShape;
   ResultPtr aResult;
   FeaturePtr aFeature;
index 2be0fb9877bb8a8282c5511778292e6ca72d18af..096c090f2abad0fdee58fff70411d557c1f0332b 100644 (file)
@@ -380,24 +380,6 @@ void PartSet_Module::propertyPanelDefined(ModuleBase_Operation* theOperation)
         }
       }
     }
-  } else {
-    // Start editing constraint
-    if (theOperation->isEditOperation()) {
-      // TODO: #391 - to be removed
-      std::string aId = theOperation->id().toStdString();
-      if (PartSet_SketcherMgr::isNestedSketchOperation(theOperation) &&
-          PartSet_SketcherMgr::isDistanceOperation(theOperation)) {
-        // Find and activate widget for management of point for dimension line position
-        QList<ModuleBase_ModelWidget*> aWidgets = aPanel->modelWidgets();
-        foreach (ModuleBase_ModelWidget* aWgt, aWidgets) {
-          PartSet_WidgetPoint2D* aPntWgt = dynamic_cast<PartSet_WidgetPoint2D*>(aWgt);
-          if (aPntWgt) {
-            aPanel->activateWidget(aPntWgt);
-            return;
-          }
-        }
-      }
-    }
   }
 }