mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 16:39:57 +00:00
Frame PvPf Plot
When working with smaller intervals it is difficult to see the highlighted points when all the points are shown in black. This patch adds a 'Frame Intervals' checkbox to enable the user to turn off all the points when looking at specific intervals. If no intervals are selected then this setting has no net effect. All datapoints are shown.
This commit is contained in:
committed by
Sean Rhea
parent
67919e4d21
commit
fbd5238e4e
@@ -43,6 +43,9 @@ PfPvWindow::PfPvWindow(MainWindow *mainWindow) :
|
||||
mergeIntervalPfPvCheckBox = new QCheckBox;
|
||||
mergeIntervalPfPvCheckBox->setText(tr("Merge intervals"));
|
||||
mergeIntervalPfPvCheckBox->setCheckState(Qt::Unchecked);
|
||||
frameIntervalPfPvCheckBox = new QCheckBox;
|
||||
frameIntervalPfPvCheckBox->setText(tr("Frame intervals"));
|
||||
frameIntervalPfPvCheckBox->setCheckState(Qt::Checked);
|
||||
|
||||
qaLayout->addWidget(qaCPLabel);
|
||||
qaLayout->addWidget(qaCPValue);
|
||||
@@ -52,6 +55,7 @@ PfPvWindow::PfPvWindow(MainWindow *mainWindow) :
|
||||
qaLayout->addWidget(qaClValue);
|
||||
qaLayout->addWidget(shadeZonesPfPvCheckBox);
|
||||
qaLayout->addWidget(mergeIntervalPfPvCheckBox);
|
||||
qaLayout->addWidget(frameIntervalPfPvCheckBox);
|
||||
|
||||
vlayout->addWidget(pfPvPlot);
|
||||
vlayout->addLayout(qaLayout);
|
||||
@@ -73,6 +77,8 @@ PfPvWindow::PfPvWindow(MainWindow *mainWindow) :
|
||||
this, SLOT(setShadeZonesPfPvFromCheckBox()));
|
||||
connect(mergeIntervalPfPvCheckBox, SIGNAL(stateChanged(int)),
|
||||
this, SLOT(setMergeIntervalsPfPvFromCheckBox()));
|
||||
connect(frameIntervalPfPvCheckBox, SIGNAL(stateChanged(int)),
|
||||
this, SLOT(setFrameIntervalsPfPvFromCheckBox()));
|
||||
connect(mainWindow, SIGNAL(rideSelected()), this, SLOT(rideSelected()));
|
||||
connect(mainWindow, SIGNAL(intervalSelected()), this, SLOT(intervalSelected()));
|
||||
connect(mainWindow, SIGNAL(intervalsChanged()), this, SLOT(intervalSelected()));
|
||||
@@ -123,6 +129,14 @@ PfPvWindow::setMergeIntervalsPfPvFromCheckBox()
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
PfPvWindow::setFrameIntervalsPfPvFromCheckBox()
|
||||
{
|
||||
if (pfPvPlot->frameIntervals() != frameIntervalPfPvCheckBox->isChecked()) {
|
||||
pfPvPlot->setFrameIntervals(frameIntervalPfPvCheckBox->isChecked());
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
PfPvWindow::setQaCPFromLineEdit()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user