Commit Graph

68 Commits

Author SHA1 Message Date
Mark Liversedge
db2ebb63fa Disable OpenData if Secret not defined
.. developer builds will try and post and continue to try to
   post despite the fact it will never work.
2018-04-07 09:29:22 +01:00
Joern
12545a4f3f Merge pull request #2825 from Joern-R/Sync2
Cloud Upload/Sync - check for unsaved activities
2018-03-19 18:37:37 +01:00
Mark Liversedge
0860fe771f OpenData prompt for permission and post
.. at startup we ask the user for permission to share

.. once permission is granted the upload is performed and
   re-done every year, so long as > 100 workouts have been
   collected since the last time.
2018-03-18 19:51:45 +00:00
Joern
701b6b721e Cloud Upload/Sync - check for unsaved activities
... check for unsaved activities and allow saving before starting sync/upload
2018-03-18 15:09:10 +01:00
Mark Liversedge
f54b4ebbb1 Kent University Part 2 of 3
.. custom uploader, using CSV.

.. requires updating to support custom fields like RPE/ROF
   but committing whilst trying to resolve a bug related
   to the FOLDER_ID configuration setting.
2017-09-22 11:49:21 +01:00
Alejandro Martinez
2888b27e16 Adds HRV Measures - Part 1
Implements #2568 part 1, 2, 3, and 4
2017-07-26 17:17:21 -03:00
Joern
29dde46244 CloudService - Fix Translation related problem (Part 2 of 2)
... fix QT build error (QAction signature changes)
2017-05-14 11:40:00 +02:00
Joern
2df01a0a45 CloudService - Fix Translation related problem (Part 2 of 2)
... introduce translatable "uiName" for each CloudService
... differentiate between "id" and "uiName" where needed
2017-05-14 10:19:15 +02:00
Mark Liversedge
0aaf9f3e5a Share Menu Again
.. check looks at autoimport too (e.g. when checking a
   directory that is mounted when connecting device).

.. changed the titles to make it clearer which are about
   activities and which are about measurements.
2017-05-10 09:18:15 +01:00
Joern
0246d7c57c Share Menu
... move "Body Measurement Download" from "Tools" to "Share"
... enable "Check for New Data" menu action
2017-05-07 19:26:19 +02:00
Mark Liversedge
e1dcd0dd68 Share menu manually check for new data
.. sometimes we just want to get the data that was
   just posted without having to restart.
2017-05-07 16:25:14 +01:00
Mark Liversedge
f645df8040 Deprecate ShareDialog and Friends
.. they are now replaced via CloudService.
2017-04-24 20:32:37 +01:00
Mark Liversedge
616de4966f Deprecate Twitter support
.. move the twitter dialog into the deprecated folder
.. remove all remaining references to twitter
2017-04-24 20:19:50 +01:00
Joern
319c1f6702 Fix Terminology
... "measurements" (noun) not "measures" (verb) - thanks Mark
2017-04-22 19:44:45 +02:00
Mark Liversedge
d74a84bd78 Cloud Refactor - Remove Upload to Calendar 2017-04-06 22:11:51 +01:00
Mark Liversedge
57276cd8c2 Simplify Share Menu
.. adding a manage accounts option is overkill and confusing
2017-04-04 18:40:12 +01:00
Mark Liversedge
38000991b2 Cloud Refactor - Simplify Menu Options
.. share menu is now much simpler since:

   * twitter and calendar removed
   * individual upload/sync options removed
   * only shows sync/upload for configured accounts
2017-04-01 11:26:13 +01:00
Mark Liversedge
097f9ed94e Cloud Refactor - Add Account Wizard WIP
.. committing the work in progress

.. still needs to be completed, but for technical reasons I am
   pushing now to get into the master repository.
2017-03-29 20:56:55 +01:00
Mark Liversedge
23fce48d71 Cloud Refactor - Rename FileStore to CloudService
.. since thats primarily what they do.
2017-03-25 10:19:21 +00:00
Mark Liversedge
122132e85c Hi-DPI Support - Configure Font and Scale
.. just let the user choose a font and a scale.
.. we work out the base font for the display resolution
2017-03-20 20:17:56 +00:00
Mark Liversedge
6f90cd9992 Hi-DPI Support - Remove Unused Font Settings
.. just reduce to default and chartlabels which are the only
   font settings used across the codebase.

.. this is in preparation for overhauling the way fonts are
   set across GC.
