MainWindow Refactor Part 3 of 5

Slowly migrating code  and data from the MainWindow
class to Athlete and Context classes.

This update moves the ride and interval lists and
data structures from MainWindow to Athlete.
This commit is contained in:
Mark Liversedge
2013-07-13 19:46:03 +01:00
parent ac463538c1
commit d21ca376be
44 changed files with 546 additions and 538 deletions

View File

@@ -807,7 +807,7 @@ SplitConfirm::validatePage()
// first do we need to remove the current ride?
if (wizard->keepOriginal == false) {
wizard->context->mainWindow->removeCurrentRide();
wizard->context->athlete->removeCurrentRide();
QTreeWidgetItem *current = wizard->files->invisibleRootItem()->child(0);
current->setText(5, tr("Removed"));
}
@@ -825,7 +825,7 @@ SplitConfirm::validatePage()
current->setText(5, tr("Saved"));
wizard->context->mainWindow->addRide(QFileInfo(out).fileName(), true);
wizard->context->athlete->addRide(QFileInfo(out).fileName(), true);
}
// now make this page the last (so we can see what was done)