]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
curvesErased() and curvesUpdated() signals added CTH_15
authorsln <sln@opencascade.com>
Tue, 8 Sep 2009 14:44:35 +0000 (14:44 +0000)
committersln <sln@opencascade.com>
Tue, 8 Sep 2009 14:44:35 +0000 (14:44 +0000)
src/Plot2d/Plot2d_ViewFrame.cxx
src/Plot2d/Plot2d_ViewFrame.h

index 7d728f1cb86b8ad8fc747b60610601edd64fc9c9..78a45eaafa42cb9a48fb4beb249196bc94d69d2c 100755 (executable)
@@ -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;
 }
 
index 1ae29755054ec147cc256364d827ac3b316a337e..3f53a46bd00380c412c3d1601d25137f7c08df07 100755 (executable)
@@ -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;