Commit Graph

250 Commits

Author SHA1 Message Date
Mark Liversedge
afd1a6ab6c Train view Autoconnect config
.. let the user decide if they want to auto-connect
   devices in train view.
2016-01-31 11:16:01 +00:00
Magnus Gille
08dca02f13 Move Strava secrets to Secrets and make Pages.cpp more robust incase Secrets.h gets picked up along the way in the future. 2016-01-07 01:34:19 -05:00
GRAUSER Damien
0949c6070a Season: Add phases (base, build, peak,...) 1/2 2016-01-05 22:01:10 +01:00
Magnus Gille
ff50dcebba Complete support for new scopes and make readdir() only update the currently read directory. 2016-01-02 23:26:28 -05:00
Magnus Gille
6a69b6c3a8 Make OAuth scope configurable for GoogleDrive. 2016-01-02 20:42:20 -05:00
Jon Escombe
fa7d4a9a95 Merge branch 'master' into remote_control
Conflicts:
	src/ANT.h
	src/ConfigDialog.cpp
	src/ConfigDialog.h
	src/src.pro
2016-01-01 12:46:42 +00:00
Magnus Gille
74ca328196 QT4 bug fix in Pages.h and authoriseGoogle improvement. 2015-12-31 13:21:23 -05:00
Jon Escombe
4453e869b7 Remote control config [2/3]: Config UI
Additions to options page and config file to manage the mappings
between ANT+ remote control codes and native GC actions
2015-12-31 12:39:04 +00:00
Magnus Gille
95bffb30af Add support for syncing to GoogleDrive.
This uses GoogleDrive v2 API.
2015-12-29 02:01:36 -05:00
Mark Liversedge
0f12872e6f User Metrics Part 3 of 4
.. User Metrics now integrated into the factory, ride cache
   and of course rides and intervals. Which means you can define
   a user metric and it will be computed and displayed like any
   of the builtin metrics.

.. lots of technical changes to support this:

   * DataFilter gets a runtime object to support multi-threading
     and uses a context for construction only - item contexts are
     used when evaluating an expression

   * RideMetric factory can now remove user metrics

   * The context in which the user modifies the user metrics will
     notify all other contexts of the change ***

*** NOTE: STRONGLY RECOMMEND THAT YOU DO NOT HAVE MULTIPLE ATHLETES
          OPEN WHEN DEVELOPING NEW METRICS SINCE IT WILL TRIGGER A
          METRIC REFRESH FOR ALL OPEN ATHLETES.
2015-12-18 13:07:56 +00:00
Alejandro Martinez
10306ca3e1 Add support for running power zones (Stryd) part 2
ZonePage, CPPage and SchemePage changes to support separate editing
Zones and Settings to allow for separate GC_USE_CP_FOR_FTP
RideItem and Coggan metrics are running aware por power zones
2015-12-17 18:37:42 -03:00
Alejandro Martinez
149e3a8c2d Add support for running power zones (Stryd) part 1
Zones: parameterize for running
Athlete: create zones for cycling and running
ConfigDialog cleanup: removed unused zones member
2015-12-17 12:11:11 -03:00
Mark Liversedge
e6e25e9fcd User Metric SEGV OSX
.. fixup for Mac.
2015-12-11 19:41:28 +00:00
Mark Liversedge
d7a179907d User Metric Part 2 of 4
.. User metrics can be created, deleted and edited
   in the preferences pane.

.. A new dialog has been created to create user metrics
   and will need to be updated after step 3 of this multi
   part update completes the UserMetric code and integrates
   it into the RideMetric factory.
2015-12-11 14:03:58 +00:00
Mark Liversedge
d0b155c12d Fix FTP/CP view update
.. the CP history table update was not taking into
   account the useCPforFTP selection and mucking up
   the table view.

