aPCurve->setSymbolsColorMap( curve->getColorMap() );
}
+ updateTitles( update );
if ( update )
- {
- updateTitles();
myPlot->replot();
- }
emit curveDisplayed( curve );
}
aPCurve->hide();
aPCurve->detach();
myPlot->getCurves().remove( aPCurve );
- updateTitles();
+ updateTitles( update );
if ( update )
myPlot->replot();
emit curveErased( curve );
Updates titles according to curves
*/
#define BRACKETIZE(x) QString( "[ " ) + x + QString( " ]" )
-void Plot2d_ViewFrame::updateTitles()
+void Plot2d_ViewFrame::updateTitles( bool update )
{
CurveDict::Iterator it = myPlot->getCurves().begin();
//QIntDictIterator<Plot2d_Curve> it( myCurves );
yTitle += " ";
if ( getAutoUpdateTitle( XTitle ) )
- setTitle( myXTitleEnabled, xTitle + xUnits, XTitle, true );
+ setTitle( myXTitleEnabled, xTitle + xUnits, XTitle, update );
else
- setTitle( myXTitleEnabled, myXTitle, XTitle, true );
+ setTitle( myXTitleEnabled, myXTitle, XTitle, update );
if ( getAutoUpdateTitle( YTitle ) )
- setTitle( myYTitleEnabled, yTitle + yUnits, YTitle, true );
+ setTitle( myYTitleEnabled, yTitle + yUnits, YTitle, update );
else
- setTitle( myYTitleEnabled, myYTitle, YTitle, true );
+ setTitle( myYTitleEnabled, myYTitle, YTitle, update );
if ( getAutoUpdateTitle( MainTitle ) )
- setTitle( true, aTables.join("; "), MainTitle, true );
+ setTitle( true, aTables.join("; "), MainTitle, update );
else
- setTitle( true, myTitle, MainTitle, true );
+ setTitle( true, myTitle, MainTitle, update );
}
/*!