From: vsv Date: Thu, 6 Nov 2014 15:58:13 +0000 (+0300) Subject: Hide label about plane selection on sketch create X-Git-Tag: V_0.5~26 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cdaf519fc4f9f9c614aec346d921b9dcc06efb18;p=modules%2Fshaper.git Hide label about plane selection on sketch create --- diff --git a/src/PartSet/PartSet_OperationSketch.cpp b/src/PartSet/PartSet_OperationSketch.cpp index 5efa67ae3..c3ca9d922 100644 --- a/src/PartSet/PartSet_OperationSketch.cpp +++ b/src/PartSet/PartSet_OperationSketch.cpp @@ -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(); } } diff --git a/src/PartSet/PartSet_OperationSketch.h b/src/PartSet/PartSet_OperationSketch.h index eb3fa84f4..216b4d94d 100644 --- a/src/PartSet/PartSet_OperationSketch.h +++ b/src/PartSet/PartSet_OperationSketch.h @@ -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. diff --git a/src/PartSet/PartSet_WidgetSketchLabel.cpp b/src/PartSet/PartSet_WidgetSketchLabel.cpp index 44228fdec..6c0c3aaae 100644 --- a/src/PartSet/PartSet_WidgetSketchLabel.cpp +++ b/src/PartSet/PartSet_WidgetSketchLabel.cpp @@ -43,7 +43,7 @@ void PartSet_WidgetSketchLabel::setOperationsMgr(XGUI_OperationMgr* theMgr) if (aOperation->inherits("PartSet_OperationSketch")) { PartSet_OperationSketch* aSketchOpe = static_cast(aOperation); updateLabel(aSketchOpe); - connect(aSketchOpe, SIGNAL(planeSelected(double, double, double)), this, + connect(aSketchOpe, SIGNAL(updatePropPanel()), this, SLOT(onPlaneSelected())); } }