mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-16 17:39:58 +00:00
Auto Interval Discovery (Part 3a of 3)
In this part we have now reinstated the sidebar interval tree but it is refactored out of athlete and into AnalysisSidebar where it belongs. * you can hover and select/deselect intervals in the sidebar Left to do; * All the interval operations like sort, drag and drop, find delete etc do not work at present and will require some work * Add a color button to the tree to let the user change the color for USER defined intervals * Add more types of intervals to the discovery; esp routes and sustained intervals
This commit is contained in:
@@ -852,6 +852,8 @@ AddIntervalDialog::findBests(bool typeTime, const RideFile *ride, double windowS
|
||||
void
|
||||
AddIntervalDialog::addClicked()
|
||||
{
|
||||
//XXX REFACTOR NEED TO DECIDE HOW TO DO THIS!!
|
||||
#if 0
|
||||
// run through the table row by row
|
||||
// and when the checkbox is shown
|
||||
// get name from column 2
|
||||
@@ -859,8 +861,6 @@ AddIntervalDialog::addClicked()
|
||||
// get stop in secs as a string from column 4
|
||||
for (int i=0; i<resultsTable->rowCount(); i++) {
|
||||
|
||||
//XXX REFACTOR NEED TO DECIDE HOW TO DO THIS!!
|
||||
#if 0
|
||||
// is it checked?
|
||||
QCheckBox *c = (QCheckBox *)resultsTable->cellWidget(i,0);
|
||||
if (c->isChecked()) {
|
||||
@@ -879,8 +879,8 @@ AddIntervalDialog::addClicked()
|
||||
// add
|
||||
allIntervals->addChild(last);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
context->athlete->updateRideFileIntervals();
|
||||
#endif
|
||||
done(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user