Sean Rhea
7394df755f
delete NULL is a no-op
2009-11-07 14:27:01 -05:00
Sean Rhea
6150d4435f
drop read_cpi_file, cleanup read_one
2009-11-07 14:23:51 -05:00
Sean Rhea
935d5846d9
don't fill in bestDates for today's ride
2009-11-07 14:19:46 -05:00
Sean Rhea
5c206f7b26
errors should be QMessageBoxes, not printfs
2009-11-07 14:15:36 -05:00
Sean Rhea
0b5cc3591c
simplify very confusing code
2009-11-07 13:53:33 -05:00
Sean Rhea
0a411a6e4f
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
eb17f53c08
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
2eca0d97af
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
4373e89617
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
46e87837a9
clean up and sorten cpi_filename_to_date
2009-11-06 23:36:43 -05:00
Sean Rhea
b72c32dc1a
~qwt_plot_item calls detach
2009-11-06 09:13:59 -05:00
Sean Rhea
9699e2d0c5
use foreach, tidy up code
2009-11-06 08:49:54 -05:00
Sean Rhea
252a19c9d5
fix leaked CPCurve
2009-11-06 08:38:38 -05:00
Sean Rhea
de7fa20d96
allocate QPen objs on the stack
...
This fixes a memory leak.
2009-11-05 20:01:02 -05:00
Sean Rhea
e2f5ee2184
use QVector<double>
2009-11-05 19:59:00 -05:00
Sean Rhea
38101e5903
fix tabs and eol spaces -- no functional change
2009-11-05 11:40:07 -05:00
Sean Rhea
f0b20643d1
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
8687957f41
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
6e5e44a720
highlight every other interval
2009-11-01 20:05:09 -05:00
Sean Rhea
1f0e0c6763
srm intervals names match those on PowerControl
2009-11-01 20:01:20 -05:00
Sean Rhea
4e93c6b22a
switch to QVector and fix a memory error
2009-11-01 20:00:24 -05:00
Sean Rhea
9acb0819dc
combine SrmFileReader::openRideFile and readSrmFile
2009-11-01 17:43:49 -05:00
Sean Rhea
0295395e9e
remove commented-out code
2009-11-01 17:27:48 -05:00
Sean Rhea
94eb3b2f95
srm.h|cpp >> SrmRideFile.cpp and rm the former
2009-11-01 17:24:55 -05:00
Sean Rhea
9a4130a52d
fix eol spaces -- no functional change
2009-11-01 17:21:46 -05:00
Sean Rhea
26b11c1157
only fill in intervals if the RideFile hasn't already
2009-11-01 17:19:11 -05:00
Sean Rhea
70db610c86
use RideFileIntervals in SplitRideDialog
2009-11-01 12:47:59 -05:00
Sean Rhea
872f882d0d
let the factory call fillInIntervals
2009-11-01 12:45:43 -05:00
Sean Rhea
64bf0aeacf
bug fix: check that rideItem->ride is not NULL
2009-11-01 12:44:11 -05:00
Sean Rhea
5dbe77bab5
use RideFileIntervals in htmlSummary
2009-11-01 12:01:52 -05:00
Sean Rhea
35c102561c
use RideFileIntervals in AllPlot
2009-11-01 12:01:52 -05:00
Sean Rhea
7a9cb4080b
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
14dc740636
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
4eba24ee14
oops: add units for 95% hr
2009-11-01 11:51:26 -05:00
Sean Rhea
82d6a26bc1
fix tabs and eol spaces -- no functional change
2009-11-01 10:58:12 -05:00
Sean Rhea
7e4f5b222f
remove writeAsXML declaration
...
This should have been part of 868e3d4 .
2009-11-01 07:35:08 -05:00
Robert Carlsen
cad0d2dc18
Updating description for Comma-Separated Values files.
2009-10-31 17:22:37 -04:00
Sean Rhea
2559f3eaed
add Joe Friel's "aerobic decoupling" metric to ride summary
2009-10-31 16:22:06 -04:00
Robert Carlsen
376f7ddf66
Grammatical corrections to ride file format descriptions.
2009-10-31 15:42:16 -04:00
Eric Murray
71174eb961
Fixed "shaking" bug with PerfPlot sliders.
2009-10-31 15:14:37 -04:00
Sean Rhea
f31453864a
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
d3f8ad3a03
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
bdcd24af5b
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
8357a3bb6c
fix absolutely atrocious use of tabs
2009-10-30 19:08:29 -04:00
Sean Rhea
566dff8b70
hist much prettier with 5W-wide bins
2009-10-30 11:55:08 -04:00
Sean Rhea
c4de3a0eff
last mod times depended on svn, remove them
2009-10-30 11:52:34 -04:00
Sean Rhea
16eb74fda0
goodbye 2000 W in cp screenshot
2009-10-30 11:50:51 -04:00
Sean Rhea
7d8bb7716c
nit: we also import PowerTap CSV
2009-10-30 10:54:59 -04:00
Sean Rhea
dd6a287f02
update link to mailing list
2009-10-30 10:53:59 -04:00
Jamie Kimberley
12dfd14f1f
Add support for 3dp comutrainer files in the cp plot
2009-10-29 09:47:53 -04:00