BTW: there's a slight inconsistency:
Train/ErgFile.cpp: out << "MINUTES PERCENT\n";
Train/WorkoutWizard.cpp: SaveWorkoutHeader(stream,f.fileName(),QString("golden cheetah"),QString("MINUTES PERCENTAGE"));
but since the code only looks for the shorter version:
Train/ErgFile.cpp: QRegExp mrcformat("^[;]*(MINUTES[ \\t]+PERCENT).*$", Qt::CaseInsensitive);
it doesn't really matter (unless the file is used elswehere too,
then PERCENT seems to be more common?)
To also recognize FTP it should probably be:
Train/ErgFile.cpp: QRegExp mrcformat("^[;]*(MINUTES[ \\t]+(PERCENT|FTP)).*$", Qt::CaseInsensitive);
BTW: wouldn't
Train/ErgFile.cpp: QRegExp mrcformat("^[;]*MINUTES[ \\t]+(PERCENT|FTP)", Qt::CaseInsensitive);
be sufficient?
(I couldn't find an official definition of the mrc format with a
brief online search)