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:
Mark Liversedge
2015-05-10 08:30:13 +01:00
parent 100c0be881
commit 6b2a2dbb65
15 changed files with 202 additions and 128 deletions

View File

@@ -367,6 +367,21 @@ struct ComparePointSecs {
}
};
QString RideFileInterval::typeDescription(intervaltype x)
{
switch (x) {
case ALL : return tr("ALL"); break;
case DEVICE : return tr("DEVICE"); break;
case USER : return tr("USER"); break;
case PEAKPOWER : return tr("PEAK POWER"); break;
case ROUTE : return tr("SEGMENTS"); break;
case PEAKHR : return tr("PEAK HR"); break;
case CLIMB : return tr("CLIMBING"); break;
case EFFORT : return tr("EFFORTS"); break;
case MATCH : return tr("MATCHES"); break;
}
}
int
RideFile::intervalBegin(const RideFileInterval &interval) const
{