Commit Graph

637 Commits

Author SHA1 Message Date
Sean Rhea
a9ddd40dda errors should be QMessageBoxes, not printfs 2009-11-07 14:15:36 -05:00
Sean Rhea
5ac70a9a98 simplify very confusing code 2009-11-07 13:53:33 -05:00
Sean Rhea
9029be7ccc little bits of CpintPlot cleanup
Cleanup whitespace, use scoped_ptr, prefer QVector over QList, etc.
2009-11-07 13:52:22 -05:00
Sean Rhea
a7df8c48b3 progress dialog doesn't need to be a class member
We can also allocate it on the stack.
2009-11-07 13:52:09 -05:00
Sean Rhea
79ced76347 setAllPlotWidgets doesn't need to call show*
It's only called from setData, which calls AllPlot::setData right afterwards,
and the latter will do all the things that the show* functions do.
2009-11-07 10:32:00 -05:00
Sean Rhea
2f8d1013be anchor regexp
Anchoring this regexp (i.e., making it start with a "^") reduces the time
it takes to load the first CP plot from 10 seconds to 6.5 seconds on
Sean's three years of rides.  Unbelievable, but repeatable.
2009-11-06 23:43:35 -05:00
Sean Rhea
c71f38ecb0 clean up and sorten cpi_filename_to_date 2009-11-06 23:36:43 -05:00
Sean Rhea
c8c0cf395a ~qwt_plot_item calls detach 2009-11-06 09:13:59 -05:00
Sean Rhea
846f95d5b3 use foreach, tidy up code 2009-11-06 08:49:54 -05:00
Sean Rhea
19f905d2d1 fix leaked CPCurve 2009-11-06 08:38:38 -05:00
Sean Rhea
288d0ce7c6 allocate QPen objs on the stack
This fixes a memory leak.
2009-11-05 20:01:02 -05:00
Sean Rhea
5e3692a1b4 use QVector<double> 2009-11-05 19:59:00 -05:00
Sean Rhea
ae94021a21 fix tabs and eol spaces -- no functional change 2009-11-05 11:40:07 -05:00
Sean Rhea
c5240d1c0c compute time in zones in computeMetrics
...not in htmlSummary, so that the WeeklySummaryWindow doesn't have to
generate the full htmlSummaries for a week.
2009-11-01 22:01:53 -05:00
Sean Rhea
cb50314915 use colors from RideList in htmlSummary
Rob Carlsen suggested that the htmlSummary should use the same colors as in
the ride list.  I agree, but they're a little to light, so bump the saturation
a bit.  While we're at it, go ahead and do the zones list, too.
2009-11-01 21:03:30 -05:00
Sean Rhea
cae4d092c9 highlight every other interval 2009-11-01 20:05:09 -05:00
Sean Rhea
0789c68f30 srm intervals names match those on PowerControl 2009-11-01 20:01:20 -05:00
Sean Rhea
094e58d04d switch to QVector and fix a memory error 2009-11-01 20:00:24 -05:00
Sean Rhea
263ffd353f combine SrmFileReader::openRideFile and readSrmFile 2009-11-01 17:43:49 -05:00
Sean Rhea
d6f46b80d4 remove commented-out code 2009-11-01 17:27:48 -05:00
Sean Rhea
a312b4a881 srm.h|cpp >> SrmRideFile.cpp and rm the former 2009-11-01 17:24:55 -05:00
Sean Rhea
a49b659014 fix eol spaces -- no functional change 2009-11-01 17:21:46 -05:00
Sean Rhea
c964e274aa only fill in intervals if the RideFile hasn't already 2009-11-01 17:19:11 -05:00
Sean Rhea
7687b7f73a use RideFileIntervals in SplitRideDialog 2009-11-01 12:47:59 -05:00
Sean Rhea
c848726f0c let the factory call fillInIntervals 2009-11-01 12:45:43 -05:00
Sean Rhea
521653993d bug fix: check that rideItem->ride is not NULL 2009-11-01 12:44:11 -05:00
Sean Rhea
4b7413295c use RideFileIntervals in htmlSummary 2009-11-01 12:01:52 -05:00
Sean Rhea
3cc99bf2b0 use RideFileIntervals in AllPlot 2009-11-01 12:01:52 -05:00
Sean Rhea
1dc513e7a9 add RideFileInterval
Eventually, I'm going to remove interval as a member of RideFilePoint, and
only use RideFileIntervals.  But I have to rework a bunch of other code first,
so for now the two will coexist.
2009-11-01 12:01:42 -05:00
Sean Rhea
522824bb40 switch RideFile::dataPoints to QVector
...so that we can binary search within them.  Also, switch a lot of
QListIterators to Qt foreach.
2009-11-01 11:51:26 -05:00
Sean Rhea
f39f2b516b oops: add units for 95% hr 2009-11-01 11:51:26 -05:00
Sean Rhea
68832ff6c0 fix tabs and eol spaces -- no functional change 2009-11-01 10:58:12 -05:00
Sean Rhea
8595f2cfc5 remove writeAsXML declaration
This should have been part of 868e3d4.
2009-11-01 07:35:08 -05:00
Robert Carlsen
3f63a69c6f Updating description for Comma-Separated Values files. 2009-10-31 17:22:37 -04:00
Sean Rhea
dbc3ed9e1c add Joe Friel's "aerobic decoupling" metric to ride summary 2009-10-31 16:22:06 -04:00
Robert Carlsen
c173c2be06 Grammatical corrections to ride file format descriptions. 2009-10-31 15:42:16 -04:00
Eric Murray
7c76937cd7 Fixed "shaking" bug with PerfPlot sliders. 2009-10-31 15:14:37 -04:00
Sean Rhea
868e3d4b6b remove XmlRideFile and "Export to XML"
These were part of an earlier attempt at a GC-specific ride file
format.  They aren't in use now, and they'll be replaced by the new
one when it's done.
2009-10-31 15:12:48 -04:00
Sean Rhea
5dc82a6c93 add descriptions to RideFile types
...and use these to get rid of the explicit list of ride file type
descriptions in the import wizard.
2009-10-31 15:00:37 -04:00
Sean Rhea
c66bf0b1c9 add RideFileFactory::suffixes() and use it
...to eliminate the problem of enumerating all possible file suffixes
all over the code.
2009-10-30 19:13:37 -04:00
Sean Rhea
edc7cc4960 fix absolutely atrocious use of tabs 2009-10-30 19:08:29 -04:00
Sean Rhea
2ab59a3905 hist much prettier with 5W-wide bins 2009-10-30 11:55:08 -04:00
Sean Rhea
f48e640565 last mod times depended on svn, remove them 2009-10-30 11:52:34 -04:00
Sean Rhea
f1e22cec42 goodbye 2000 W in cp screenshot 2009-10-30 11:50:51 -04:00
Sean Rhea
f9ff06bdd3 nit: we also import PowerTap CSV 2009-10-30 10:54:59 -04:00
Sean Rhea
af758f24ff update link to mailing list 2009-10-30 10:53:59 -04:00
Jamie Kimberley
7d2cf8d305 Add support for 3dp comutrainer files in the cp plot 2009-10-29 09:47:53 -04:00
Greg Lonnon
5a25dcb56a Computrainer 3dp file support 2009-10-29 09:47:45 -04:00
Sean Rhea
39c7787c19 fix memory leak in CsvRideFile 2009-10-28 21:05:18 -04:00
Sean Rhea
aad5a337b8 areDataPresent should return a const ptr 2009-10-27 23:38:57 -04:00