Commit Graph

133 Commits

Author SHA1 Message Date
Alejandro Martinez
d29481c196 Fixed never translate charts in HomeWindow
Local variable defaultUsed was initialized to false and never updated
2015-08-06 14:50:06 -03:00
Mark Liversedge
b93f3f8c7b Only translate chart titles once
.. not every time they are loaded.
2015-08-06 14:52:39 +01:00
Mark Liversedge
5fc0a96195 Select 'Library' chart automagically
.. when a preset is selected in the trend view sidebar
   we automatically switch to the library chart to
   show it.
2015-07-28 13:42:17 +01:00
Mark Liversedge
25a58eb9c4 Tidy up LTM Chart configuration
.. move use sidebar settings to basic page and
   disable the other pages if its using sidebar
   settings

.. when working in the sidebar, hide the basic
   page since it is not shared

.. make the add chart dialog bigger if the screen
   is large enough, since it needs to show a chart
   and the config pane which has grown a little
   over time.
2015-07-27 17:16:13 +01:00
Mark Liversedge
fe73fcb2ff Fixup Chart Preset Workflow and SEGV/Bug
.. remove all the editing/import/export functions
   from the chart settings now they have their own
   sidebar.

.. this also removes some of the problems with conflicts
   and bugs in the code e.g. setting the first chart name
   to "" by accident in the editingFinished() method (since
   that is no longer supported !)
2015-07-27 13:08:17 +01:00
Mark Liversedge
121f2e9deb Fix Edit Chart SEGV !
.. setting date ranges before curves
2015-07-26 10:18:04 +01:00
Mark Liversedge
220b2f9f1a Trend Chart Sidebar Menu - Part 1 of 2
.. added add, edit, delete and reset

.. still need to add import and export as well
   as the right-click context menu.
2015-07-25 12:58:19 +01:00
Mark Liversedge
f60c87416e View reset layout from goldencheetah.org/defaults
.. when resetting the layouts we first go try the default
   layouts from the goldencheetah website

   http://www.goldencheetah.org/defaults/<release>/xxx-layout.xml

.. this means we can update the default setup independently of
   the release binary; make tweaks etc

.. the same concept will shortly be introduced for resetting the
   standard charts.xml presets for the trend view
2015-07-24 21:18:15 +01:00
Alejandro Martinez
c36af2094b Updated Metrics translation in LTM
- Code cleanup, removing deprecated code and refactoring
- Metrics translation is now done in a method for LTMSettings
- User defined metric name (uname) is translated if it matches english name
- User defined units (uunit) is only translated if it matches saved units
2015-07-19 14:37:13 -03:00
Mark Liversedge
72e2ddc0ef LTM translation only if not English
.. saves time, since translation not required

.. also avoids messing up the uunits when charts are customised
   to have common y-axis e.g. Stress Ae and An Stress and PMC
   using Stress instead of ATL, CTL, TSB etc
