Interval Compare Pane

Now allows you to add intervals and select them and
change colors they will use.

It will maintain the data as a CompareInterval which
also includes a RideFile representation of the interval.
This is stored in Context in a QList as compareIntervals
and can therefore be re-used across all charts.

We now need to think about putting some widgets onto the
Compare 'bar' for turning compare mode on and off and
deleting / reordering / clearing items.
This commit is contained in:
Mark Liversedge
2013-12-28 21:24:52 +00:00
parent f8bcef4f91
commit d461551c41
8 changed files with 446 additions and 16 deletions

View File

@@ -66,7 +66,7 @@ IntervalTreeView::mimeData (const QList<QTreeWidgetItem *> items) const
// pack data
stream << (quint64)(context); // where did this come from?
stream << items.count();
stream << (int)items.count();
foreach (QTreeWidgetItem *p, items) {
// convert to one of ours
@@ -75,9 +75,9 @@ IntervalTreeView::mimeData (const QList<QTreeWidgetItem *> items) const
// serialize
stream << p->text(0); // name
stream << (quint64)(i->ride);
stream << i->start << i->stop; // start and stop in secs
stream << i->startKM << i->stopKM; // start and stop km
stream << i->displaySequence;
stream << (quint64)i->start << (quint64)i->stop; // start and stop in secs
stream << (quint64)i->startKM << (quint64)i->stopKM; // start and stop km
stream << (quint64)i->displaySequence;
}