Commit Graph

492 Commits

Author SHA1 Message Date
Eric Murray
b87aab0302 fix manual ride entry crash when no zones file
This is a partial patch based on code from Eric Murray.  It changes just
enough of ManyalRideDialog to fix a crash that otherwise occurs when the
user doesn't have a zones file.
v1.2
2009-09-19 09:22:42 -07:00
Mark Liversedge
ecdc2288ff Optional padding data with value 0x8012 discovered 2009-09-12 21:30:17 -04:00
Berend De Schouwer
04bb484f8e SplitRide altitude matches CSV2 2009-09-12 21:30:09 -04:00
Sean Rhea
6eeea4a305 simplify GC_BUILD_DATE and GC_VERSION
Use gcc macros for __TIME__ and __DATE__ to compute build date.  This has the
advantage that we don't have to shell out to find the date, though it has the
disadvantage that it doesn't give us any control over format, nor does it
report the time zone.

By default, set GC_VERSION to "(developer build)".  For release versions,
specify GC_VERSION explicitly in gcconfig.pri like this:

  QMAKE_CXXFLAGS += -DGC_VERSION="'\"1.2.0\"'"

It would be nice to specify the git commit id in developer builds.  On the
other hand, the developer could always have uncommitted changes, so the git
commit id doesn't really make for a completely reproducible build.  It's also
a pain to get ahold of in Windows.
2009-09-11 09:13:20 -04:00
Mark Liversedge
af676f24eb WKO Import no longer aborts bulk import on first file error. 2009-09-11 09:13:20 -04:00
Justin Knotzke
e761091097 main and RideItem now use the global function that returns the correct QSettings. 2009-09-11 08:49:20 -04:00
Justin Knotzke
72c40de966 Added to what Greg has done in regards to GC's settings. Fixed a bug regarding where power.zones file was being saved to. 2009-09-11 08:49:20 -04:00
Greg Lonnon
243a28bb87 the settings code was leaking and it was copy/pasted in a few files.
created a method to find QSettings (settings.h) and stopped it from leaking.

The leak looked like this...

==7800==    at 0x4C2726C: operator new(unsigned long) (vg_replace_malloc.c:230)
==7800==    by 0x64FD232: (within /usr/lib/libQtCore.so.4.5.0)
==7800==    by 0x64FDB62: QSettings::QSettings(QString const&, QString const&, Q
Object*) (in /usr/lib/libQtCore.so.4.5.0)
==7800==    by 0x4738E5: PfPvPlot::setData(RideItem*) (PfPvPlot.cpp:361)
2009-09-11 08:49:20 -04:00
Julian Simioni
5299810a7e tcx ride requiring AltitudeMeters 2009-09-10 21:27:04 -04:00
Julian Simioni
b86921d90c Fixed altitude in .tcx files.
One-liner to correctly parse altitude in Garmin .tcx files.
2009-09-10 21:21:59 -04:00
Mark Liversedge
570b2ffc73 Added support for Cycleops 300PT in WKO import 2009-09-10 21:14:55 -04:00
Justin Knotzke
65ee84f948 Changed the label from mm to m as that's what is displayed. 2009-09-09 07:25:57 -04:00
Berend De Schouwer
0873317ea7 Fix PfPV divide 1000 2009-09-09 07:17:43 -04:00
unknown
236878ff7f Fixes editing of notes
Signed-off-by: Robert Carlsen <robert@robertcarlsen.net>
2009-09-08 18:25:50 -04:00
unknown
f71d329f14 Fixes major bug putting AppData in wrong place on Vista & Win7
Signed-off-by: Robert Carlsen <robert@robertcarlsen.net>
2009-09-08 18:25:42 -04:00
Robert Carlsen
eb0a40ba8e Update version number to 1.2.0 for imminent release. 2009-09-07 19:45:48 -04:00
Greg Lonnon
e7c7a43b8d fixed the following use of a uninitialized variable
==30062== Conditional jump or move depends on uninitialised value(s)
==30062==    at 0x49070E: ElevationGain::perPoint(RideFilePoint const*, double, RideFile const*, Zones const*, int) (BasicRideMetrics.cpp:114)
==30062==    by 0x491592: PointwiseRideMetric::compute(RideFile const*, Zones const*, int, QHash<QString, RideMetric*> const&) (RideMetric.h:54)
2009-09-07 12:27:08 -04:00
Rhea@.(none)
29ad88de64 rearrange src.pro for Windows 2009-09-06 19:30:03 -04:00
Berend De Schouwer
879b1f6a2e Use CSV filename as timestamp 2009-09-06 18:35:49 -04:00
Sean Rhea
50428b5586 try three times to get PT version string
Sometimes we miss the 'V' in 'VER' on the first one, but a subsequent one
lines up right.  Patch from Dan Connelly.
2009-09-06 18:25:43 -04:00
Sean Rhea
dc8877eb6a turn off tooltips in PowerHist
With some versions of Qt/Qwt, tooltips cause an infinite recursion.  We don't
know why this happens yet, but this patch at least prevents crashes while we
figure it out.
2009-09-06 14:13:31 -04:00
Sean Rhea
fbc3c939e2 remove unused functions 2009-09-06 14:08:19 -04:00
Justin Knotzke
d65fd2a4d0 This should never have made it to github
Revert "Revert "First line of Notes in WKO imported file now has sport followed by workout code. Improves Calendar display.""

