Commit Graph

212 Commits

Author SHA1 Message Date
Justin F. Knotzke
56cc8b084d Tom Montgomery's patch:
I have made changes to the Import CSV dialog box; the new (proposed)  
behaviour is as follows:

  At first, the datePicker widget and OK button are disabled.
  The datePicker is preset to today's date (no longer really  
necessary, but the code is there).
  User clicks 'choose a file' and the usual file browser appears.
  If a file is selected, its creation date is stuffed into the  
datePicker.
  On return from the browser, the datePicker and OK buttons are re- 
enabled.
  User can modify the ride date, in case the file upload was not done  
on ride day.
  User clicks OK, the file is imported as before.
2009-03-27 18:02:34 +00:00
Justin F. Knotzke
6cfccfc92f This patch by Tom Montgomer now uses the current date when importing a CSV file instead of defaulting to 2000.
Thanks Tom.
2009-03-25 23:21:47 +00:00
Justin F. Knotzke
f328248582 GC now support the latest v10 iBike CSV import.
Thanks to Tom Montgomery
2009-03-25 23:15:18 +00:00
Justin F. Knotzke
9d22cc3dc8 Thanks to Ned Harding, Golden Cheetah now support Ant+ Sport. Thanks Ned. Much appreciated.
J
2009-03-18 17:59:46 +00:00
Justin F. Knotzke
a65460d5d8 2009-02-22 15:35:43 +00:00
Justin F. Knotzke
ee3b9f46b9 Took out DBAccess references. 2009-02-22 15:28:26 +00:00
Justin F. Knotzke
d769625f5c Took out DBAccess references. 2009-02-22 15:26:15 +00:00
Justin F. Knotzke
071c9b1071 Took out MetricView references. 2009-02-22 00:49:00 +00:00
Justin F. Knotzke
b6a902ebd9 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:08:34 +00:00
Justin F. Knotzke
9e73576fba 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:19 +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
Justin F. Knotzke
52b2049949 Damian Grauser's patch which throws a toggle in the Ride Plot graphs which
will toggle between distance and time.

Thanks Damien.
2009-02-14 23:52:10 +00:00
Robert Carlsen
92749ac705 Identify the device type as "Garmin TCX" when reading from a tcx file. 2009-01-26 18:58:25 +00:00
Sean C. Rhea
9e4d237ce9 pop up a warning if we can't find libftd2xx 2009-01-24 20:09:13 +00:00
Sean C. Rhea
a6f269363e load libftd2xx via dlopen rather than linking to it with ld,
so that GC won't crash if it's not there
2009-01-24 17:50:06 +00:00
Robert Carlsen
03e2f95c43 Changed the AvgCadence unit from "bpm" to "rpm". 2009-01-24 00:22:59 +00:00
Justin F. Knotzke
f7ea9b236e This changes the power histogram implementation to use the QVector
data type instead of dynamically allocating and freeing arrays. No
memory leak here, but it's an low hanging fruit type of example of
what kind of changes we can do to reduce the amount of explicit 
dynamic memory management.

   --jtc
2009-01-17 19:36:31 +00:00
Justin F. Knotzke
7026520ec4 This patch changes the weekly summary to include the number of seconds
in total time riding, which previously only included hours and minutes.
A few seconds over a week shouldn't account for much, but I think it's
desirable to use the same resultion for data values across the product
for consistancy if nothing else.

   --jtc
2009-01-17 19:33:49 +00:00
Robert Carlsen
842303029c Updated the Pf/Pv plot curve to use antialiased ellipses rather than points. 2009-01-14 05:21:52 +00:00
Robert Carlsen
1292a5f8e9 Applied JTC's P10, changing DatePickerDialog and RideFile objects to use boost::scoped_ptr to ensure that the objects are deleted. He recommends that we extend this technique to replace other raw pointer / delete methods.
Also, changed PfPvPlot so it will look for the CP from the power.zones file and use that rather than a hard coded value.
2009-01-12 17:15:54 +00:00
Robert Carlsen
50a9de052c from jt conklin: fixed a possible memory leak in the weekly summary. 2009-01-09 23:43:52 +00:00
Robert Carlsen
5a00528f4d Changed the update signal from returnPressed() to editingFinished() for the lineEdit fields in the ride plot and power histrogram views. 2009-01-08 06:47:33 +00:00
Robert Carlsen
b4584baf03 Adding iBike CSV import support. 2009-01-07 01:28:09 +00:00
Robert Carlsen
d849834070 Added escaping slashes to the build date. It may only work on linux/max os x, I haven't had a chance to try it on win32. 2009-01-06 02:51:15 +00:00
Robert Carlsen
21a72bc45e Added escaping slashes to the svn version number compiler directive to workaround a qmake issue with using a string value for a define. The modified statement is: \\\"svnversion . | cut -f '2' -d ':'\\\"
It may only work on linux/max os x, I haven't had a chance to try it on win32.