2017-03-20 16:14:18 +00:00
Joern
c6c2121784 Introduce BodyMeasures as generalization of current Withings Data
... body measures are weight/height data as provided by multiple fitness platform (one of the being the already support Withings platform)
... all access to Weight from external platforms is done through the body measures model - not direct use of Withings any more
... not all platform deliver all measures - but (hopefully) all are providing "weight in kg" as a minimum data

General Download Dialog for Body Measures
... allowing to select the source and the daterange for which data is downloaded (e.g. only the new data since last available measure)
... Support existing Withings Download
... Support new Today's Plan as data source (which is able to receive measures from other sits - e.g. Garmin Connect)
... Support CSV files as data source

Store Body Measures Data in one fix file under /activities (not in /cache like Withings) (so that e.g. backup works like before).

What's open:

... CSV File Import (Info Message on missing feature)
... Test of "old" Withings Download API (since I can't do this)
2017-03-18 13:42:36 +01:00
Mark Liversedge
24703a1546 Hi-DPI Support - Pushbuttons and Combos
.. the padding around pushbuttons and combo boxes is not scaled
   for hidpi displays, so we fix up with a global style sheet
   in main.cpp

.. it is only applied in hi-dpi for Windows and Linux.
2017-03-13 17:00:16 +00:00
Mark Liversedge
81e9e23aa1 Hi-DPI Support - Toolbar and Sidebar
.. not perfect, but to support this correctly the code will
   need to change and affect normal usage.

.. lets get it to a reasonable place, since all the mainwindow
   chrome will get replaced in v4.0 anyway

.. but might revisit the toolbar pushbutton icon size !
2017-03-12 20:04:19 +00:00
Mark Liversedge
ee586bd97a Hi-DPI Support - Stop MainWindow resetting font
.. MainWindow::ConfigChanged() was setting the application wide
   font back to the configured defaults.

.. this was fine, until we decided to override the config when
   running on hi-dpi displays, in which case it breaks things

.. we need to fixup the configuration dialog to stop users from
   setting font sizes and instead set them programmatically for
   hi-dpi and non-dpi displays

.. for now we just disable the reset in MainWindow - which means
   most widgetry now honours the default font (until it is changed
   in config, then you need to restart).
2017-03-12 18:53:59 +00:00
Mark Liversedge
785c8a6164 Hi-DPI Support - Startup
.. choose cyclist dialog
.. load progress
2017-03-12 18:10:30 +00:00
Mark Liversedge
e53b5279fb Hi-DPI support - set ratio and default font
.. Start of support for hi-dpi displays; only relevant if you
   are running on a hi-dpi display and have not chosen to set
   any 'auto' scaling.

.. it just sets a dialog box ratio (which is unused at this
   point) and sets the default font to something reasonable for
   the display size.

.. next steps are to check impact across Linux, Windows and
   MacOS hi-dpi displays and then work through and correct code
   that works with dialog boxes and sets widget sizes.

.. this will be a bit of a slog, but worth it for crisper
   rendering on those expensive 4k panels
2017-03-12 14:54:53 +00:00
Joern
c2bfddf6f5 Windows Crash Handler - small changes
... add copyright notice to file
... store .dbg and .log in Athlete Directory (if known) and in installation directory only as default
... unify handling of "win32-msvc*" specific qmake commands in src.pro
2017-02-25 18:28:37 +01:00
Leif Warland
b9207d9e1a Fix QT < 5.4 build and QT < 5.0
Both SixCycle and TodaysPlan uses QByteArray::toStdString
(introduced in Qt 5.4), while in QJsonParseError (introduced in Qt
5.0) is used in TodaysPlanWorkoutDownload.
2017-02-21 12:20:43 +01:00
Joern
17f3a1576c CloudDB - Chart Curation/User Editing
... fix misleading text that only charts of the current view are editable, while in this modes all charts are editable.
2017-02-19 18:11:46 +01:00
Joern
ea4aacfe08 TodaysPlan - Download of Workouts
... allow download of future scheduled Workouts from TodaysPlan
2017-02-18 16:39:32 +01:00
Joern
3a9ea67752 QtWebEngine Cache in User Directory
... simplify code & remove redundant code based on proposal from Claus Assmann (thanks)
2017-02-13 18:15:36 +01:00
Joern
33bbad4e01 QtWebEngine Cache on Windows
... Default directory for the WebEngine Profile and Cache is /AppData/Local/<AppName which is the same GC uses as Default for Athletes
    Changing the location for QtWebEngine needs to be done for EVERY QWebPage. Until the use of QtWebEngine is limited to a few locations
    the easier way is to filter out the Directories created by QtWebEngine (assuming that no-one will call their athletes either "cache" or "QtWebEngine".
... This is only done if build with QtWebEngine and for Windows (on other OS Qt uses a better location for cache data, not a user location).
2017-02-12 18:35:46 +01:00
Joern
97bc7e3502 CloudDB - Version & Telemetry
... improve Telemetry Dialog
... add more data to Telemetry Storage / including user counter
... do not show any network errors / lack of connection
... call all CloudDB functions asynchronously without blocking UI
... use an installer specific UUID as identifier - not IP address (as this is to volatile)
2017-01-21 12:51:49 +01:00
Mark Liversedge
542c26e47c Sixcycle Fixes
.. SixCycle should be spelt as Sixcycle, this has
   been fixed across the user visible strings

.. Upload of PWX works, but not TCX, so switching
   to using PWX for now.
2017-01-16 10:25:33 +00:00
Mark Liversedge
c6dcbbe87e SixCycle Integration - Part 3 of 4
.. Query filestore now added.

.. You can query and upload using the API, but at present no files are
   being accepted (we send as TCX uncompressed).

.. Part 4 will include download then we can pass over to SixCycle for
   them to test and fixup.

.. note that SixCycle uses enddate (!?!) for their activity and not
   start time this requires a bit of gymnastics to match in syncdialog
   there are some pending fixups required for syncdialog download
   because of this.
2017-01-15 15:45:29 +00:00
Mark Liversedge
917d49290c Parking SixCycle Integration
.. partial update for readdir, but the API isn't working as
   described. Parking development whilst it is resolved.
2017-01-15 12:02:47 +00:00
Mark Liversedge
94bedcd3f4 SixCycle Integration - Part 1 of 4
.. added SixCycle FileStore implementation

.. in this part the authentication mechanism is complete and extracts
   both the session token and session userid for subsequent requests.

.. follow up commits will need to implement readdir, writeFile readFile.
2017-01-14 10:39:21 +00:00
arunh
ef20eee33c #2292 - Toolbar height is optimised 2017-01-11 21:00:07 +00:00
grauser
3a719f14de Add a Today's Plan sync dialog (1/2)
Upload OK but Download not working
2017-01-10 23:32:41 +01:00
Joern
d8dd9e7274 CloudDB - deactivate Telemetry
... temporarily de-activate Telemetry collection
2017-01-09 17:20:26 +01:00
Mark Liversedge
39ef343b6f Merge pull request #2286 from Joern-R/CDB1
CloudDB - new features
2017-01-08 18:43:27 +00:00
Joern
caf4a521c3 CloudDB - add Version/Update Information
... check for new Versions of GoldenCheetah
... skip checks (on user decision) for new versions already presented
2017-01-08 19:03:28 +01:00
Mark Liversedge
f3d68a5831 Fix Linux menu bar on mainwindow colors
.. they need to match appearance settings.
2017-01-07 11:47:05 +00:00
Mark Liversedge
a74c2f9c38 Deprecate TrainingPeaks
.. from December 7th 2016 read access (for downloading
   from TrainingPeaks) has been revoked, even for paid
   up members.

.. write access (upload) is not revoked.

.. This is essentially anti-competitive behaviour and
   returns TrainingPeaks and their products, once again
   to that of a 'closed' product.

.. We will no longer support their service since we
   cannot and will not promote such behaviours now
   or ever.

.. We are now considering the best way to purge all
   other references to their trademarks and remove
   any indication that their products are endorsed.
2016-11-27 12:10:57 +00:00
Mark Liversedge
ea548944bf Splash screen size
.. on hdpi the fonts get squished by spacing
2016-11-20 15:50:08 +00:00
Mark Liversedge
6271d51257 Fixup to enable build on QT 5.8 and Xcode 8.1
.. remove all custom widgets and prepare for next commit that
   replaces use of QTKit with AV Foundation on MacOS
2016-11-20 14:52:34 +00:00
Joern
5cacf7478b Add "Save all modified activities" feature
... re-using the existing functions recognizing modified activities
... allowing to save all, without remembering to save one-by-one or
    leaving GC to make sure that all was saved
2016-10-06 16:24:22 +02:00
Mark Liversedge
bd696dbaea Options to Preferences regardless of language
.. when translating "Options" they are no longer put into
   the main menu on OSX.

.. we now explicitly set the menu type to ensure this
   happens regardless of the text.
2016-09-24 11:01:27 +01:00
Mark Liversedge
0f54b65d3c Add Upload/Download chart to View Menu
.. in MainWindow
2016-05-30 18:31:46 +01:00