Commit Graph

5117 Commits

Author SHA1 Message Date
Mark Liversedge
3a6c1a013f Interval Search SEGV on High Power
.. thanks to Neil Jones for the file
2015-10-11 13:53:17 +01:00
Joern
0175f85320 XML Ridefile Formats exports - error on Windows
... UTF-8 ByteOrderMarks was missing in the exported XML,... files causing problems on Windows e.g. in cyrillic
... BOM header added for PWX, Fitlog, GC and TCX format
... Fixes https://github.com/GoldenCheetah/GoldenCheetah/issues/1547
2015-10-09 13:12:07 +02:00
Alejandro Martinez
fed585f461 Fix Speed from Distance
Optionally smoothed by configurable moving average parameter
Fixes #1568
2015-10-08 20:33:46 -03:00
Alejandro Martinez
26732d4cf2 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
925b9ab91b 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
68ac5acc0a Dont delete intervals in RideItem::close 2015-10-06 21:08:42 +01:00
Mark Liversedge
a77a22cdaf Lower case for include 2015-10-06 19:38:43 +01:00
Mark Liversedge
b3e9ec5a8f FileStore .json.zip
.. when syncing to a FileStore the data is saved as
   a zip file that can be processed by winzip, and
   contains a single file, the activity as a json.
2015-10-06 18:06:08 +01:00
Mark Liversedge
261f093b9e Fix LocalFileStore readFile
.. it wasn't returning the remotename so readFile
   always failed with "expected uncompressed activity".
2015-10-06 14:31:27 +01:00
Mark Liversedge
50dcb8edb1 Fix Memory Exhaustion on Mass Import/Sync
.. RideCache::addRide() deletes the prior ride, which is rather meaningless
   if you are just importing a ride, but when syncing large numbers
   of rides will stop memory being exhausted.

.. similarly in the FileStoreSyncDialog we now free up the memory
   used to read the downloaded files before moving on to the next.
2015-10-06 13:06:34 +01:00
Mark Liversedge
a1a9fd96fc Added QZipReader/QZipWriter
.. so we can read/write zip files that can be opened
   outside of GC. For example, when working with a file
   store we want to write .json.zip that could be read
   using winzip et al
2015-10-06 08:12:26 +01:00
Mark Liversedge
43a955d3b6 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
a70531e53b LocalFileStore nits
.. implement root(), createFolder() and don't
   return . and .. in readdir.
2015-10-05 19:20:42 +01:00
Joern
0e673a99eb Local File Store
... wrong status text (".") missing
2015-10-05 13:42:50 +02:00
Mark Liversedge
847c7edaa8 Add "Share" main menu
.. to consolidate all the functions for sharing data and
   syncing across Calendar, Dropbox, Strava etc etc etc
2015-10-05 11:05:07 +01:00
Mark Liversedge
1f567a7d30 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
3b5fde4158 Local Store Name
.. name() now returns "Local Store <folder>"
2015-10-04 21:05:06 +01:00
Mark Liversedge
861ae20fe3 Rename NetworkFileStore as LocalFileStore
.. so can use for thumb drives, network mounted drives etc
2015-10-04 20:46:41 +01:00
Joern
22abb5301a 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
c8ff9338fa Drobox / FileStore
... translation enablement
2015-10-04 14:48:28 +02:00
Alejandro Martinez
f23ce8bbb8 Fixed typo in SML import and added test file
This one is a ride with power contributed by forum user Roland
2015-10-03 21:38:03 -03:00
grauser
7ce3752208 Interval: Correct start, stop edit 2015-10-03 22:35:02 +02:00
Mark Liversedge
760dd4fc69 .DS_Store when deleting athlete on OS X
.. Mac Finder creates .DS_Store in subdirectories when you
   browse in them to store customisation etc. So we need to
   wipe them away when deleting the athlete folders.
2015-10-03 12:34:37 +01:00
Mark Liversedge
0ac168188e Delete Athlete
.. as an option when choosing an athlete
.. will recursively delete the directory

