]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Hide label about plane selection on sketch create
authorvsv <vitaly.smetannikov@opencascade.com>
Thu, 6 Nov 2014 15:58:13 +0000 (18:58 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Thu, 6 Nov 2014 15:58:13 +0000 (18:58 +0300)
src/PartSet/PartSet_OperationSketch.cpp
src/PartSet/PartSet_OperationSketch.h
src/PartSet/PartSet_WidgetSketchLabel.cpp

index 5efa67ae3bab39ce884a273b7ff4d940e3f05cf1..c3ca9d922d802d974e962a87ac41eddf62f6983c 100644 (file)
@@ -128,6 +128,7 @@ void PartSet_OperationSketch::selectionChanged(ModuleBase_ISelection* theSelecti
         // Turn viewer to the plane
         emit planeSelected(aDir->x(), aDir->y(), aDir->z());
       }
+      emit updatePropPanel();
       emit launchSketch();
     }
   }
index eb3fa84f4a182368c025a3d64b05881d1ea6ecfa..216b4d94d8717741ad3198be729eaa5f6d169b57 100644 (file)
@@ -108,6 +108,9 @@ signals:
   /// Signal to define sketch mode
   void launchSketch();
 
+  /// Signal to update property panel
+  void updatePropPanel();
+
  protected:
   /// Virtual method called when operation started (see start() method for more description)
   /// Default impl calls corresponding slot and commits immediately.
index 44228fdeca844f59f71fb46242f43250b712bb73..6c0c3aaae02b42b93cf5a1650f204d0e04a4cf74 100644 (file)
@@ -43,7 +43,7 @@ void PartSet_WidgetSketchLabel::setOperationsMgr(XGUI_OperationMgr* theMgr)
   if (aOperation->inherits("PartSet_OperationSketch")) {
     PartSet_OperationSketch* aSketchOpe = static_cast<PartSet_OperationSketch*>(aOperation);
     updateLabel(aSketchOpe);
-    connect(aSketchOpe, SIGNAL(planeSelected(double, double, double)), this,
+    connect(aSketchOpe, SIGNAL(updatePropPanel()), this,
             SLOT(onPlaneSelected()));
   }
 }