This was noted here: http://www.archivum.info/qt-interest@trolltech.com/2008-09/msg00070.html
2009-01-06 02:26:24 +00:00
Robert Carlsen
264e8b118e Changed from Build Date to Version Numbering system in the about dialog. As discussed on the list, the protocol is major.minor.revision, currently 1.0.271. The major and minor version numbers are set in src.pro; the revision number should be automatically derived using "svnversion . | cut -f '2' -d ':'" in src.pro. 2009-01-06 01:54:01 +00:00
Robert Carlsen
fe5b1300eb Opting to include the svn revision number grab in src.pro 2009-01-06 01:37:32 +00:00
Robert Carlsen
c731525124 Utility to add include the svn revision number to the program version in the about dialog. 2009-01-06 00:32:16 +00:00
Robert Carlsen
dd7c308667 Fix case sensitivity issue in Pages.h for #include <QCheckBox> 2009-01-05 02:30:05 +00:00
Robert Carlsen
700ac5c12d From JT Conklin: Fix to force the aggregateWith() method to use properly use metric units while incrementing when set as a user preference. 2009-01-05 02:23:09 +00:00
Robert Carlsen
f685703ae4 Updating the AddRide method to honor the ride list sorting preference. 2009-01-05 02:03:52 +00:00
Robert Carlsen
8d2edd4c48 Added a user preference to change the Ride List sorting. Default should be ascending by date, as it has been. Disabling the "Sort ride list ascending" preference will sort the ride list descending by date.
Also, added margins to the widgets in the main window.
2009-01-05 01:47:37 +00:00
Robert Carlsen
f8a94dc767 From JT Conklin:
Added support to TCX, CSV and SRM import functions to correctly remember the last import directory.
2009-01-03 20:31:57 +00:00
Justin F. Knotzke
f1ade25fa7 or relatively short (~1 hr) activities, with relatively small (~5w)
bucket sizes, the power histogram often looks short and squat with a
lot of whitespace at the top because the largest bucket may be 3 - 5
minutes, but the y-axis is scaled by adding a constant 10 (minutes) to
the max.

The attached patch scales the y-axis by a factor of 1.1 (The ride plot
does the same scaling, and it appears to work well there).  Now you're
able to see more detail in histogram plots as the curve is not all
squashed along the bottom of the graph.
    -jtc
2009-01-03 18:35:55 +00:00
Robert Carlsen
33ee8daf1e Just standardizing some indention. 2009-01-03 17:25:55 +00:00
Justin F. Knotzke
fb1b79cccf This is a 100% cosmetic issue, but I've never liked the way the
"about" dialog is formatted, with "GoldenCheetah is Licenced under
the GNU General Public Licence." and "Source code can be obtained 
from http://goldencheetah.org/" run together in a single paragraph
because the way the line is broken after "Source".  

The attached patch splits the two sentences into two separate
paragraphs, and centers the entire dialog text.

While this is subjective, I think it looks a lot better.

   --jtc
2009-01-03 11:55:56 +00:00
Robert Carlsen
c11b305239 On the ride plot, the range of speed is typically much smaller than the ranges of power, heart rate, and cadence. As a result, for many activities it's difficult to distinguish much difference.
This update changes the plot to use a right y axis for speed. This makes it easier to see speed differences.

Some other packages use separate y axes for each data type, but as far as I can tell, this is not available with the qwt library used by GC.

   --jtc
2009-01-03 07:13:45 +00:00
Robert Carlsen
baaacda681 Re-enabled the build date QMake flag. Disabled to permit "qmake -spec macx-xcode" to create a valid xcode project file. 2009-01-02 21:26:09 +00:00
Robert Carlsen
1105d60d1f Added compiler flags to build as Mac OS X Universal Binary. May require QWT and Qt to be universal as well. 2009-01-02 21:23:38 +00:00
Justin F. Knotzke
d5997b9fee The Ride Plot currently displays the activity's speed in MPH,
regardless of the Units preference.  This patch checks the preference
and displays it in the appropriate units.

Unlike some of the other cases, I'm checking the value of the Units
setting each time the plot/panel is displayed.  

The patch also pulls the 0.62137119 magic constant into a #define
MILES_PER_KM.  This constant (and it's inverse, KMS_PER_MILE), occurs
in several files, and (IMHO) really deserves to be pulled into a
separate header, but again, that's work for another day.

   --jtc
2009-01-02 20:58:06 +00:00
Justin F. Knotzke
f2187c6965 While browsing the GC code, I found that there was not an explicit
deletion of the Tools (CP Calculator) Dialog, nor was the attribute
set that tells the framework to delete the dialog when it's dismissed.
Since the other dialogs use the attribute, this patch does the same.

   --jtc
2009-01-02 18:09:26 +00:00
Justin F. Knotzke
801a26392e JTC found and fixed a double addWidget error.. 2009-01-02 17:28:59 +00:00
Sean C. Rhea
ec38e8ca1d add device types 2008-05-27 03:53:22 +00:00
Sean C. Rhea
61161a7b5d remember last import path 2008-05-27 03:00:30 +00:00
Sean C. Rhea
5a3c3c8eb7 playing around with export to XML,
may eventually become the "native" GC file format
2008-05-27 02:56:07 +00:00
Sean C. Rhea
a9ce6ae947 add Windows to About dialog 2008-05-23 16:07:20 +00:00
Sean C. Rhea
ef5f2c1a47 from Rob C: change '\' to '/' 2008-05-23 16:04:37 +00:00
Sean C. Rhea
6c3ff75f0b from Rob C: set D2XX to 9600-N-1 to make PT happy on Windows 2008-05-23 16:03:33 +00:00
Sean C. Rhea
80e113d347 from Justin: "It should fix the bugs with creating a new power.zones file plus
adds two DateEdits to show the start and end of a zone range."
2008-05-19 15:03:26 +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