2015-07-17 21:24:24 +01:00
Alejandro Martinez
e4498e6006 Translation fixes for Diary
Navigator title and days of the week in mini-calendar
2015-07-15 20:10:51 -03:00
Alejandro Martinez
da17240900 Updated Spanish Translation 2015-07-09 23:58:11 -03:00
Alejandro Martinez
a01cdffaa7 Added some charts for multisport usage
Activities: CV
Trends: CV and Speed histogram
Library: PMC (TriScore), Time in Pace Zones, Run and Swim Pace
2015-07-05 16:27:43 -03:00
Joern
5df7503904 Report- File "Open for Write" errors
... for all config files, which need to be written, show error Popup, if
file cannot be openend in "Write" mode
2015-02-21 19:03:23 +01:00
Joern
1d11a6b7ca Error handling - if XML file is "write-protected"
... report error when any of the "*-layout.xml" files cannot be written
to (e.g. due to write protection
2015-02-21 11:50:55 +01:00
Mark Liversedge
8f4d318199 Tile mode honour color config changes
.. as background didn't change on color config
2015-01-23 19:22:54 +00:00
Mark Liversedge
c934e8b4d0 Aesthetic Tweaks
.. tile mode highlights on mouse over for a more
   fluid feel, and better feedback

.. can customise the trend view charts background

.. fixed a SEGV on apply preset in chart setup

.. this is part of a set of updates to update the
   standard setup to be more complete so the user
   can pretty much run off a standard config.
2015-01-23 12:06:03 +00:00
Mark Liversedge
5692d362d0 ConfigChanged Part 1 of 3
.. introduce concept of configChanged(what) to
   pass details of what config has been changed

.. fixed zones changes to re-read after write
   to correct the save twice to get changes to
   zones bug.

.. next parts need to spot changes (part 2) and
   then action appropriately (part 3)
2014-12-29 13:41:50 +00:00
Mark Liversedge
78a058880a No more WANT_RIDECACHE
.. its not optional !
2014-12-26 19:24:36 +00:00
Mark Liversedge
282ecdef63 RideCache Background Refresh Framework
.. subtle, thin progress bar on tabview to notify
   when background updates are in progress

.. background updating code created but does not
   perform a refresh yet, just sleeps for 0.2s

.. to enable 'visibility' of the code use WANT_RIDECACHE
   to the defines in gcconfig.pri
2014-12-05 20:08:32 +00:00
Claus Assmann
35eb416bd2 Fix comment spelling errors
.. lots of them !
2014-11-24 15:37:56 +00:00
Joern
230f028037 AthleteDirectory - Folder Structure Part 2 of 2 + Always create .JSON
... create folder structure for existing and new athletes
... upgrade existing athlete to new structure when opening / incl.
logging and error handling
... convert any "Downloaded" file to .JSON directly - store source file
in /downloads
... convert any "Imported" file to .JSON directly - store source file in
/imports
2014-11-02 19:55:01 +01:00
Joern
f1447d2664 AthleteDirectory - Folder Structure Part 1
... introduce new "home" Folder structure object representing the
previous flat-folder
... adjust relevant QDir home - access to use the sub-folder method of
the new object

Note: the new structure is not yet active ! - everything is written to
the main folder still

To Do:
... add upgrade procedure for existing folder content to merge to the
new folders
2014-10-25 19:08:27 +02:00
Mark Liversedge
1cb483654e remove global QApplication *application
.. it is available from the macro qApp anyway.
2014-08-07 22:25:03 +01:00
Joern
0993739d9c Translation Enablement
... some last tr()s
... translation for new "Chart Titles"
... translation for new "Default Charts"
2014-07-21 21:09:07 +02:00
Joern
4f8e7c82a5 Translate ":/-Layout.XML" metrics charts
... second part: 2nd part ("-Layout.XML") translation
... "Mapping Table generation" provided as a new LTMTool routine (to
avoid duplicate code)
... mapping to HomeWindow::restoreState(bool useDefault) for the LTM
Window type charts added
... metricUnit considered in getting the mapping texts for "unit"
2014-07-21 17:56:18 +02:00
Mark Liversedge
515f9f77fc Set the title when adding a chart
Fixes #967
2014-07-10 20:13:45 +01:00
Mark Liversedge
ba78583e12 Remove Orphaned Widget in HomeWindow !
.. wow, this has been there for at least 3 or 4 years and
   never bitten us.

.. for some strange reason it bites when you have a 3d plot
   in one of the layouts.
2014-06-22 09:31:26 +01:00
Joern
fd2d9a7875 Translation Enablement
... and nothing else
2014-06-13 20:45:04 +02:00
Mark Liversedge
bb1e8e3917 Reinstate show() for new charts in tile mode
.. was removed due to a crash on beta versions of QT5
   but appears to work fine with QT 5.3.0, so reinstated!

Fixes #910
2014-06-10 15:58:50 +01:00
Mark Liversedge
29aa19fac2 Fix ScrollBar in HomeWindow
.. for tile mode.
2014-05-27 19:15:09 +01:00
Mark Liversedge
7bbca327bc Fix SEGV on empty HomeWindow
.. if there are no charts homewindow crashes. oops.
2014-05-11 18:33:12 +01:00
Mark Liversedge
e2432adc04 Dialog deleteLater() om HomeWindow
.. trying to id the Mac crash.
2014-04-25 21:21:37 +01:00
Mark Liversedge
ccfaaf3b97 Fix CP chart reveal controls on QT5
.. and also remove the yucky labels on the chart in readiness
   for a CP model widget to overlay and move about the chart.
2014-03-21 12:38:11 +00:00
Mark Liversedge
aa9cc72aa3 Less event filtering
.. too many widgets are filtering events needlessly.
2014-03-21 11:57:51 +00:00
Mark Liversedge
3dae0a2fe3 Less event processing in HomeWindow
.. was trapping too many events, even when not visible

.. also went back to multishot timer for unreveal but
   stop it when the unreveal even happens.
2014-03-21 07:15:45 +00:00
Mark Liversedge
14031a0063 Fix SEGV on add chart with Qt5
.. and also selects the first chart on the chartbar at startup.
2014-03-12 13:28:01 +00:00
Mark Liversedge
134b976d5f More Charts honouring Colors Preferences
.. Further updates to the charts to honour the background
   color preferences:

        * Google Maps
        * Ride Summary
        * Scatter
        * Details (Metadata)
        * LTM Data View
        * Editor

.. still a few left to do and not entirely happy with how
   things look on the editor but we can fix this up over
   time.
2014-03-11 17:58:41 +00:00
Mark Liversedge
4b387d6bd6 Update ChartBar button text
.. when editing it in the chart settings
2014-03-08 20:47:39 +00:00
Mark Liversedge
358a3511f1 Replace Tabbar with a Scopebar
.. Only tested on Linux

.. Now going to check on Mac and Qt5

.. Also does not yet support re-ordering tabs
   nor scrolling when there are too many to show.
   This will come in future updates.
2014-03-08 11:36:05 +00:00
Mark Liversedge
c36386d8ca Reverse last commit re spacing
.. not because it was a bad idea, it is a great idea.

.. we need to replace the tabbar with a scopebar and
   customise it for the view menu and support scrolling
   left and right.

.. will sort this weekend
2014-03-07 20:46:19 +00:00
Mark Liversedge
3d992cf886 Moving to less border space
.. The UI spacing is a bit 'old hat' and not really in line
   with modern UI's -- so reducing the amount of unneeded
   spacing between widgets.

.. There is more to come on this, but for now this means there
   is a little more screen estate for the charts.
2014-03-07 13:23:58 +00:00
Mark Liversedge
87ba542197 What's in a name ?
The 4 views have been shown to be confusing -- it is not clear
to new users what their purpose is, and hence how or why they
are different.

So in an effort to reduce the confusion I've renamed a few
things to be much more explicit and specific.

.. We embrace the fact we are a cycling program and use the term
   RIDES not ACTIVITIES for all files

.. HOME is confusing, renamed to TRENDS

.. the ANALYSIS view name is confusing, its all about ANALYSIS
   to renamed to RIDES

There will no doubt be areas that are not renamed properly we
can fix those when the arise.
2014-01-12 13:06:00 +00:00
Mark Liversedge
bd37801225 DateRange Compare Pane
.. now can drag and drop any date range onto the
   home view compare pane to compatre different
   seasons, and even across athletes.

.. we setup the metrics and measures in the context
   so the charts don't have to, but we still need to
   reference the source context for bests and ridefilecache
   data

NOTE: We need a mechanism for 'locking' source tabs/athletes
      when they are part of a compare to avoid crashing when
      a context is deleted whilst we are comparing

NOTE: We till need a way to remove entries from the compare
      pane, possibly call it when an athlete is closed too
      (see note above).
2013-12-29 13:00:46 +00:00
Mark Liversedge
aa8605e8d5 QT5 -- 1 of 3
Porting the codebase to QT 5 (5.2) to get the
latest bug fixes, performance and improved platform
support.

This first part is to fixup the codebase to compile
on Qt 5, but some aspects have been broken (video).

The second part is to migrate from Qwt 6.0.1 to the
latest Qwt for multiaxis support.

The third part will be to fixup any platform specific
issues or issues identified at runtime.
2013-12-09 09:57:13 +00:00
Mark Liversedge
2a47d36ff1 Auto show compare on drag interval
.. but its broken, needs fixing.
2013-11-30 22:19:38 +00:00
Mark Liversedge
9473e28200 MainWindow Refactor Part 4 of 5
Split the views in MainWindow into separate classes;

* Tab is a collection of the 4 main views

* TabView is a base class for all of the 4 view types

* {Analysis,Train,Diary,Home}View are all derived from
  TabView and deal with specifics of those views (e.g.
  Diary/Home worry about date ranges).

We should be ready to move to tabbed athletes soon.

There are a few nits left for this part of the refactor
that will need to be resolved in some fixups over the
next few days;

* tile mode segment selector has wrong segment selected
  when the view is in tile mode.

* Minimum height/width of MainWindow is large for some
  reason

* the Train view controls (play, ffwd etc) have nowhere
  to go at present -- need to fix that !!!

* When you resize the mainwindow width the sidebars expand
  and should remain a fixed width

* not sure if it will build on Windows or Mac!
2013-07-27 21:41:03 +01:00
Mark Liversedge
2f056ea938 More MainWindow tidy
.. reduce the number of public members
2013-07-19 15:28:29 +01:00
Mark Liversedge
59fd0db564 Move specialFields from MainWindow to Context
.. and tidy up a few unneccessary references to mainWindow
2013-07-14 11:51:34 +01:00
Mark Liversedge
05f1d577db Refactor MainWindow Part 2 of 5
Decoupled classes from MainWindow to reference Context
and Athlete (and introduced a couple of new headers).

We no longer pass around a MainWindow pointer to children
but pass a context instead.

There are still a few pieces left in MainWindow that need
to move to a better place;
    * Setting/clearing filter selection
    * Working with Intervals
    * Adding/Deleting Rides
    * Save on Exit

As mentioned previously there are lots of other parts to
this refactor left to do;
    * break MainWindow Gui elements into Toolbar and Views

    * migrate from RideItem and Ridelist to ActivityCollection
      and Activity classes that are not tied into gui elements.

    * introduce Application Context and AthleteCollection
2013-07-11 14:02:02 +01:00