Mitsukuni Sato
009c013521
add calls to tr() for translation
2009-12-17 19:10:36 -05:00
Sean Rhea
b1fe7345b3
bug fix: don't let high go negative
...
You can recreate the bug by creating a new cyclist with only one
relatively slow and short ride, then clicking on the CP plot.
2009-12-13 18:21:05 -05:00
Damien Grauser
216bc6ef4b
add language selector and French translations
2009-12-12 15:23:46 -05:00
Sean Rhea
b2ef8940a7
cp plot gets zones in its constructor
2009-12-10 10:16:57 -08:00
Sean Rhea
772de9f364
RideItem::zones is just a pointer
...
...not a pointer to a pointer.
2009-12-10 10:16:57 -08:00
Sean Rhea
7324ebda06
fix season selector in cp plot
2009-11-27 16:46:09 -05:00
Sean Rhea
02cf0ac83d
need <algorithm> for std::lower_bound in Linux
...
Thanks to Mark Liversedge for pointing this out.
2009-11-15 19:53:18 -08:00
Sean Rhea
1edd8c0767
add y-axis shows work mode to CP plot
...
This mode is fun because the "CP Curve" is a straight line,
just like in the model:
work = CP * time + AWC
You can also see that the AWC is the y-intercept.
2009-11-09 09:05:03 -08:00
Sean Rhea
82934425ab
fix bug in 2f8d101, need to strip path
...
The filename argument actually contained the whole path. This fix passes
the filename and directory separately, so that the anchored regex works.
2009-11-09 09:50:51 -05:00
Sean Rhea
4ee57a25b0
misc cleanup
2009-11-07 14:42:09 -05:00
Sean Rhea
14f59f8e5e
delete NULL is a no-op
2009-11-07 14:27:01 -05:00
Sean Rhea
dfc7e88f26
drop read_cpi_file, cleanup read_one
2009-11-07 14:23:51 -05:00
Sean Rhea
3d6d9ad86d
don't fill in bestDates for today's ride
2009-11-07 14:19:46 -05:00
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
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
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
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
Jamie Kimberley
7d2cf8d305
Add support for 3dp comutrainer files in the cp plot
2009-10-29 09:47:53 -04:00
Sean Rhea
a91782b69b
remove printf and comment
2009-10-26 19:39:29 -04:00
Justin Knotzke
08c232d70b
Filtering of data in Critical Plot based on Seasons
...
Based on the defined dates per season, CP displays all plot only
for that Season.
2009-10-22 21:45:07 -07:00
Justin Knotzke
f8e9227c99
Support for Qollector in Critical Power Plot
...
is_ride_filename wasn't filtering for qla files.
2009-10-18 08:32:11 -07:00
Sean Rhea
8b4fbf0491
don't crash cpint plot when time < 0
2009-09-20 14:14:56 -07:00
unknown
f4336ec87c
Fixes stack overflow crash bug
2009-09-02 10:54:13 -04:00
Claus Assmann
0c08ff093d
Need unistd.h for unlink(2).
2009-09-02 10:30:33 -04:00
Mark Liversedge
d2efc75948
Added WKO RideNotes, applied style guide, fixed CP calc, check version of file
2009-08-25 09:59:22 -04:00
Justin Knotzke
47b4cf1c44
Damien's patch to support CS600 Polar files.
2009-06-23 06:35:53 -04:00
Justin F. Knotzke
b2acd45c8d
Dan Connelly's MEGA patch.
...
It includes both powerzones and weekly summary plots.
Thanks Dan.
2009-06-22 02:21:12 +00:00
Justin F. Knotzke
b046ae538b
The critical power plot show maximum average power for all rides.
...
But you don't know when you reach this value.
I propose this small patch to show the value and the date like on this print screen.
Damien
2009-02-22 00:07:05 +00:00
Sean C. Rhea
ff59009f86
Dan Connelly points out that it should be "n * (n + 1) / 2" (plus, not minus).
2008-05-19 14:46:50 +00:00
Sean C. Rhea
babbaa7e2c
Sane failure for rides longer than a week, which usually happen because
...
someone sets the date on their PT and doesn't reset the device before going
for a ride. This fix will keep GC working until the user splits the ride
(and until we add a ride-splitting function).
2008-05-18 14:19:37 +00:00
Sean C. Rhea
41da1dfc68
smooth updating of progress bar in update_cpi_file
2008-05-14 22:47:54 +00:00
Sean C. Rhea
4eeb656016
update progress dialog while aggregating over .cpi files
2008-05-13 16:42:39 +00:00
Sean C. Rhea
b6f817c4d7
combine cpint.(h|cpp) with CpintPlot.cpp
2008-05-13 16:30:35 +00:00
Sean C. Rhea
6e5487ca39
everything in one directory
2008-05-12 03:28:53 +00:00