Commit Graph

99 Commits

Author SHA1 Message Date
Damien
9cad95bd25 AllPlot: Handle noTemp with no smooth fix #634 2013-12-26 15:21:28 -05:00
Damien
095a8a9290 AllPlot: plot references lines 2013-10-21 00:09:36 +02:00
Damien
2fc23b7041 Correction for release_3.0.0 branch 2013-10-20 23:38:17 +02:00
Damien
40818876e8 FitRideFile: Add Calibration Event parsing 2013-10-20 23:32:44 +02:00
Gareth Coco
03509108b6 assert cleanup
Based on commit# a2a962120c
2013-09-24 04:37:30 -04:00
Mark Liversedge
868dce94d7 Fix allplot crash on daft power value
Incredibly high power value in ride file causes a memory
error when setting up plot ticks.

Fixes #658
2013-07-07 20:02:49 +01:00
Mark Liversedge
40fec98142 UI Nits: AllPlot interval too hard to see
.. the interval highlighter is so feint that it can hardly
   be seen -- increased the alpha from 64 to 128.
2013-05-28 14:55:19 +01:00
Damien
e4ea81dcd8 RideFile: If we have temperature but the first point have no value use 0 insteed of noTemp value. 2013-04-06 22:40:23 +02:00
Damien
d487ba101f RidePlot: Correct min value for altitudes less than zero
fixes #527
2013-04-04 00:16:23 +02:00
Damien
cf3edf5345 Correct min value for speed axis 2013-03-18 21:58:22 +01:00
Damien
372f5eee75 Display negative temperatures (and respect temperature units) in AllPlot
fixes #466
2013-03-17 22:51:48 +01:00
Mark Liversedge
cd2fca9346 Code Cleanup: Remove #if 0 code
As a personal habit I tend to use the C pre-processor to
comment out code blocks I don't want to remove. This is in
case the code will be required in the future.

I think it is now safe to say the code commented out is not
required -- most of it is legacy and marks the transition from
earlier designs or legacy code.

