Commit Graph

1931 Commits

Author SHA1 Message Date
gcoco
80b3a524fd Fix git URL 2012-12-01 20:57:19 -05:00
Damien
a5e606c3fe Return cached value 2012-12-02 01:00:14 +01:00
Damien
c10692e3c4 The getWeight() method should find the last value of weight in measures if the last measure has no weight value 2012-12-02 00:53:05 +01:00
Mark Liversedge
0a5885fb7e Fix Weight stored in KGs
Recent commit 8eee2ddb got some of the logic
the wrong way round for converting weight to KGs
before saving (and when switching between metric
and imperial units).

We always store weight in KGs.
2012-12-01 23:27:57 +00:00
Damien
79ebc0a82d Implements WattsKg in histogram
fixes #362
2012-12-01 23:52:50 +01:00
Mark Liversedge
cd2145504a Fix SEGV on cancel remove chart
Recent update to use deleteLater() when removing
a chart in the event loop /always/ deletes the chart
regardless of the user selection, this is because it
is deleted in the wrong place.

It was deleted when the user selected the close menu
option (in GoldenCheetah.cpp) rather than after the
user had confirmed (in HomeWindow.cpp).
2012-12-01 22:19:46 +00:00
Mark Liversedge
b5300181ce UI Nits: Fix fugly LTM settings dialog
Slightly better. Still room for improvement in the
workflow for working with the preset charts.
2012-12-01 22:02:59 +00:00
Mark Liversedge
6e5ff36bdf UI Nits: LTM popup fugly
Small improvement to LTM popup. Need a better
close icon though.
2012-12-01 19:25:49 +00:00
Damien
1c389fab58 Change series id for histograms after ids were changed by mistake in commit #b116d3a 2012-12-01 19:35:04 +01:00
Mark Liversedge
6009cdbdbd UI Nits: RideNavigator honout font metrics
The row height in the ride list is fixed. When the user
selects a different font the row height should adjust
accordingly.
2012-12-01 17:34:52 +00:00
Mark Liversedge
4bfc223c0d Fix SEGV on ESC in chart settings
If you press ESC on the chart settings (not add chart) dialog
then the dialog is closed and deleted, causing a SEGV. This
patch overrides reject() to ensure the dialog is just hidden.
2012-12-01 13:12:33 +00:00
Mark Liversedge
cf01e23428 Merge pull request #361 from andybryson/morecharts
Y axis is still unclear
2012-11-30 13:18:24 -08:00
Mark Liversedge
b5ef544b29 UI Nits: Disable GcBubble on Mac
The painting artefacts are a problem only on a Mac. Suspect
it is a QT bug. Disabling the bubble on a Mac for this reason.
Its starting to grate anyway, perhaps there is a better way
of doing this.
2012-11-30 19:14:27 +00:00
Mark Liversedge
432783a1be UI Nits: Fix bubble vanish!
The popup bubble appears and vanuishes on the
diary view. This patch fixes that. Still need
to work out why it goes invisbible on Mac OSX.
2012-11-30 18:25:22 +00:00
Andy Bryson
d254c41a15 361 - Y axis is still unclear 2012-11-30 12:50:55 +00:00
Mark Liversedge
ef5a899f68 UI Nits: GcBubble positioning
RideNavigator set the GCBubble to the wrong position on
screen which can be confusing when you have a narrow list
of rides. The bubble appeared to be displaying for a totally
different ride.
2012-11-30 10:27:23 +00:00
Damien
9767a442ed Update translation (ts) files 2012-11-30 07:47:04 +01:00
Alejandro Martinez
930857afab Add es and pt translation files set lang default according to system default 2012-11-29 23:34:58 +01:00
Mark Liversedge
e369b660d6 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.
2012-11-29 17:38:47 +00:00
Mark Liversedge
2f31bd1068 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.
2012-11-29 16:24:15 +00:00
Mark Liversedge
23665f986d Merge branch 'master' of github.com:/GoldenCheetah/GoldenCheetah 2012-11-29 14:52:05 +00:00
Mark Liversedge
900da0be05 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.
2012-11-29 14:49:21 +00:00
Mark Liversedge
92b18469ee Season preferences don't lose events
If you maintained your seasons in the tools
or preferences pane then all your events would
be lost.
2012-11-29 10:22:24 +00:00
Mark Liversedge
8812617409 Add Events to Seasons.xml
But bear in mind the season editor in preferences
needs to be updated to support the additional elements.
2012-11-29 09:37:39 +00:00
Damien
d6919bf2a8 Update translation (ts) files 2012-11-28 22:21:49 +01:00
Mark Liversedge
46557d0b59 Histogram nointerval curve on season chart 2012-11-28 19:53:47 +00:00
Mark Liversedge
dd9f4ed126 Concise metric names in sidebars 2012-11-28 17:11:24 +00:00
Mark Liversedge
3050753a8e 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.
2012-11-28 16:08:22 +00:00
Mark Liversedge
4286123ff2 Merge pull request #360 from andybryson/charts
Issue #357 - Y axis is unclear
2012-11-27 13:12:45 -08:00
Damien
1c0b8901d5 Correct Zeo data download : only one message box after new values 2012-11-27 22:08:57 +01:00
Damien
df884d77f0 Correct crash for Joule 2.0 files without temperature for first seconds 2012-11-27 22:08:57 +01:00
Mark Liversedge
1eba467976 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?
2012-11-27 21:03:19 +00:00
Mark Liversedge
268738dd96 Fix SEGV on GcBubble 2012-11-27 18:53:11 +00:00
Andy Bryson
01cbecdbc1 Issue #357 - Y axis is unclear 2012-11-27 18:40:11 +00:00
Mark Liversedge
15f44becd5 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.
2012-11-27 13:41:36 +00:00
Damien
aedc39e423 Choose Metric/Imperial units in New Athlete dialog
fixes #34
2012-11-26 23:35:35 +01:00
Mark Liversedge
09c5e1e59e 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.
2012-11-26 22:11:46 +00:00
Mark Liversedge
a9f4038705 Merge branch 'master' of github.com:GoldenCheetah/GoldenCheetah 2012-11-26 20:30:21 +00:00
Mark Liversedge
d74bc19ac8 UI Nits: LTM Sidebar (Part 1 of 3)
We now have a date range selector in the sidebar.  The
sidebar has a date range selector and summary. It is
used to set the date range for the charts in the view.

