]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #391 Selection restore problem for sketch constraints
authornds <natalia.donis@opencascade.com>
Wed, 28 Jan 2015 12:06:13 +0000 (15:06 +0300)
committernds <natalia.donis@opencascade.com>
Wed, 28 Jan 2015 12:06:13 +0000 (15:06 +0300)
The constraint text value should be selectable

src/PartSet/PartSet_Module.cpp
src/PartSet/PartSet_SketcherMgr.cpp

index c0ea09cd9a950e132fbc553375d3b07e8ef7ff1c..7b14c01d9b544c822a58a49bce6e4c14f710c723 100644 (file)
@@ -219,6 +219,7 @@ 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::sketchOperationIdList().contains(QString(aId.c_str()))) {
         if ((aId == SketchPlugin_ConstraintRadius::ID()) ||
index 06fcc33712e6d31008c3e7b463d68acd00013550..018001423cf4587155181f284f09482fffc8b65f 100644 (file)
@@ -45,6 +45,9 @@
 #include <SelectMgr_IndexedMapOfOwner.hxx>
 #include <StdSelect_BRepOwner.hxx>
 
+//#include <AIS_DimensionSelectionMode.hxx>
+//#include <AIS_Shape.hxx>
+
 #include <ModelAPI_Events.h>
 
 #include <QMouseEvent>
@@ -137,7 +140,6 @@ void PartSet_SketcherMgr::onMousePressed(ModuleBase_IViewWindow* theWnd, QMouseE
 {
   get2dPoint(theWnd, theEvent, myClickedPoint);
 
-  // 
   if (!(theEvent->buttons() & Qt::LeftButton))
     return;
 
@@ -425,6 +427,12 @@ void PartSet_SketcherMgr::launchEditing()
   // point
   QIntList aModes;
   aModes << TopAbs_VERTEX << TopAbs_EDGE;
+  // TODO: #391 - to be uncommented
+  /*aModes.append(AIS_DSM_Text);
+  aModes.append(AIS_DSM_Line);
+  aModes.append(AIS_Shape::SelectionMode((TopAbs_ShapeEnum) TopAbs_VERTEX));
+  aModes.append(AIS_Shape::SelectionMode((TopAbs_ShapeEnum) TopAbs_EDGE));*/
+
   XGUI_ModuleConnector* aConnector = dynamic_cast<XGUI_ModuleConnector*>(myModule->workshop());
   aConnector->activateSubShapesSelection(aModes);