From 0257dae3ee0ef8107935dd257e40a231848f7130 Mon Sep 17 00:00:00 2001 From: sln Date: Tue, 8 Sep 2009 14:44:35 +0000 Subject: [PATCH] curvesErased() and curvesUpdated() signals added --- src/Plot2d/Plot2d_ViewFrame.cxx | 7 +++++++ src/Plot2d/Plot2d_ViewFrame.h | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Plot2d/Plot2d_ViewFrame.cxx b/src/Plot2d/Plot2d_ViewFrame.cxx index 7d728f1cb..78a45eaaf 100755 --- a/src/Plot2d/Plot2d_ViewFrame.cxx +++ b/src/Plot2d/Plot2d_ViewFrame.cxx @@ -683,6 +683,9 @@ void Plot2d_ViewFrame::eraseCurves( const curveList& curves, bool update ) aCurve = *it; eraseCurve( aCurve, false ); } + + emit curvesErased( curves ); + // fitAll(); if ( update ) myPlot->replot(); @@ -1153,11 +1156,15 @@ void Plot2d_ViewFrame::onCurvesSettings() } if ( toUpdate ) + { updateCurve( aCurve, false ); + } } Repaint(); + emit curvesUpdated(); + delete aDlg; } diff --git a/src/Plot2d/Plot2d_ViewFrame.h b/src/Plot2d/Plot2d_ViewFrame.h index 1ae297550..3f53a46bd 100755 --- a/src/Plot2d/Plot2d_ViewFrame.h +++ b/src/Plot2d/Plot2d_ViewFrame.h @@ -181,7 +181,9 @@ signals: void legendClicked( QwtPlotItem* ); void curveDisplayed( Plot2d_Curve* ); void curveErased( Plot2d_Curve* ); - + void curvesErased( const curveList& ); + void curvesUpdated(); + protected: Plot2d_Plot2d* myPlot; int myOperation; -- 2.39.2