Commit Graph

10159 Commits

Author SHA1 Message Date
Mark Liversedge
d6274c0fff Cache pixelsize calculation in pixelSizeForFont
.. train view resize performance was terrible because each time
   a telemetry item was resized it would recalculate the right
   pixel size for the font.

   this was only a problem in hidpi displays, but these are
   becoming more and more popular.
2021-11-28 17:51:09 +00:00
Yukihiro Nagano
d6d969f819 Update Japanese Translation (#4086) 2021-11-28 09:12:08 -03:00
Alejandro Martinez
8dbaad3876 Fix copy paste error in DataFilter intervals
Fixes #4084
2021-11-27 20:35:02 -03:00
Alejandro Martinez
0762f0daaf Critical Power Chart - Fix no use of performance tests in Trends
I introduced this bug in 3a07cc5, sorry.
2021-11-27 20:16:16 -03:00
Mark Liversedge
f9b2b60b37 Standard Colors selection sorted
.. when choosing a standard color the dialog now sorts the
   list of standard colors to make it easier to find.
2021-11-25 11:39:57 +00:00
Mark Liversedge
b27d3d42c8 Color options sort
.. colors are organised by group in preferences and can
   be sorted by the user to help find what they are
   looking for.
2021-11-25 10:47:45 +00:00
Mark Liversedge
c74a1e76a3 Grouping Colors
.. standard colors now belong to groups:
   * Chart - chart decorations e.g. grid lines
   * Data - data series e.g. Power
   * Gui - Gui elements e.g. toolbar background

.. when selecting colors in user and trends charts we
   now filter out any colors that are not data related
   to make it easier for users to find a standard color.
2021-11-24 13:45:00 +00:00
Mark Liversedge
a8de13b7cf Add chartbar background color config
.. so users can configure the color of the chartbar, but more
   likely to just setup via themes.
2021-11-24 12:34:01 +00:00
Mark Liversedge
680f7b9665 User chart scaling option name change
.. "Scaling" becomes "Font scaling" to make it clearer
   to users what the setting does.
2021-11-24 08:51:15 +00:00
Alejandro Martinez
79fd18ef55 Train - Use Simulated Speed enabled by default for new users
Intended to minimize support questions from new users.
Fixes #4075
2021-11-23 17:17:20 -03:00
Mark Liversedge
77c9b8d645 Datafilter - append() update sum
.. vectors sum is pre-calculated as functions are
   evaluated. but was missing for the append() function.
2021-11-22 22:36:48 +00:00
Alejandro Martinez
8d3f580c0f Aerolab - scale x-axis distance when imperials units are used
Also zoom to interval limits
Fixes #4074
2021-11-21 11:04:49 -03:00
Mark Liversedge
20201c16a8 View sidebar controls
.. when enter/leave full screen mode the view sidebar is
   hidden and shown to increase screen real estate (and
   especially useful in train view).

.. since the user may want to show/hide for other reasons
   the view menu now also has an option to show/hide the
   view sidebar selector too.
2021-11-18 09:16:34 +00:00
Stefan
b12e1fa9b6 Fix font issue under Windows 10. 2021-11-17 12:54:18 +00:00
Mark Liversedge
2f703594e9 Hovering Color
.. add GColor(CHOVER) and used in sidebar, chartbar and
   toolbar when hovering over a button or tab.
2021-11-15 16:47:33 +00:00
Alejandro Martinez
32bd7955a8 Extend the range of default crank length
To include custom lengths from 130 to 220, default 175.
2021-11-13 20:37:20 -03:00
Alejandro Martinez
6e7931508f DataFilter - Use Duration for fatigue zone percentanges
W'bal series doesn't have gaps, so Time Recording can inflate
percentanges when there are pauses.
2021-11-11 19:21:13 -03:00
Alejandro Martinez
552c44d847 Fixed pre target 2021-11-10 21:31:09 -03:00
Alejandro Martinez
0cfa1e7d49 PythonEmbed - Duplicate timeout waiting for Python version output
Some users have reported intermitent errors, likely depending on machine load.
2021-11-10 09:18:28 -03:00
Alejandro Martinez
7ca84ecd3e Withings Authorization - Use https for callback URL
Fixes #4065
2021-11-09 16:39:38 -03:00
Mark Liversedge
5a2e1cc3a8 Update README.md
Add link to NOTIO forl
2021-11-08 17:05:21 +00:00
Mark Liversedge
595b38360e User Chart Label Font Scaling
.. the label annotations needed the scaled font applied.
2021-11-04 18:03:22 +00:00
Alejandro Martinez
89dc137a52 Rename Withings key defines in gcconfig.pri.in
[skip ci]
To to match those currently used in the code.
Fixes #4060
2021-11-04 10:44:54 -03:00
Mark Liversedge
655fb69b42 Overwiew Layout fixup
.. the renumbering of columns removed empty columns. This was not
   desirable since in some instances where spanning tiles are used
   the user may have deliberately done this.

.. thanks to Alan Benstead at the forums for an example chart to
   test this fix against.
2021-11-04 09:21:41 +00:00
Alejandro Martinez
320cddb1e1 SportTracks download - ensure termination while processing samples
Fixes #4044
2021-11-03 10:40:29 -03:00
Yukihiro Nagano
7a08f9e92c Update Japanese translation (#4059) 2021-11-03 09:15:13 -03:00
Alejandro Martinez
f04a20db21 Add metric description as what's this help to MetricSelect
Handy when a user is inspecting a pre-built Overview chart
2021-10-31 19:53:06 -03:00
Alejandro Martinez
0c4e5f3080 CloudService Sync - Honor metric/imperial setting
Fixes #4056
2021-10-31 14:48:55 -03:00
Mark Liversedge
5225ef0f02 Re-apply Another ChartSpace Layout fix (resolved)
.. when a spanning tile moves the layout needs to restart to
   take into account its new position (since it will displace
   other tiles).

.. to enable us to restart the layout we needed to refactor
   the updateGeometry() method to separate out the creation
   of animations from layout changes (because an item may be
   moved several times as spanners take precedence).

.. tile column numbers also need to be renumbered from 0 when
   arranging since it is possible to get out of sync as items
   are dragged around.

.. this refactor should also make it slightly easier to fix
   any other layout tweaks (now the previous issues have been
   resolved).
2021-10-31 15:26:15 +00:00
Mark Liversedge
180af0ab04 Revert "Another ChartSpace Layout fix"
This reverts commit a023e0efc0.

There are a number of issues with this commit that need
more work and further testing, most notably:

* moving an item causes jarring and unneccessary updates
* moving an item to before the first column causes a SEGV
2021-10-31 13:09:44 +00:00
Mark Liversedge
a023e0efc0 Another ChartSpace Layout fix
.. when a spanning tile moves the layout needs to restart to
   take into account its new position (since it will displace
   other tiles).

.. to enable us to restart the layout we needed to refactor
   the updateGeometry() method to separate out the creation
   of animations from layout changes (because an item may be
   moved several times as spanners take precedence).

.. this refactor should also make it slightly easier to fix
   any other layout tweaks.
2021-10-31 10:04:12 +00:00
Mark Liversedge
16cc48f933 Add all the Metrics with W' to the lexer
.. annoying heritage issue with metric names that contain an
   apostrophe (') breaking the parser. So we need to add them
   as special cases to the lexer.

Fixes #4057
2021-10-31 08:25:37 +00:00
Erik Botö
04b6334f59 Add support for FTMS devices (#4045)
Add support for FTMS devices with Power and Slope control plus Power, Cadence and Speed telemetry
Implement a priority for controllable devices
Avoid connecting Cycling Power Service if there's another source
2021-10-29 12:49:06 -03:00
Alejandro Martinez
7929944f73 Update German Translation
Contributed by forum user Marcen
2021-10-27 15:41:23 -03:00
Alejandro Martinez
e1ce93728d Add What's this help for tile configuration in Overview charts 2021-10-27 12:21:55 -03:00
Alejandro Martinez
3096fb42a1 Fix expression precedence in Bike and Power estimators
Likely not too relevant, but it was an error.
Fixes #4049
2021-10-26 19:58:01 -03:00
peret2000
1ead8e0922 Estimate Power: corrected adjustment of CdA when not set (#4051)
When CdA is not set, it is estimated at every sample, using cadence. Beforehand, it was computed with the first sample

Co-authored-by: Peret <mail@mail.com>
2021-10-26 14:42:13 -03:00
Mark Liversedge
3f66fec5f7 UserChart refresh for intervals
.. a new checkbox setting for the user chart to refresh when interval
   selection changes.

   since there is a performance overhead the user must select this
   if they are plotting intervals-- most of the time it is not needed.
2021-10-23 19:17:54 +01:00
Mark Liversedge
6473ed76ce Default opacity 100% and width 2.00 on UserChart series
.. the defaults for opacity was set to 1% and line width of 0px
   when adding a series to a user chart were inappropriate.

   Some users wouldn't notice and wonder why curves rendered in
   a ghostly manner.

   Also made worse by the fact that when opengl rendering is
   enabled for a series (fast graphics) the opacity and width
   are ignored.

   This led to a false diagnosis of rendering issues
   when the root cause was the configuration of the curve.
2021-10-20 17:01:37 +01:00
Alejandro Martinez
9c727a8770 Update German Translation
Contributed by marcen at the forum
2021-10-17 14:46:03 -03:00
Mark Liversedge
5b838b4a0f Windows command line --no-angle
.. disable forcing of ANGLE for rendering, which helps where folks
   have multiple GPUs but cannot configure them for use in GC.

.. some reports in the forums of issues related to this.
2021-10-15 18:09:28 +01:00
Mark Liversedge
ee3c30f527 Tweak Linear Regression annotation
.. size too thick on low-dpi and virtual dpi displays and avoid trying
   to fit when there is no curve data being shown.
2021-10-15 18:09:28 +01:00
Alejandro Martinez
d9b768514a Update translation files 2021-10-14 11:54:12 -03:00
Mark Liversedge
970e44a913 annotate(lr, style, "colorname")
.. add a linear regression to the plot for the current series.

   style is solid, dash, dot, dashdot or dashdotdot
   "colorname" is a color e.g. "red" or a hex rgb "#fefefe"
2021-10-13 18:36:29 +01:00
Alejandro Martinez
007dc4b518 Avoid crashes in DataFilter when athlete has no activities
DataFilter evaluation requires an activity to get context,
so don't try to evaluate one when there is no current activity
to avoid crashes. It is a marginal edge case without practical
value, but better don't crash when a new user is playing around.
2021-10-13 11:51:02 -03:00
Alejandro Martinez
289962cd11 DataFilter - Avoid crash when evaluate(spec, dr) is called on a malformed expression
Reported at the forum, easily reproducible creating a KPI tile
in Trends Overview Chart.
The added check is already present in remaining evaluate versions.
2021-10-12 20:55:01 -03:00
Mark Liversedge
0e8d452956 Annotations tweak
.. show/hide along with associated curve
   honor scaling, e.g. when on an overview
   use plot marker color for line and text
2021-10-12 23:04:27 +01:00
Mark Liversedge
a3f42c0746 Horizontal and Vertical Line Annotations on UserChart
.. annotate(hline|vline, "text", style, value) to add a horizontal or
   vertical line to the plot for the current series on a UserChart.

   style is one of solid, dash, dot, dashdot or dashdotdot which are
   the standard Qt pen styles for drawing lines.

   I also took the opportunity to refactor how annotations are passed
   from the datafilter down to the generic plot. This should make it
   far easier to add annotations in the future.

.. fixed a SEGV in the voronoi annotation, which was related to memory
   management and the sqrt_nsites variable (honestly, I am amazed it
   ever worked).

.. labels in Python and R charts are now broken, will fixup shortly when
   worked out how it should work (annotations are related to a series).
2021-10-12 22:13:09 +01:00
Mark Liversedge
9976746e49 DataFilter::eval() more const pass by reference
.. for the specification and daterange.
2021-10-12 14:16:56 +01:00
Alejandro Martinez
c8c4666faa Add GoldenCheetah.pdb to Windows installer
To enable source file names and line numbers in stack traces
generated after crashes in crash*.log files.
Intended to make crash report from users easier to analyze.
2021-10-11 18:51:13 -03:00