This reverts commit 3567012046.
2009-09-05 22:32:33 -04:00
Justin Knotzke
656f548896 This should never have made it to github.
Revert "Revert "guard against all negative values in PowerHist""

This reverts commit d785ca5a0f.
2009-09-05 22:31:47 -04:00
Justin Knotzke
c798420cee Test files for the qollector. 2009-09-05 22:27:32 -04:00
Justin Knotzke
d785ca5a0f Revert "guard against all negative values in PowerHist"
This reverts commit df33fe2301.
2009-09-05 22:24:01 -04:00
Justin Knotzke
3567012046 Revert "First line of Notes in WKO imported file now has sport followed by workout code. Improves Calendar display."
This reverts commit 325140af26.
2009-09-05 22:24:01 -04:00
Mark Rages
e7f7decf10 Add support for Quarq ANT+ log import.
The Quarq ANT+ log contains a hex dump of raw ANT+ messages.  This
importer uses the closed-source program "qollector_interpret" to convert
the ANT+ log file into an XML format, then parses that into a RideFile.

qollector_interpret binaries for several platforms may be downloaded from
http://opensource.quarq.us/qollector_interpret

If the qollector_interpret program is not available, the menu selection
for importing Quarq ANT+ will not appear, nor will .qla files be
imported.
2009-09-05 21:28:12 -04:00
Sean Rhea
df33fe2301 guard against all negative values in PowerHist
This patch unifies the way in which we handle negative values in the Power
Histogram by ignoring all values (speed, hr, cadence, power, and torque)
less than zero.

I'm not sure if this is the right way to handle such values long term, but
it sure beats dumping core.
2009-09-04 19:52:33 -04:00
Mark Liversedge
325140af26 First line of Notes in WKO imported file now has sport followed by workout code. Improves Calendar display.
Signed-off-by: Robert Carlsen <robert@robertcarlsen.net>
2009-09-04 10:52:10 -04:00
Mark Liversedge
afb3fb6d62 WKO Fix for 64bit, Big Endian and Interval should be 0
Signed-off-by: Robert Carlsen <robert@robertcarlsen.net>
2009-09-04 10:00:03 -04:00
Sean Rhea
7bd0d0326c fix include <> --> "" 2009-09-02 21:25:58 -04:00
Rhea@.(none)
a41226ade5 fix newlines 2009-09-02 21:17:35 -04:00
Berend De Schouwer
bab4063fd0 Resize for small screens 2009-09-02 12:46:17 -04:00
unknown
f4336ec87c Fixes stack overflow crash bug 2009-09-02 10:54:13 -04:00
Sean Rhea
9fb219019e move 'CONFIG += static debug' into gcconfig.pri 2009-09-02 10:45:13 -04:00
Thomas Weichmann
32e30f7ccd Changed title of Power Histogram Tab to Histogram Analysis 2009-09-02 10:38:28 -04:00
Sean Rhea
75e2c43cdd don't compile/link D2XX.cpp if isEmpty( D2XX_INCLUDE )
As suggested by Berend De Schouwer.
2009-09-02 10:36:02 -04:00
Claus Assmann
0c08ff093d Need unistd.h for unlink(2). 2009-09-02 10:30:33 -04:00
Justin Knotzke
faf01deb6f Took out a RideCalendar::addRide() Adding a ride debug statement. 2009-09-01 06:38:07 -04:00
Sean Rhea
dc50cf79e6 PowerHist cleanup: trust QVector::resize()
QVector::resize() already does exponential capacity growth and zero fills new
elements, so there's no reason for us to be doing either by hand.  This change
simplifies our code substantially.
2009-09-01 06:19:54 -04:00
Berend De Schouwer
4399d1ad81 RidePlot/ErgomoCSV/ErgomoHU Interval consistency 2009-09-01 06:12:34 -04:00
Berend De Schouwer
86cfac2d9e Calendar add-remove rides 2009-09-01 06:12:34 -04:00
Sean Rhea
a1bbf4d50f bug fix: no altitude in srm files
This bug was introduced in 5c0bdd89, which added an alt member to
SrmDataPoint without initializing it.
2009-09-01 05:38:18 -04:00
Claus Assmann
debd870811 There are more than just 3 OSs, make "Unix" the default. 2009-09-01 05:29:36 -04:00
Robert Carlsen
ad0fdd243e Changed declaration of QMAKE_CXXFLAGS to include possible settings from gcconfig.pri. ( = --> += ) 2009-08-31 11:16:43 -04:00
Sean Rhea
d03defb2da ignore empty include paths 2009-08-31 05:36:17 -07:00
Sean Rhea
a5dd700033 add D2XX_INCLUDE path
Also remove Windows-specific include path in D2XX.h, as setting
D2XX_INCLUDE in gcconfig.pri will accomplish the same thing.
2009-08-30 15:08:48 -07:00
Berend De Schouwer
ec8d3e9949 Add Calendar 2009-08-30 14:49:25 -07:00
Berend De Schouwer
55f0b19ff5 Add altitude for Ergomo CSV 2009-08-30 09:35:10 -07:00