Commit Graph

10859 Commits

Author SHA1 Message Date
Joachim Kohlhammer
06b0ea5a81 TrainerDay: Setting the geometry of the dialog
Setting the geometriy of the download dialog instead of the minimum
size, thus allowing full resizing.
See https://groups.google.com/g/golden-cheetah-users/c/Xi6d3L1t9QA/m/gWe2Q2uNAQAJ
2024-08-05 16:11:05 -03:00
Joachim Kohlhammer
9ea6949f13 TrainerDay: Allowing numbers in query for workouts
See https://groups.google.com/g/golden-cheetah-users/c/Xi6d3L1t9QA/m/gWe2Q2uNAQAJ
2024-08-05 16:11:05 -03:00
Joachim Kohlhammer
a17d069202 TrainerDay: Set fallback for max workouts per page
See https://github.com/GoldenCheetah/GoldenCheetah/pull/4522#issuecomment-2253027635
2024-08-05 16:11:05 -03:00
Alejandro Martinez
46bf477675 Revert force version string on non-tagged ci builds
[skip ci]
2024-08-04 12:18:03 -03:00
Alejandro Martinez
735ef1ab0c August 2024 Development Build
[publish binaries]
v3.7-DEV2408
2024-08-02 17:29:27 -03:00
jgpallero
772d30c444 Update Spanish translation (#4528) 2024-08-01 09:58:54 -03:00
Alejandro Martinez
1eb07f968e Update translation files
To match current source code for dev build 2408
2024-07-31 21:08:33 -03:00
Joachim Kohlhammer
ee1be4c48e ActivitySidebar: New action "scroll to current" (#4524)
Activity Sidebar: Added a new action to ride navigators context / burger
menu: "Scroll to current activity"
2024-07-31 11:03:29 -03:00
Joachim Kohlhammer
dc38e4a148 Changed the tab-order in the athlete selector (#4523)
* Changed the traversal order in ChooseCyclistDialog when using the
  tab-key:
  * Before this change:
    List -> New -> Open -> Cancel -> Delete -> List
  * After this change:
    List -> New -> Delete -> Cancel -> Open -> List
* Changed the default button (activated when pressing enter):
  * "New" when no athlete is available
  * "Open" when athletes are available
  * Behaviour before this change: Always "New"
* Removed the parameter allowNew from the constructor
  ChooseCyclistDialog::ChooseCyclistDialog as it was only used with
  the value true
2024-07-31 11:01:28 -03:00
Joachim Kohlhammer
0799c56c2e Fixed compilation error with gcc 14 (#4527)
gcc 14 turned some warnings into errors:
https://gcc.gnu.org/gcc-14/porting_to.html#warnings-as-errors

This commit fixes the error in EzUsb-1.0.c and additionally removes
indentation warnings.
2024-07-31 10:59:48 -03:00
Alejandro Martinez
1728c13186 Update French translation
Contributed by Patrick at the users forum
Fixes #4526
2024-07-29 21:18:55 -03:00
Alejandro Martinez
ed19e76f74 TrainerDay API - add encrypted key and page size
[skip AppVeyor]
Part of #4522
2024-07-29 17:56:30 -03:00
Alejandro Martinez
90cb68623f Fix typo in appveyor.yml
From latest commit
2024-07-25 07:31:12 -03:00
Joachim Kohlhammer
ef716f8568 Added support for the TrainerDay workouts/find API (#4522)
* Added support for the TrainerDay workouts/find API

* Added a new (optional) tab to the TrainerDay workouts download dialog
* Deferring loading of the classic list of workouts until this tab is
  activated
* Implemented the API for TrainerDays /workouts/find (see
  https://api.trainerday.com/api-explorer/)
* Visualizing the workouts using a colored ErgFilePlot
* Modified ErgFilePlot::setData to directly use the data of the given
  ErgFile instead of falling back to the ErgFile set in the context
  (required to display multiple plots at once)
* Added a simplified version of the existing workouts query sytnax
  (supported verbs: duration, dominantzone)
* Saving the workouts as trainerday-<hash>.erg
* Using the segments-section as input for the hash and to identify
  duplicates
* Functionality can be enabled in gcconfig.pri (GC_WANT_TRAINERDAY_API)
* Prepared the travis-scripts before_script.sh to inject the API key to Secrets.h
* Prepared appveyor.yml to inject the API key to Secrets.h
* Patching GC_TRAINERDAY_API_PAGESIZE for appveyor
* Configured api key for TrainerDay in appveyor
2024-07-24 12:01:14 -03:00
Alejandro Martinez
0a8e0b6cc8 Update snapshot builds
Changes from DEV20404
36207bf FIT import - don't use CIQ speed as standard speed
7ea54fa Enable Calendar and Navigator charts for Trends
65945e5 Metadata tile initial creation update fix and time & date field
support (#4518)
65bf2c0 Add tool tips to trainer controls (#4517)
b4eea7f Change SMA smoothing to always include current point
7052724 ErgFileplot: Updating the zone-coloring and prediction on
changed intensity (#4515)
0d78b3e RunMetrics - Fix Efficiency Index
29644fe POSITION - FitFile decoder - Add cyclist position
ad6a0c3 Dialwindow font scaling (v2) (#4511)
fb76896 ErgDB is now TrainerDay
e592645 Fixed crash on startup if no power zones for bikes are defined
(#4509)
2681536 Updated qwt to 6.3 (qwt-multiaxes branch) (#4497)
2b23d6a Fix qt colors passed to GColor macro (#4501)
04f2f70 Change EditNamedSearches parent to MainWindow (Fixes colors on
dark themes)
dc5da99 Remove Frame on Workout Info
7684b4a Remove duplicate theme color code in Pages.cpp (#4503)
9256358 GCColor::readConfig correct name to setting check (#4502)
2ac2cd6 Batch Processing addition metadata update (#4399)
9647975 Fix isSpecial(internalName) in SpecialFields
e41e6b6 Fit: Add FIELD_87 for record (cycle_length16) fix #4489
c088aaf Fixes the background colour of the group by sub menu (#4492)
06a6dbe Fix copy paste error preventing macOS build
5e3db39 Add delete button to manage filters (#4493)
77df5b3 Train View: Improved the selection of workouts (#4400)
cfb8c2f Manage Perspectives - perspectives list cosmetics
f1bb83f Update Images default chart
562ef17 Update Spanish translation (#4487)
57c11e0 Remove Ctrl+A shortcut for Add Cloud Account
cf2e8d8 Enable translation of Save Changes in SaveExitDialog
1b49890 Update German Translation
f97770f GC CSV Export - rcad instead of cad for runs
7a11a6a Initializing AllPlot::isPanning to false (#4482)
76dedfb Fix Average Speed aggregation
6299374 Images chart update on image drop and import
fdb6d17 Python Web Chart - Don't accept drops
68ad048 Update Images Python chart in default layout
2d8bdd7 FitRideFile - Decode GAP extra field in m/s
5073ba8 Add Images chart to default layout
c693ed6 FitRideFile - Extra fields 136, 143 and 144
4f5a0eb CP Chart - show/hide interval settings based on model and
fitting selection (#4382)
0b144cc Train View: Coloring by powerzones in ErgFilePlot (#4479)
02835e3 Added support for old Daum devices before 2001 (#4303)
71c72d6 Changed the standard colors for compare-mode (#4478)
118eafe FitRideFile : A devApp can replace another with same local id
1241c0a Use elapsed time for session (instead of timestamp) fix #4474
a1a76fb WorkoutWizard - Don't save and close on Cancel
64c7ce3 Improved search/filter box drop down menu icon (#4470)
[publish binaries]
2024-07-13 12:33:55 -03:00
Alejandro Martinez
36207bf882 FIT import - don't use CIQ speed as standard speed
Since units not necessarily are the same.
Test file: test/rowing/RowingCIQspeed.fit
2024-07-12 17:58:15 -03:00
Alejandro Martinez
7ea54faafc Enable Calendar and Navigator charts for Trends
Include them in a Diary perspective in default layout.
Since these charts were not deprecated yet, lets make them
accessible until we have a suitable calendar chart replacement.
2024-07-10 19:38:45 -03:00
Paul Johnson
65945e56d9 Metadata tile initial creation update fix and time & date field support (#4518) 2024-07-03 18:43:36 -03:00
Alejandro Martinez
553b9aa378 Fix Snapshot Builds release title
[skip ci]
2024-06-29 10:46:40 -03:00
Alejandro Martinez
3f2ae0ae38 Update snapshot builds
Changes from DEV2404
65bf2c0 Add tool tips to trainer controls (#4517)
b4eea7f Change SMA smoothing to always include current point
7052724 ErgFileplot: Updating the zone-coloring and prediction on changed intensity (#4515)
0d78b3e RunMetrics - Fix Efficiency Index
29644fe POSITION - FitFile decoder - Add cyclist position
ad6a0c3 Dialwindow font scaling (v2) (#4511)
fb76896 ErgDB is now TrainerDay
e592645 Fixed crash on startup if no power zones for bikes are defined (#4509)
2681536 Updated qwt to 6.3 (qwt-multiaxes branch) (#4497)
2b23d6a Fix qt colors passed to GColor macro (#4501)
04f2f70 Change EditNamedSearches parent to MainWindow (Fixes colors on dark themes)
dc5da99 Remove Frame on Workout Info
7684b4a Remove duplicate theme color code in Pages.cpp (#4503)
9256358 GCColor::readConfig correct name to setting check (#4502)
2ac2cd6 Batch Processing addition metadata update (#4399)
9647975 Fix isSpecial(internalName) in SpecialFields
e41e6b6 Fit: Add FIELD_87 for record (cycle_length16) fix #4489
c088aaf Fixes the background colour of the group by sub menu (#4492)
06a6dbe Fix copy paste error preventing macOS build
5e3db39 Add delete button to manage filters (#4493)
77df5b3 Train View: Improved the selection of workouts (#4400)
cfb8c2f Manage Perspectives - perspectives list cosmetics
f1bb83f Update Images default chart
562ef17 Update Spanish translation (#4487)
57c11e0 Remove Ctrl+A shortcut for Add Cloud Account
cf2e8d8 Enable translation of Save Changes in SaveExitDialog
1b49890 Update German Translation
f97770f GC CSV Export - rcad instead of cad for runs
7a11a6a Initializing AllPlot::isPanning to false (#4482)
76dedfb Fix Average Speed aggregation
6299374 Images chart update on image drop and import
fdb6d17 Python Web Chart - Don't accept drops
68ad048 Update Images Python chart in default layout
2d8bdd7 FitRideFile - Decode GAP extra field in m/s
5073ba8 Add Images chart to default layout
c693ed6 FitRideFile - Extra fields 136, 143 and 144
4f5a0eb CP Chart - show/hide interval settings based on model and
fitting selection (#4382)
0b144cc Train View: Coloring by powerzones in ErgFilePlot (#4479)
02835e3 Added support for old Daum devices before 2001 (#4303)
71c72d6 Changed the standard colors for compare-mode (#4478)
118eafe FitRideFile : A devApp can replace another with same local id
1241c0a Use elapsed time for session (instead of timestamp) fix #4474
a1a76fb WorkoutWizard - Don't save and close on Cancel
64c7ce3 Improved search/filter box drop down menu icon (#4470)
[publish binaries]
2024-06-28 16:11:07 -03:00
Nick Hastings
65bf2c00e3 Add tool tips to trainer controls (#4517)
Add a preferences option to enable/disable these tooltips.
Default is enabled. If enabled tooltips will also be shown
for disabled controls in TrainBottom so users can preview
what they do once the session start.
2024-06-27 09:30:41 -03:00
Alejandro Martinez
b4eea7f8fb Change SMA smoothing to always include current point
It is the common practice, and it works that way on forward mode,
but in backward mode current point was excluded from the average.
2024-06-24 11:42:35 -03:00
Joachim Kohlhammer
7052724fe7 ErgFileplot: Updating the zone-coloring and prediction on changed intensity (#4515)
This is a followup to #4479, taking care of manually changed intensity:
* Adjusting the coloring when sections change their power zone
* Adjusting the W'Balance prediction
2024-06-22 10:49:35 -03:00
Alejandro Martinez
0d78b3e9c8 RunMetrics - Fix Efficiency Index
Average Power is based on Time Recording, not Duration,
so the averaging base fixup is changed accordingly.
Aggregation is now based on Time Moving instead on 1,
to account for the relative weight of different runs.
2024-06-21 12:42:42 -03:00
Alejandro Martinez
68e18ae65e Avoid conflicts with min/max macros in windows.h
[skip ci]
It happens building with Qt 6.7.1 using MSVC2019,
workaround from: https://stackoverflow.com/questions/11544073/how-do-i-deal-with-the-max-macro-in-windows-h-colliding-with-max-in-std
2024-06-20 19:38:53 -03:00
Alejandro Martinez
6a88d775b0 Fix previous commit
Commit 29644fe10 fixes #4328, this one makes 2 changes:
1) Delete created XDataPoint when it is not appended to the XDataSeries
   to avoid memory leaks.
2) Remove fake positions since they are nor reported by devices, their
   inference doesn't seem safe and it can be done where it is required.
2024-06-18 19:06:48 -03:00
Vianney BOYER
29644fe102 POSITION - FitFile decoder - Add cyclist position 2024-06-18 18:20:09 -03:00
Joachim Kohlhammer
ad6a0c30e2 Dialwindow font scaling (v2) (#4511)
* DialWindow: Scaling font in both dimensions

Currently the font in DialWindow is only scaled to make the text fit
into the label vertically. This commit scales the font in both
dimensions and prevents cutting off the content.

The font is rescaled
* If the DialWindow itself is resized
* If the text set and is longer than the previous one
* Every 10 text-changes

* Trainmode: Added a global setting to finetune telemetry font scaling

* Added option to Options -> Train -> Preferences for configuring the
  font scaling strategy of Telemetry / DialWindows
  * "Height only" (default, as before)
  * "Height and width"
* Changed the layout of this Page to QFormLayout to match the other
  Pages
2024-06-13 13:11:30 -03:00
Alejandro Martinez
fb768969ee ErgDB is now TrainerDay
Fixes #2963
2024-06-03 17:16:57 -03:00
Joachim Kohlhammer
b581ef83c7 Added screenshots for wiki-documentation (#4510) [skip ci]
5 new screenshots for documenting the workout-selection feature
introduced with #4400
2024-06-01 08:50:39 -03:00
Alejandro Martinez
b0a498f25a Partially revert changes introduced by 1b49890
They were included by accident, sorry.
2024-05-31 16:41:16 -03:00
Joachim Kohlhammer
e592645cfb Fixed crash on startup if no power zones for bikes are defined (#4509)
Fix for #4508:
* Safeguarded reading zones in TrainSidebar.cpp
* Added additional check to prevent PowerZonesWidget from painting itself
  if zone list is empty
* Returning a empty list from multiple methods in class Zones if given
  range is out of allowed range (was: check only for range too high, below
  0 was ignored):
  * Zones::getZoneLows(.)
  * Zones::getZoneHighs(.)
  * Zones::getZoneNames(.)
  * Zones::getZoneDescriptions(.)
2024-05-31 13:59:02 -03:00
Alejandro Martinez
804a9046d9 Bump QWT version
It reports as 6.8 corresponding to 6.3 multiaxis branch
Part of #4497
2024-05-30 19:18:31 -03:00
Joachim Kohlhammer
2681536c68 Updated qwt to 6.3 (qwt-multiaxes branch) (#4497)
Using qwt from https://sourceforge.net/p/qwt/git/ci/qwt-multiaxes/tree/

Applied the following changes to qwt 6.3:
* Added QwtZone to qwt_plot_curve.cpp
* Disabled the emitting of Layout Requests on geometry changes of
  QwtScaleWidget - without this, CPU utilization was up to 100% on
  one core

Fixes #4495
2024-05-30 15:32:43 -03:00
Paul Johnson
2b23d6adf0 Fix qt colors passed to GColor macro (#4501) 2024-05-30 09:25:14 -03:00
Alejandro Martinez
04f2f70dbd Change EditNamedSearches parent to MainWindow
This overrides the previous commit (7c74faf)
Using context->mainWindow is more explicit,
and likely more robust.
2024-05-29 19:08:20 -03:00
Alejandro Martinez
7c74fafc4a Change EditNamedSearches parent to MainWindow
So colors match other dialogs avoiding legibility issues on dark themes.
This change doesn't seem to have negative side effects testing on
Windows, macOS and Linux (Ubuntu 22.04 over WSL) but on Linux it may
dependend on the windows manager. We can revert later otherwise.
Fixes #4506
Fixes #4504
2024-05-29 16:17:58 -03:00
Mark Liversedge
dc5da99cbc Remove Frame on Workout Info
.. workout info pane in train view has a frame which is jarring
   when compared to all the other sidebar items
2024-05-28 09:48:42 +01:00
Paul Johnson
7684b4a39b Remove duplicate theme color code in Pages.cpp (#4503)
Refactored into GColor::getThemeColor for easier manteinance.
2024-05-27 18:53:39 -03:00
Paul Johnson
9256358756 GCColor::readConfig correct name to setting check (#4502) 2024-05-26 19:30:16 -03:00
Alejandro Martinez
7cfd1fc79d Fix Uploding to snapshot release
[skip AppVeyor]
[skip osx]
Continuation of 7f3b3d2c1b
[publish binaries]
2024-05-26 09:20:23 -03:00
Alejandro Martinez
74afb03fee Update Snapshot Builds
2ac2cd6 Batch Processing addition metadata update (#4399)
9647975 Fix isSpecial(internalName) in SpecialFields
e41e6b6 Fit: Add FIELD_87 for record (cycle_length16) fix #4489
c088aaf Fixes the background colour of the group by sub menu (#4492)
06a6dbe Fix copy paste error preventing macOS build
5e3db39 Add delete button to manage filters (#4493)
77df5b3 Train View: Improved the selection of workouts (#4400)
cfb8c2f Manage Perspectives - perspectives list cosmetics
f1bb83f Update Images default chart
562ef17 Update Spanish translation (#4487)
57c11e0 Remove Ctrl+A shortcut for Add Cloud Account
cf2e8d8 Enable translation of Save Changes in SaveExitDialog
1b49890 Update German Translation
f97770f GC CSV Export - rcad instead of cad for runs
7a11a6a Initializing AllPlot::isPanning to false (#4482)
76dedfb Fix Average Speed aggregation
6299374 Images chart update on image drop and import
fdb6d17 Python Web Chart - Don't accept drops
68ad048 Update Images Python chart in default layout
2d8bdd7 FitRideFile - Decode GAP extra field in m/s
5073ba8 Add Images chart to default layout
c693ed6 FitRideFile - Extra fields 136, 143 and 144
4f5a0eb CP Chart - show/hide interval settings based on model and
fitting selection (#4382)
0b144cc Train View: Coloring by powerzones in ErgFilePlot (#4479)
02835e3 Added support for old Daum devices before 2001 (#4303)
71c72d6 Changed the standard colors for compare-mode (#4478)
118eafe FitRideFile : A devApp can replace another with same local id
1241c0a Use elapsed time for session (instead of timestamp) fix #4474
a1a76fb WorkoutWizard - Don't save and close on Cancel
64c7ce3 Improved search/filter box drop down menu icon (#4470)
[publish binaries]
2024-05-25 21:14:43 -03:00
Alejandro Martinez
7f3b3d2c1b Upload builds to snapshot GitHub release
[skip ci]
Fixes #4490
2024-05-25 21:04:45 -03:00
Alejandro Martinez
266b119055 Replace defunt keep.sh by temp.sh for artifacts upload
[skip AppVeyor]
2024-05-25 11:42:04 -03:00
Paul Johnson
2ac2cd66a1 Batch Processing addition metadata update (#4399) 2024-05-24 10:40:44 -03:00
Paul Johnson
889b1894c5 Fixes build error at VideoWindow line 403 (#4500)
Introduced by 77df5b372c
2024-05-23 21:39:27 -03:00
Alejandro Martinez
9647975643 Fix isSpecial(internalName) in SpecialFields
So we can find fields which cannot be updated
in the normal way.
2024-05-23 20:25:19 -03:00
grauser
e41e6b6e88 Fit: Add FIELD_87 for record (cycle_length16)
fix #4489
2024-05-23 22:47:47 +02:00
Paul Johnson
c088aafb5c Fixes the background colour of the group by sub menu (#4492) 2024-05-22 20:06:38 -03:00
Alejandro Martinez
06a6dbed07 Fix copy paste error preventing macOS build
Introduced by 77df5b372c
2024-05-22 19:58:32 -03:00