Merge branch 'master' of github.com:GoldenCheetah/GoldenCheetah
UI Nits: LTMSidebar performance

Remove the double update from HomeWindow and only
update in CP and Histogram when visible.

Still need to:

1. get CP/Histogram to remember what the last update
was to not bother unless something has changed.

2. get RideFileCache to have a cache of recent aggregations.
   Since (a) the same ranges will be called over and over by
   different charts when a season is selected and (b) there
   are only likely to be 20-30 seasons defined in total, so
   lets cache them instead of recalculating every time.
Choose Metric/Imperial units in New Athlete dialog

fixes #34
UI Nits: LTMSidebar performance

Don't refresh CP, LTM or Histogram plots when dateRange property
is set, if the dateRange was previously plotted anyway. Will set
to stale if a ride is added or deleted too.

This means the replot of tabs is not performed when simply switching
between tabs. But will if the date range does change or a ride is
added or deleted meaning the aggregate needs to be re-calculated.

There is still one more performance improvement required;

1. get RideFileCache to have a cache of recent aggregations.
   Since (a) the same ranges will be called over and over by
   different charts when a season is selected and (b) there
   are only likely to be 20-30 seasons defined in total, so
   lets cache them instead of recalculating every time.
Issue #357 - Y axis is unclear
Fix SEGV on GcBubble
UI Nits: LTM Sidebar (Part 2 of 3)

The last of a series of recent patches to address performance
degradation from the introduction of the LTMSiebar. This last
patch introduces a CPX aggregates cache to re-use aggregated
CPX data (e.g. for plotting a specific season or date range).

The cache is set to only hold 25 caches, which should be enough
for most folks list of seasons. But won't get unwieldy if they
scroll around in the diary view.

The following will be introduced in the last patch of
this series:

1. Introduce 'events' within a season and plot them on the
   LTM chart -- a form of 'annotation' but also the beginning
   of planned events in the future too.

2. Implement click functionality on LTM charts but decide if
   we use click to annotate or to define a new date range or
   both?
Correct crash for Joule 2.0 files without temperature for first seconds
Correct Zeo data download : only one message box after new values
Merge pull request #360 from andybryson/charts

Issue #357 - Y axis is unclear
Fix split ride SEGV on bad recording interval

When reading a PWX file we try to guess the recording interval
by looking at the first two samples. This can lead to silly
values when there are recording errors.

This patch sanity checks the recording interval and sets it to
1s recording if the derived value is unusual.
Concise metric names in sidebars
Histogram nointerval curve on season chart
Update translation (ts) files
Add Events to Seasons.xml

But bear in mind the season editor in preferences
needs to be updated to support the additional elements.
Season preferences don't lose events

If you maintained your seasons in the tools
or preferences pane then all your events would
be lost.
Mainain Events in LTM Sidebar

Add the ability to create and maintain events in
the LTMSidebar. This is a follow up to adding
support for Events in seasons.xml.

The last step is now to add support for annotating
charts to show the events for the date range selected
and possibly for the seasons within that date range.
Merge branch 'master' of github.com:/GoldenCheetah/GoldenCheetah
I Nits: LTM Sidebar (Part 3 of 3)

Events are now maintainable in the sidebar and this
update now plots them on the LTM plot.

Events and season markers are shown so long as they
fall within the chosen date range.
Events on LTM work for different group by

The last patch to show events on the LTM chart only
worked when grouping by weeks. This is because the
groupby x dimension is baselined to the starting date;
i.e. groups always start from 0.

This patch fixes displaying events when grouping by
days, months or years.