AllPlot - Alt/Slope - switching between views

... the Alt/Plot settings were not in sync between standard anc compare
view (changes in compare view had not impact on standard view - when
de-activating compare)
... Alt/Plot is now also visible in "fullPlot" as this helps to find
sections to zoom in (by checking the color coding)
This commit is contained in:
Joern
2014-09-30 17:33:48 +02:00
parent 502ceb5ffb
commit 4b1a62d68f

View File

@@ -819,8 +819,6 @@ AllPlotWindow::compareChanged()
spanSlider->setLowerValue(spanSlider->minimum());
spanSlider->setUpperValue(spanSlider->maximum());
// don't show alt/slope
fullPlot->standard->altSlopeCurve->setVisible(false);
// redraw for red/no-red title
fullPlot->replot();
@@ -1080,9 +1078,6 @@ AllPlotWindow::redrawFullPlot()
static_cast<QwtPlotCanvas*>(fullPlot->canvas())->setBorderRadius(0);
fullPlot->standard->grid->enableY(false);
//don't show the ALT/SLOPE plot here
fullPlot->standard->altSlopeCurve->setVisible(false);
// use the ride to decide
if (fullPlot->bydist)
fullPlot->setAxisScale(QwtPlot::xBottom,
@@ -2262,7 +2257,12 @@ AllPlotWindow::setShowAltSlope(int value)
// compare mode selfcontained update
if (isCompare()) {
// transfer changes of setting here (which is more than on/off) also to other plot settings
fullPlot->showAltSlopeState = value;
fullPlot->setAltSlopePlotStyle(fullPlot->standard->altSlopeCurve);
allPlot->showAltSlopeState = value;
allPlot->setAltSlopePlotStyle(allPlot->standard->altSlopeCurve);
compareChanged();
active = false;
return;