Commit Graph

2349 Commits

Author SHA1 Message Date
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
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
Jaime
d6b7e8645e Restore load/gradient after done with calibration 2013-02-06 10:51:23 -05:00
Mark Liversedge
0970abd30d BlankState: Cosmetics
Just changed the icon for add device and tidied up
the icon sizing and button sizing a smidge. As ever,
tastes vary.
2013-02-06 12:35:27 +00:00
Mark Liversedge
82ecce3af6 BlankState: Analysis view more blanks
- Better handling of a NULL ride for most of the analysis charts
- Don't show activity editor if no data rows to edit
2013-02-06 11:48:52 +00:00
Damien
4f3f8701f0 PfPvWindow : Double Click
Update edit values for CP et CAD after double click
2013-02-05 23:37:46 +01:00
Damien
c73bddb128 UI Nits: PfPvWindow double click to change quarters (CP and cadence) 2013-02-05 23:20:11 +01:00
Mark Liversedge
14e2fd97ad BlankState: Minor cosmetics
.. changed the image to be fainter and smaller
.. the text to be larger and bolder
2013-02-05 21:55:32 +00:00
Mark Liversedge
aa7c4180c0 Chart Settings menu is All Chart Settings
.. to differentiate from the reveal settings which
are just a small subset of the chart settings.
2013-02-05 15:59:54 +00:00
Mark Liversedge
41434a7fd6 RideEditor: Stop hiding controls
The find dialog and anomalies list are now available
from the ride editor toolbar and not hidden in the
chart controls.

As a result the ride editor no longer has any chart
controls and so they are removed altogether.
2013-02-05 15:55:25 +00:00
Mark Liversedge
102a35a00d Don't hide Histogram when in range mode
When plotting distribution for a date range instead of
for a specific activity we should not hide when the current
ride has no data (since we are plotting a range not the current
ride).
2013-02-05 13:35:34 +00:00
Mark Liversedge
92df1ce694 Add reveal controls to LTM chart
Allows user to quickly change the settings for
- group by (week, month, year etc)
- shading (power / hr zones)
- show events (chart markers)
2013-02-05 13:23:23 +00:00
Damien
89a70afb69 BlankState : ScatterWindow
Blank state only if no ride or no data point
2013-02-04 22:37:46 +01:00
Damien
1d7242924b BlankState: No data available for PfPvWindow
Use the default blank state in PfPvWindow when data not present
2013-02-04 22:22:49 +01:00
Damien
649a2c3400 BlankState: No data available for AllPlotWindow
Use the default blank state in AllPlotWindow when data not present
2013-02-04 22:12:40 +01:00
Damien
8add4c7fbb BlankState: No data available for HrPwWindow
Use the default blank state in HrPwWindow when data not present
2013-02-04 22:02:51 +01:00
Damien
754e293da4 BlankState: No data available for HistogramWindow
Use the default blank state in HistogramWindow where data not present
2013-02-04 21:54:37 +01:00
Mark Liversedge
570c9af752 LTM Show Events Checkbox
Adds a checkbox to the LTM plot to enable and
disable the plot markers for season and events.
2013-02-04 12:51:30 +00:00
Damien
bb5126030d Blank State : default image for no data available 2013-02-04 07:46:31 +01:00
Damien
edfd2e56aa Blank state : no GPS image for Google Map
Add an image when no GPS data present
2013-02-03 23:11:56 +01:00
Damien
5963feea94 Translation update
Use metric symbol insteed of name for summary metric data
2013-02-03 21:55:05 +01:00
Damien
52567f0732 Re-order seasons with drag drop
fixes #445
2013-02-02 23:28:31 +01:00
Mark Liversedge
b7111bc54e Fix compile time error for WF API 2013-01-30 22:34:25 +00:00
Mark Liversedge
08a77e1ac8 BT40 device discovery fixups
A few fixups for BT40 discovery, we now search for BT40
devices properly.

- delete BT40 properly
- scan for longer
- return count of total found
- a few fixups to logic in AddDeviceWizard

Now need to update the pair screen to let the user
select/deselect sensors that are part of this "device".

Then obviously update the BT40/Controller for runtime
activity (and filter out the RFLKT since it will have
its own device type.
2013-01-30 21:39:16 +00:00
Mark Liversedge
6c583da655 BT40 AddDeviceWizard updates
Just a checkpoint before BT40 pair updates to connect with
each found sensor and display current data on the pair screen.

This is so the user can select the devices they want to be
included in this device definition (if they have lots of
BTLE devices).

I guess this is gonna mostly be dcrainmaker and wahoo employees!
2013-01-30 13:39:07 +00:00
Mark Liversedge
c9571e0d8b BT40 / Kickr device discovery
Ensure the Kickr and BT40 devices can co-exist by
ignoring subtypes.

Also introduced a deviceFound signal so we can get a
device pairing page for BT40 (non-Kickr) devices.
2013-01-30 10:47:01 +00:00