mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 16:39:57 +00:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user