Commit Graph

2373 Commits

Author SHA1 Message Date
Mark Liversedge
d2fcc590b9 Merge branch 'master' of github.com:GoldenCheetah/GoldenCheetah 2013-02-11 13:19:59 +00:00
Mark Liversedge
d7ec43633f Code Cleanup: Valgrind Memory
Not sure why, but setting the text on a treewidget item seems to
cost a lot of memory. So we don't bother since it is never used.

In general the valgrind output is ok, quite surprised. There are
very few non-widget items that are alloced but never free'd in the
GC code.
2013-02-11 11:32:23 +00:00
Mark Liversedge
147d9c81ed Code Cleanup: Minor Valgrind grumbles
.. uninitialised variables
2013-02-11 10:40:08 +00:00
Mark Liversedge
dd62b5587f Code Cleanup: Deprecated
MainWindow - AthleteTool - not used.
2013-02-11 10:09:00 +00:00
Mark Liversedge
9f94ba823d Code Cleanup: Deprecating stuff
Train view - race* - out of date and no used
Train view - SimpleNetwork - not used
Analysis view - WeeklySummaryWindow - not used
MainWindow - RideCalendar - deprecated 2 years ago
2013-02-11 10:03:21 +00:00
Mark Liversedge
40baed9272 Code Cleanup: src.pro
Removed deprecated / unused code, includes;
- racedispatcher.cpp
- simplenetworkcontroller.cpp
- simplenetworkclient.cpp

Will look at the network stuff in OpenTrainer.
2013-02-11 09:40:42 +00:00
Mark Liversedge
1baefa0e2f Code Cleanup: Notes deprecated
.. some vestiges from the old notes file.
.. fixes a significant memory leak in MainWindow too.
2013-02-11 09:35:03 +00:00
Mark Liversedge
ca5c92023a Merge branch 'master' of github.com:/GoldenCheetah/GoldenCheetah 2013-02-11 09:08:34 +00:00
Mark Liversedge
5a6477d7a3 Code Cleanup: GcCalendarModel
.. wow, nasty memory leak fixed. Leaked memory every
time a ride was selected or calendar was refreshed!

.. tbf it was marked with a 'XXX' memory leak comment
but really lazy to leave it there.

.. was also highlighted by valgrind, which is promising,
since I've been using it to hunt down any memory managment
issues -- most of them are within 3rd party libraries tho.
2013-02-11 09:05:19 +00:00
Mark Liversedge
ad6d6e040f Code Cleanup: Data processors
.. still call ride selected when done.
2013-02-10 21:19:25 +00:00
Mark Liversedge
d8696debb4 Code Cleanup: GUI elements 2013-02-10 21:18:14 +00:00
Mark Liversedge
d6181bca94 Code Cleanup: DBAccess
.. invalid comments about texts which are bwing stored.
2013-02-10 21:14:35 +00:00
Mark Liversedge
1eb06866cc Code Cleanup: CP chart 2013-02-10 21:11:39 +00:00
Mark Liversedge
097651dc5a Code Cleanup: Fix tools
All the fix tools share common code with an empty else
clause markeed with XXX. removed the redundant code.
2013-02-10 21:09:45 +00:00
Mark Liversedge
4e92ec36d5 Code Cleanup: Calendar and Diary
.. comments just reflect current constraints and are not
actionable, so XXX removed.
2013-02-10 21:06:24 +00:00
Mark Liversedge
dd8cb73de1 Code Cleanup: RideFile readers
.. mostly comments about features not yet implemented, but
   not relevant to current feature set anyway.
2013-02-10 11:27:33 +00:00
Mark Liversedge
e4334a1c99 Code Cleanup: MainWindow
.. XXX comments related to CPI files, we no longer have those.
2013-02-10 11:16:28 +00:00
Mark Liversedge
66dff2fc50 Code cleanup: Video player
.. comments don't reflect that we implemented video playback on
Mac using the QTKit API.
2013-02-10 11:14:47 +00:00
Mark Liversedge
92925cca9d Code Cleanup: Stress Calculator
.. wasn't a todo, more a comment.
2013-02-10 11:13:36 +00:00
Mark Liversedge
5c6d1eea31 Code Cleanup: Scatterplot
.. had same comments as model plot, obv from cut and paste!
2013-02-10 11:12:17 +00:00
Mark Liversedge
24697a4372 Code Cleanup: Calendar menu
.. remove unimplemented options for import/export
2013-02-10 11:10:39 +00:00
Mark Liversedge
b457e958ac Code Cleanup: Aerolab
.. unused variable
2013-02-10 11:00:56 +00:00
Mark Liversedge
90f8560da9 Code Cleanup: Model Plot
.. used XXX as warnings rather than todo.
2013-02-10 10:59:54 +00:00
Mark Liversedge
d341943da9 Code Cleanup: Ride Data and Friends
.. cleaning XXX and misleading comments
2013-02-10 10:57:33 +00:00
Mark Liversedge
4ffca1e011 UI Nits: Mac focus rectangle on ErgDB download
.. removed coz it looks ugly.
2013-02-10 10:45:25 +00:00
Mark Liversedge
7cf419a204 Silence CLucene compile time warning
.. Hits->length() is a size_t not an int.
2013-02-10 10:37:26 +00:00
Mark Liversedge
05b60576af Add Tacx Satori Virtual Power
Courtesy of Stephen Dag we now support virtual power
for the Tacx Satori trainer.
2013-02-10 09:21:14 +00:00
Mark Liversedge
aa7f39e30b UI Nits: Mac toolbar tidy
.. a blank widget left from other coding iterations and the
lhs widgets not spacing properly.
2013-02-09 13:52:26 +00:00
Mark Liversedge
eea12e7bd7 Fix split manual ride SEGV
If you try and split an empty/manual ride then the split wizard
SEGVs. The split wizard now is only executed if the ride contains data.
2013-02-09 13:21:12 +00:00
Mark Liversedge
dcf21924ba UI Nits: border on metadata
.. part of moving to GcChartWindow
2013-02-09 12:36:49 +00:00
Mark Liversedge
4408624a19 MetricAggregator less heap
Noticed when looking for memory/stack overflow issues that
the importRide function allocates an aggregator on the heap
for the lifetime of the method. No biggie, but better to use
stack for that.
2013-02-09 11:48:11 +00:00
Claus Assmann
b7f85043ce Add Support for Joule CSV Poweragent Files
Updated CSV support for Joule 1.0 format files in Poweragent
format. Also included a sample ride file.
2013-02-09 11:14:01 +00:00
Mark Liversedge
24ba55a113 Fix mac toolbar icon corruption
Because the image representation was stored in the pixmap
which was allocated on the stack -- it should be allocated on
heap since the underlying data is never actually copied.