Fixes #1690
2015-11-22 22:47:57 +00:00
Mark Liversedge
bdb599cc62 On change useFtpForCP trigger metric refresh
.. to recompute the Coggan metrics.
2015-11-18 19:24:41 +00:00
grauser
3111ede203 Coggan: Combobox for "Use CP for FTP" option 2015-11-16 22:41:50 +01:00
Luca Rasina
363678f729 Start of development for the SPH communication tools. Prepared the fields
to insert user credentials, which will be used for login to our APIs
2015-11-09 10:59:56 +01:00
Mark Liversedge
394591c805 Merge pull request #1636 from Joern-R/autobackup2
Autobackup
2015-11-07 20:25:33 +00:00
Joern
96c9d9c6af Autobackup
... additional information what "sequence" means
... fixing https://github.com/GoldenCheetah/GoldenCheetah/issues/1628
2015-11-07 15:10:53 +01:00
Joern
871b18704a Translation DE
... some terminology cleanup
... removing button fixed size (since it's getting to small for localized text)
2015-11-07 14:46:20 +01:00
Alejandro Martinez
ec5b8fd0bb Pace Zones: Update existing range
Fixes #1611
2015-10-29 12:13:04 -03:00
Joern
7e8f5f7a56 TrainMode Enhancements
... store Videosync files in Workout Folder as well / adjust configuration description
... report non-existing Workouts/Videosyncs when scrolling through the treelist (and offer to remove them from the library)
... properly handle "imports" of files from the Workout Directory in case of "overwrite"
... add tr() in multiple places
... unify some of the texts - terminology
2015-10-17 11:35:27 +02:00
Joern
d0209a6033 Video-Sync Directory
... browse does not work (cut&paste error)
2015-10-15 18:22:05 +02:00
Joern
6ae5b9d882 VideoSync
... add Directory to Configuration Page
... set Default similar to Workout Directory in Main

General
... start Directory Browsing on Config Page with the configured directory (if is existing/valid)
2015-10-15 17:03:38 +02:00
Mark Liversedge
63b12ad69d Dropbox Config Headers only QT > 5
.. don't declare slots or member variables for the
   configuration screens if compiling with a version
   of QT < 5.0.
2015-10-13 08:21:26 +01:00
Claus Assmann
936b4aa131 Dropbox Folder NULL in QT4 2015-10-12 20:26:45 +01:00
Mark Liversedge
b198b54cde Tidy Athlete Preferences
.. too many things on one page
.. also deprecated 'bio' since its not used anywhere
2015-10-12 20:23:58 +01:00
Joern
c86cae70f0 AutoBackup/Data Snapshot Feature on close of Athlete Window/Tab
... collects all relevant Files from the Athletes directory subfolders (keeps the folder structure)
    and add them to a .zip file which can be stored in a different folder
... runs automatically when closing an Athlete (window or tab)

... configurable per Athlete
    -- Folder into which the .zip shall be stored
    -- #of times GC shall close without backup before the backup is activated
      (0 == no Auto Backup, every other number "x" means that GC closes
       x-1 times without running the backup and after running, resets
       the counter)
2015-10-12 19:01:31 +02:00
Alejandro Martinez
18ddf5ad11 Fixed Pace Zones Config
Modifications were lost without notification if the user changed sport before saving
2015-10-08 12:12:06 -03:00
Mark Liversedge
e74ecc1f09 DataProcessor 'Auto' runs on import only
.. since, generally, if it has been run once there is no
   value in running it every time you open a ride.

.. it now only runs during import.
2015-10-08 08:46:54 +01:00
Mark Liversedge
6923c69495 Preferences nits
.. layout on athlete About row missed leaving a
   gap between widgets vertically.

.. moved use CP for FTP checkbox to zone config page
   and not on athlete About page.
2015-10-05 20:09:11 +01:00
Mark Liversedge
b40ac62d70 Fix unitChanged(int) signal in preferences
.. needed to be reconnected across pages to ensure the
   weight/height fields et al changed units when the user
   changed metric/imperial preferences.
2015-10-05 10:04:36 +01:00
Mark Liversedge
3b3a337984 Rename NetworkFileStore as LocalFileStore
.. so can use for thumb drives, network mounted drives etc
2015-10-04 20:46:41 +01:00
Joern
debb918315 Add "Shared Network Folder" to as new "File Store" implementation
... use an shared network drive (e.g. mounted via WebDAV) to synchronize activity data
   (similar to Dropbox,...)

Open/TBD:
... where to best put the Preferences for the different FileStores
   (currently add the Network folder configuration on Preferences->Passwords,
    even though no PW is needed - with growing number of FileStores a
    dedicated Preferences Page may be the solution)
... where to put the MainWindow Menu entries if the number of FileStores increases
2015-10-04 18:50:55 +02:00
Joern
3f59c6cf93 Move "Unit" config from "Athlete" to "General" level
... first Athlete opened with new logic determines the general settings
... if configuration  is already migrated (based on one of the previous commits) -
    migration can be forced to happen again by removing the INI files or
    just the preferences pages has to be opened and Saved with the
    unit settings you want
2015-10-01 17:21:34 +02:00
Mark Liversedge
5a5dc65b98 Save Dropbox Folder settings
.. in preferences.
2015-09-30 12:20:22 +01:00
Mark Liversedge
4e17a9970f FileStore File Dialog
.. so you can now choose the directory to sync
   data with. Its a very basic file dialog but
   will allow you to create and choose a folder.

.. Config is now completed with token a folders
   now configurable by the user.

.. I cannot believe we needed to write a pesky file
   chooser dialog in 2015 (!)
2015-09-30 11:33:47 +01:00
Mark Liversedge
3ab4d21a5e FileStore base class and Dropbox implementation
.. first parts of the implementation of a base class
   for working with file stores and the Dropbox
   API.

.. all we actually get in this commit is the abstract
   classes and an implementation of readdir for Dropbox
   along with a config setting which needs to browse
   directories

.. in the next commit we'll add the directory chooser
   dialog which will need to implement a ftw() across the
   associated filestore and present a gui to choose a
   directory to store athlete data in
2015-09-29 19:39:19 +01:00
Mark Liversedge
15f470c3de Dropbox Authorisation
.. let the user authenticate for access to dropbox
   in order to sync data.

.. the sync functions aren't written yet though !
2015-09-28 17:26:55 +01:00
Joern
df90366685 Preferences - Athlete
... move athlete specific settings from General to Athlete Page
2015-09-27 11:55:34 +02:00
Joern
20a15ed647 Segregate General & Athlete Settings on preferences main page 2015-09-26 15:35:36 +02:00
Mark Liversedge
9f4ce89c09 Merge pull request #1566 from Joern-R/ConfigLocal3
Trainingpeaks/Twitter
2015-09-24 21:46:10 +01:00
Joern
bcb671763f Trainingpeaks/Twitter
... remove unused URL entry fields from Preferences and Settings
2015-09-24 20:27:09 +02:00
Joern
d71aa8c0a2 Autoimport - new configuration option(s)
... select only files for import which are created or changed of the last 90/180/360 days
... thus limiting the number of files which are considered for import in the source directory
   (without changing/deleting the source files - and without the need to track indexes,...
    of what has already been imported).
2015-09-24 18:55:00 +02:00
Joern
1a8d683303 Store GC Settings in multiple .INI files instead of system specific (Registry, PLIST,..) format
... change storage format to .INI files (which is QTs cross-system format)
... differentiate between System, Global and Athlete specific settings
... store the Global Settings in the AthleteDirectory (root)
... store the Athlete specific Settings in the Athletes Names subdir /config
... migrate existing Settings from current location into new formats "on-the-fly"
2015-09-19 11:13:17 +02:00
Claus Assmann
791b5115f4 Honour GC_WANT_HTTP in Pages.cpp
.. one was missed.
2015-09-17 18:50:28 +01:00
Mark Liversedge
422d5ad5fc Enable API WebServices when GC is running
.. but disable logging if not running as a server
.. let user define if API services start in preferences
2015-09-17 14:21:21 +01:00
grauser
6925a7fcaf Settings : Add property "Use CP for FTP"
If false add FTP value for a (Power) date range
2015-09-16 23:16:34 +02:00
Nicholas Feng
33016507eb Add new language support: Chinese(Traditional) 2015-09-08 17:27:25 +08:00