As a result we can now add summary charts to the home view
and LTM/CP/Histogram charts to the Diary view. The weekly
summary chart is now deprecated.

Creating seasons has also been disabled on metric charts. We
will need to decide what clicking on an LTM chart should do,
and look at whether we want to keep the popup bubble or
adjust it.

There are some unfortunate performance degradations as a result
of this patch when selecting date ranges and switching between
charts in tab view. This needs to be addressed as a priority.

Follow up patches, part 2 and 3 will need to;
1. address performance degradations & cache results
2. introduce events in sidebar and as annotations on charts
3. implement click functionality on LTM charts (annotate vs
  define a new season/range)

NOTE: existing HOME, ANALYSIS and DIARY chart setups will need
      to be rebuilt since chart ids and properties have changed
      in this patch -- do not raise a bug until you have deleted
      and re-added the offending chart.
2012-11-26 20:20:36 +00:00
Gareth Coco
7d520b18ab HTML formatting 2012-11-26 09:53:41 -05:00
Gareth Coco
1e21a6d636 Website updates for broken links. 2012-11-26 09:50:50 -05:00
Mark Liversedge
4bdd953bad Fix SEGV on close chart in HomeWindow
Needed to delete outside of the event loop, fortunately this
can be done with QObject::deleteLater().
2012-11-24 20:12:26 +00:00
Mark Liversedge
a628ea1c44 Set Application Proxy from Operating System
Uses the QT proxy query and application wide proxy setting
to allow users behind a corporate firewall to use network
functions (maps, TP.com, ergDB etc).

Fixes #27.
2012-11-24 10:03:39 +00:00
Mark Liversedge
84efeef7df UI Nits: Don't delete last column
Don't let the user delete the last column on the
ride navigator. If they do that then there is no
way of adding a column back!
2012-11-23 23:20:03 +00:00
Mark Liversedge
be2c0c6516 UI Nits: Ride navigator contents margins
When adjusting column widths take into account the
contents margins. Also shows sort indicator on the
columns when not on a mac (this was changed as part
of the recent Mac native polish commits).
2012-11-23 22:27:46 +00:00
Mark Liversedge
5b33b34b5a Merge branch 'master' of github.com:GoldenCheetah/GoldenCheetah 2012-11-23 22:07:19 +00:00
Damien
30808e4b52 Another change on date for Joule 1.0 2012-11-23 22:05:37 +00:00
Damien
4e437ef5d3 Modify date reader for Joule 1.0 2012-11-23 22:05:37 +00:00
Damien
4a7d4800a3 Modify getUnitVersion for Joule 1.0 2012-11-23 22:05:37 +00:00
Mark Liversedge
6e5e22b907 UI Nits: Non-Mac searchbox fix
The mac searchbox using a NSSearchField works a
treat on Mac, but the code accidentally removed the
searchbox on Linux and Windows.

This patch reinstates it.
2012-11-23 22:05:37 +00:00