This seems to fix the issue, but need to keep monitoring it!

Fixes #477.
2013-02-09 00:41:02 +00:00
Jon Escombe
7c84a1e905 Fix lap number issue
.. lap number jumps around when playing a crs file
2013-02-07 19:28:55 +00:00
Jaime
27216539d2 Mac Buttons Icon Corruption
.. another attempt to fix it.
2013-02-07 17:23:16 +00:00
Mark Liversedge
9f186855ed Code Cleanup: Train
.. TrainDB and TrainTool cleanup, removed references to GC servers
and removed commented #if0 code.
2013-02-07 16:25:34 +00:00
Mark Liversedge
3df4908156 Code Cleanup: TP upload/download
.. just removed commented out code.
2013-02-07 15:53:39 +00:00
Mark Liversedge
03b6832b7b Fix colorpicker focus loss on Mac
.. when editing a custom metric. This is to get around
a QT Bug ().

Fixes #476.
2013-02-07 14:53:18 +00:00
Mark Liversedge
82ec969753 Code Cleanup: Add Device Wizard
.. just comments
2013-02-07 13:23:38 +00:00
Mark Liversedge
d3e6b3cf6c Code Cleanup: Home and GcWindows
Tidy up code, removing XXX and comemnted out blocks
of code in preparation for V3.0 release.
2013-02-07 13:21:15 +00:00
Mark Liversedge
47c58397b5 Code Cleanup: RideNavigator
Remove XXX and commented out code. No functional changes.
2013-02-07 13:08:05 +00:00
Mark Liversedge
d4d457e2db Code Cleaning: ANT+ sources
Removing and fixing 'XXX' code markers across the ANT+
code. Largely this was to confirm against specs and mark
for future support (e.g. burst data, further refactoring
of the quarqd sources).
2013-02-07 12:20:40 +00:00
Mark Liversedge
e191b46205 Code Cleaning: LTM sources
Addressing or removing 'XXX' code alerts across the Long Term
Metrics source files.

This is part of a code cleanup prior to V3.0 release.
2013-02-07 12:04:44 +00:00
Mark Liversedge
96ddf765c3 Kickr connection fail gracefully
.. the code assumes the kickr connection will always work, even
when no BTLE hardware is present.

If no BTLE hardware is available then connections fail immediately
and so do attempts to find devices.

If BTLE hardware is available but the kickr connection cannot be
established in 30 seconds in train view then it returns an error.

Also added better device descriptions to check the device subtype
so we can identify stages, inride and kickr separately.
2013-02-07 09:16:46 +00:00
Mark Liversedge
1426ad1bc2 Fix SEGV in ride editor
When switching between a ride with datapoints and one
without, then back again. Editor data was being deleted
for previous ride edited when selecting a ride with no
data!
2013-02-06 21:48:42 +00:00
Mark Liversedge
31727982b6 Mac buttons retain
.. trying to address corrupted button icons.
2013-02-06 20:20:32 +00:00
Mark Liversedge
0748d6172b Update docs for build
.. to run qmake -recursive from the top level directory
to ensure subdirs Makefiles are regenerated.
2013-02-06 18:56:52 +00:00
Mark Liversedge
de9f3f9e4a replace tabs with spaces
.. in TrainTool.cpp
2013-02-06 16:03:40 +00:00
Mark Liversedge
bd9f87223d Merge pull request #473 from jjofre/master
Restore load/gradient after done with calibration
2013-02-06 07:59:18 -08:00
Mark Liversedge
0134931638 Fix compiler warnings
All are harmless but for the sake of clarity have
fixed them all bar a couple;

- Lucene grumbles about signed/unsigned conversion which
  is/isn't valid depending upon the version of CLucene you
  compile with. Either way it is harmless.

- QxtScheduleView has a bunch of issues, but since it is a
  third party widget its better to leave it unchanged.
2013-02-06 15:54:32 +00:00