Add Left/Right Power Support

Add Left/Right Power Balance for FIT and Polar HRM parsers
 Add Left/Right Balance metric
 Add Left/Right series to Ride Chart

Fixes #711.
This commit is contained in:
Damien
2012-08-19 14:56:46 +02:00
committed by Mark Liversedge
parent 40321723d8
commit d51cb951ce
38 changed files with 334 additions and 59 deletions

View File

@@ -123,6 +123,10 @@ AllPlotWindow::AllPlotWindow(MainWindow *mainWindow) :
showTorque->setCheckState(Qt::Checked);
cl->addWidget(showTorque);
showBalance = new QCheckBox(tr("Power balance"), this);
showBalance->setCheckState(Qt::Checked);
cl->addWidget(showBalance);
showPower = new QComboBox();
showPower->addItem(tr("Power + shade"));
showPower->addItem(tr("Power - shade"));
@@ -343,6 +347,7 @@ AllPlotWindow::AllPlotWindow(MainWindow *mainWindow) :
connect(showTemp, SIGNAL(stateChanged(int)), this, SLOT(setShowTemp(int)));
connect(showWind, SIGNAL(stateChanged(int)), this, SLOT(setShowWind(int)));
connect(showTorque, SIGNAL(stateChanged(int)), this, SLOT(setShowTorque(int)));
connect(showBalance, SIGNAL(stateChanged(int)), this, SLOT(setShowBalance(int)));
connect(showGrid, SIGNAL(stateChanged(int)), this, SLOT(setShowGrid(int)));
connect(showFull, SIGNAL(stateChanged(int)), this, SLOT(setShowFull(int)));
connect(showStack, SIGNAL(stateChanged(int)), this, SLOT(showStackChanged(int)));
@@ -1173,6 +1178,16 @@ AllPlotWindow::setShowTorque(int value)
plot->showTorque(value);
}
void
AllPlotWindow::setShowBalance(int value)
{
showBalance->setChecked(value);
allPlot->showBalance(value);
foreach (AllPlot *plot, allPlots)
plot->showBalance(value);
}
void
AllPlotWindow::setShowFull(int value)
{