I've done this in one big commit since in theory it has no
functional change, and in future can look in this commit for any
code we may want to reinstate.
2013-02-11 15:00:00 +00:00
Mark Liversedge
147d9c81ed Code Cleanup: Minor Valgrind grumbles
.. uninitialised variables
2013-02-11 10:40:08 +00:00
Andy Bryson
ff27c24f32 Stacked Plot Improvements
Make first plot the same size as the others in stacked view
Stop RPM scale clutter
2012-12-20 12:59:48 +00:00
Mark Liversedge
1608856032 UI Nits: Manual Ride Dialog fugly
Tidied up and enhanced the manual ride dialog. It now
lets users add Sport, Workout Code and Notes (or leave
them blank if they don't use them).

Also added Average HR, Cad, Watts and Speed as well as
deriving TSS and Work.

If there are no rides in the last 'n' days it falls back
to the default for all rides logged.

It also now writes json format files.
2012-12-13 14:14:25 +00:00
Damien
baed9f87c5 Remove warnings 2012-12-09 23:03:19 +01:00
Alejandro Martinez
efbea03610 Enable AllPlot and Aerolab translations
Also update spanish translation
2012-12-07 11:54:09 -03:00
Andy Bryson
6d60c154fb 361 - Y axis is still unclear 2012-11-30 12:50:55 +00:00
Mark Liversedge
cabb30d6ad Merge pull request #360 from andybryson/charts
Issue #357 - Y axis is unclear
2012-11-27 13:12:45 -08:00
Damien
b05c6cca61 Correct crash for Joule 2.0 files without temperature for first seconds 2012-11-27 22:08:57 +01:00
Andy Bryson
2ab9161232 Issue #357 - Y axis is unclear 2012-11-27 18:40:11 +00:00
Damien
8eee2ddb25 Choose Metric/Imperial units in New Athlete dialog
fixes #34
2012-11-26 23:35:35 +01:00
Mark Liversedge
efa6928c2b Use hh:mm:ss format in Allplot tooltip 2012-11-10 17:50:50 +00:00
Damien
3d7aa84d0f add seconds to plot scale label under 5 minutes 2012-11-10 17:40:53 +00:00
Damien
37a1476eb4 Show hh:mm:ss on x-axis in ride plot
Fixes #37 (Old 726)
2012-11-10 10:28:52 +00:00
Damien
d51cb951ce Add Left/Right Power Support
Add Left/Right Power Balance for FIT and Polar HRM parsers
 Add Left/Right Balance metric
 Add Left/Right series to Ride Chart

Fixes #711.
2012-08-19 13:57:24 +01:00
Damien
f884d21a81 Add torque on the plot
Fixes #245.
2012-02-13 19:34:49 +00:00
Damien
00b2ba9aec Plot relative headwind
Fixes #131.
2012-02-12 19:08:30 +00:00
Damien
c44758c5ad Qwt 6.0.1 Support
Upgrade to QWT 6.0.1, but still uses a locally patched copy
since support for 8 axes has not been included, despite it
being a relatively simple patch.

Fixes #634.
Fixes #567.
2012-02-12 10:43:15 +00:00
Mark Liversedge
ec8faeaf7b Fix SEGV in AllPlot when smooth adjust
But only affected if temperature is available.
2012-01-30 17:10:12 +00:00
Mark Liversedge
440e4005be Fix axis display for Temperature
Fixes #617.
2012-01-30 15:46:46 +00:00
Damien
62b6fc22d1 Correct temp plot for smoothing 2011-12-08 21:29:40 +00:00
Damien Grauser
55cb396196 Add temperature to AllPlot
Fixes #536.
2011-12-07 21:55:35 +00:00
Mark Liversedge
f3af380ff1 Fix interval highlighter when no power
The interval highlighter on the ride plot
uses the same axis as power, but if no
power is present in the activity the axis
is hidden, and therefore so is the interval
highlighter.

This patch will set the interval highlighter
curve axis to one that is in use.
2011-10-17 19:50:31 +01:00
Mark Liversedge
407517f2cf Stacked View honours Chart Controls
Amazingly, the stack plot does not honour the chart
controls. If you select ony a single data series it
will still display all series.

There was a //XXX 'todo' placeholder in the code for
this which has now been completed.
2011-08-28 10:08:37 +01:00
Mark Liversedge
a343afd1c5 Fix AllPlot smoothing property
Fixes AllPlot to use the chart properties for smoothing
rather than overriding with application settings (old
way of saving state in v2 and lower).
2011-08-28 00:38:35 +01:00
Mark Liversedge
5cfd1f9793 More configurable Ride Plot
Enhanced ride plot;

* Curves can be shaded (this is particularly
  useful when only selecting a single curve)

* Span slider can be hidden (this is useful
  when you want a 'smaller' plot, e.g for a
  single curve, but multiple plots on tile view)

* Curve selection is set/unset from properties.

There is a repeated 'meme' with regards the ride
plot checkboxes for data series (hr, cad etc). They
are to choose the series to display and NOT to show
which series are available.

If you choose to display HR and HR is not present in
the ride file it is still VALID to set the checkbox,
but of course nothing will be plotted. In this way, you
can define a chart for a specific data series and it
will display whatever is VALID as you select different
rides.
2011-08-27 22:27:20 +01:00
Mark Liversedge
e1ee78ac7c Fix AllPlot delete ride crash.
Fixes #431.
2011-08-27 17:19:54 +01:00
Mark Liversedge
ebe96d3a38 Fix AllPlot Smoothing
The AllPlot smoothing algorithm is coded to smooth
to a sample rate that is /higher/ than the sample
rate within the ride.

As a result, when a shorter smoothing rate (e.g. 1s)
is a applied to a ride with a greater sample rate (e.g. 5s)
the algorithm breaks down.

This patch ensures that smoothing is only performed when the
smoothing rate is greater than the ride sample rate.

Fixes #416.
2011-08-20 11:27:27 +01:00
Mark Liversedge
e6de81a87f Fix SEGV in AllPlot on empty ride. 2011-08-05 23:07:55 +01:00
Mark Liversedge
2e15d74658 Ride Plot Axis coloring
The legend wasted screen estate and was removed, this patch
colors the axis labels/ticks so no legend is required. This
approach could be adopted for other charts.

Also includes a fix to hide realtime view controls which
left a screen glitch because they should have been hidden.
2011-06-05 01:51:45 +01:00
Mark Liversedge
2daa332f41 Reinstate Tab view
After discussion on the list the utility and popularity of
the original tab view was restated. This patch reinstates
the tab view and attempts to unify the Qt tab widget with
the general look and feel of the application.
2011-06-04 17:12:17 +01:00
Mark Liversedge
4ab96e16d1 Sidebar, Ride List and Aeshetics
An update to the ride list on the left hand side
to enable the user to choose and sort or group-by
metrics, metadata fields and ride information.

In addition, the sidebar has been 'improved'
cosmetically and to require less screen estate.

Also, the ticks and frames on plots have been
adjusted to be more aesthtically appealling.

There is more to come on the look-and-feel front,
but this patch heralds some work on the sidebar
which needs to be resolved.
2011-06-01 16:34:24 +01:00
Mark Liversedge
823fff9faf Better rounding of time in AllPlot
With realtime data there will often be samples with
timestamps like 940.002 and 940.998. This cuases an
issue on the ride plot, where it believes there is
no sample for 941 and therefore plots a zero value.

This patch rounds the timestamps to the nearest 100th
of a second, which is consistent with the mechanism
used in the ride editor.
2011-05-16 17:54:11 +01:00
Mark Liversedge
3aba7dd788 Inital V3 Branch 2010-12-30 17:35:23 +00:00
Mark Liversedge
48a25081ed Fix blank space on right of AllPlot. 2010-08-14 13:00:05 +01:00
Mark Liversedge
9109eb616f Fix crash in AllPlot on Manual Ride
When a manual ride is selected whilst on allplot
it will refresh the plots, but computes invalid
offsets into the ride data. this patch fixes this
crash.

Fixes #128.
2010-08-04 22:19:46 +01:00
Mark Liversedge
efd4de62a1 Fix Imperial Show By Distance on AllPlot
The recent patch for allPlot zooming does not display the full plot
properly when the user has selected imperial units and is displaying
by distance (not time). This minor fix corrects this.
2010-07-28 20:23:01 +01:00
Mark Liversedge
2962fce0b7 Scrolling AllPlot and Tooltip
Introduce a span-slider on the normal Ride Plot chart to enable
users to select a range to plot and scroll left and right. The
zoom to interval function now uses this slider rather than setting
a zoom range. Tooltips are now displayed on the normal and stacked
views to assist in reviewing specific data points.

Old style zooming still works as expected, but scrolling at a zoom
level is not yet implemented.

The qxt widget 'QxtSpanSlider' has been placed in the top
level directory (GoldenCheetah/qxt) alongside the qwt widgets to
avoid adding another dependency.

A number of optimizations have also been introduced to speed up
plotting in general. A new color setting for the thumbnail plot
has also been introduced. Refresh of the plot when data is changed
in the editor has been fixed. The zoom scale up/down widgets are
also disabled when in normal mode to avoid the bug highlighted by
Robert Carlsen.

Fixes #122.
2010-07-27 19:46:35 +01:00
Mark Liversedge
38df7c28bd User Configurable Colors
A new config pane for defining color preferences for chart
curves, shading, background and grid lines et al. Default values
echo the current hard-coded values.
2010-04-01 10:29:13 -04:00