Fixes #756
2015-10-03 10:27:18 +01:00
Mark Liversedge
9bb5db3f90 Fix SEGV on NewCyclistDialog
.. referencing "ftp" widget that isn't being used.
2015-10-03 08:32:15 +01:00
Joern
0c2b7712e9 DropboxSupport - mintor text corrections
... Use different Shorcut in Menu (Crtl+B already in use)
... Exchange text reference to TP by generic approach
2015-10-02 19:24:48 +02:00
Mark Liversedge
341f383a67 Dropbox Sync Tool
.. sync with a dropbox folder

   This is based upon the TPDownloadDialog but refactored for
   use with a FileStore (in this case Dropbox). It should be
   extensible to use with any kind of FileStore object.
2015-10-02 16:51:50 +01:00
Mark Liversedge
746c4b9d1f Merge pull request #1577 from Joern-R/UnitConfig
Move "Unit" config from "Athlete" to "General" level
2015-10-02 14:42:38 +01:00
Mark Liversedge
c6451c9146 Only use QWebEngine on MAC OS X
.. since it solves issues there, but is not supported
   on mingw32/64 yet and is not needed on Linux yet.
2015-10-01 18:55:45 +01:00
grauser
62889a6460 OAuthDialog: Use QWebEngine for Qt5 2015-10-01 18:33:06 +02:00
Joern
3146153baf 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
3136772937 FileStoreDialog File basename
.. don't need suffix, its in type. Makes for a simpler
   listing, again more familiar and easier to scan.
2015-10-01 07:22:53 +01:00
Mark Liversedge
e98aa975bd FileStoreDialog Icons
.. makes it look more familiar and easier to identify
   folders when scanning the list.
2015-10-01 07:15:30 +01:00
Mark Liversedge
3cc5bd81d2 Dropbox ignore deleted items
.. when reading the directory metadata
2015-09-30 22:20:19 +01:00
Mark Liversedge
1c3229a321 Merge pull request #1574 from amtriathlon/master
Initialize additional parameters for Extended and Veloclinic models
2015-09-30 22:07:51 +01:00
Mark Liversedge
5ce4e44148 Fixup FileStoreDialog nits
.. select root folders
.. show files for context
2015-09-30 21:54:53 +01:00
Mark Liversedge
001b034cbe Fix Async Upload to Dropbox
.. Q_OBJECT macro needed mostly.
2015-09-30 21:34:29 +01:00
Mark Liversedge
7de9ec6f2d Upload to Dropbox
.. basic functions working to upload a single ride
   to a dropbox file store.

.. this is a safety commit before looking to resolve
   issues with async updates.

   NOTE: the upload completes but the dialog needs to
         be cancelled manually -- this is a bug and
         will be resolved in the next update.
2015-09-30 19:45:15 +01:00
Alejandro Martinez
5174e8bc2a Initialize additional parameters for Extended and Veloclinic models
Fixes #1573
2015-09-30 12:53:53 -03:00
Mark Liversedge
1289159e74 Save Dropbox Folder settings
.. in preferences.
2015-09-30 12:20:22 +01:00
Mark Liversedge
13b5a2067f 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
57116d596d 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
581fa38eeb Fix Dropbox compile error on SECRET/ID
.. if the GC_DROPBOX_CLIENT_ID and SECRET
   are not defined in gcconfig.pri then the
   OAuthDialog.cpp needs to still compile !
2015-09-29 09:22:39 +01:00
Mark Liversedge
13f774a504 Update gcconfig.pri.in
.. with instructions for adding Dropbox API
   client ID and secret
2015-09-28 22:55:13 +01:00
grauser
846e6c9dbe Bin2RideFile: Change the scale for the altitude values from dataversion 9 2015-09-28 23:40:03 +02:00
Mark Liversedge
1d4d21d261 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
a651562e70 Preferences - Athlete
... move athlete specific settings from General to Athlete Page
2015-09-27 11:55:34 +02:00
Joern
fc27d2a86b Segregate General & Athlete Settings on preferences main page 2015-09-26 15:35:36 +02:00
Joern
adf98f50ab GearRatio - Wrong data when smoothing
...Fixes Issue#1490
2015-09-26 10:11:37 +02:00
Joern
fb0c405da8 ConfigLocal - Fix Migration on Mac
... current settings are now migrated to .INI based system settings on MacOS
2015-09-25 18:20:48 +02:00