From cdaf519fc4f9f9c614aec346d921b9dcc06efb18 Mon Sep 17 00:00:00 2001 From: vsv Date: Thu, 6 Nov 2014 18:58:13 +0300 Subject: [PATCH] Hide label about plane selection on sketch create --- src/PartSet/PartSet_OperationSketch.cpp | 1 + src/PartSet/PartSet_OperationSketch.h | 3 +++ src/PartSet/PartSet_WidgetSketchLabel.cpp | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) 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())); } } -- 2.39.2