Commit Graph

3065 Commits

Author SHA1 Message Date
Mark Liversedge
5abf8776f1 QT5 -- Add Qwt 6.1-multiaxes 2013-12-09 10:02:47 +00:00
Mark Liversedge
03d3afdf53 QT5 -- remove old qwt 2013-12-09 10:00:50 +00:00
Mark Liversedge
82baf90131 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
2cadf4a374 Fix up CP markers
.. to use the right colors.
2013-12-07 20:01:08 +00:00
Mark Liversedge
d7b1829bfa Plot Background and CP chart
If you change the plot background to black then the
CP curve is always in black too so becomes invisible.

Added a customisable color for the CP curve and fixed
up a few redraw issues in CP and Ride plot when you
change the colors.

Still need to fixup the other charts, but will do over
time. I suspect almost noone changes the plot colors from
the default values.
2013-12-07 19:42:51 +00:00
Mark Liversedge
a26a035ced Introduce SB Lowpoint
Let the user define the lowpoint for stress balance -- this is
so we can highlight or alert when they go below.

From a post-hoc perspective it is useful for identifying where
they went too low, but also for planning it helps to stop
planning to fail.

Will update the LTM chart to highlight it alongside SB metrics.
2013-12-07 10:28:41 +00:00
Mark Liversedge
1282bb5b8a Windowless border on metric refresh popup 2013-12-07 09:43:48 +00:00
Mark Liversedge
63032d9688 Fix find intervals no gps/speed bug
.. flawed logic mean't that findBests didn't work
   when distance is not present via speed or gps.
2013-12-06 22:50:33 +00:00
Mark Liversedge
e3d7a873f2 Cache StressCalculator in LTMPlot
A bit of a compromise since really we should move the
stress calculators to the Athlete class and reuse when
no filtering is applied.

This code fix just means the SC is not recalculated for
each of the individual curves (LTS, STS etc) and pretty
much halves (or better) the time taken to refresh the
LTMPlot.

For those with very few rides (<500) this isn't much of
an issue, but for some with lots (2000 or more) it can
be quite tedious.
2013-12-06 19:32:41 +00:00
Mark Liversedge
7915feea60 Bests offset error
.. when plotting 1s best aka Max Power, the code was using
   the wrong offset (out by one) and returning 0w.
2013-12-06 17:07:17 +00:00
Mark Liversedge
974fa777fd Prefs pane sizing to font size
.. to stop it being too small when you select a larger font.
2013-12-06 13:01:29 +00:00
Mark Liversedge
00360afb10 Fix sidebar sizing bugs
.. part of the refactor of mainwindow saw the sidebar
   sizes independently set and therefore using different
   settings.

.. we now use the old setting if first time through, or
   if first time run for athlete set a sensible default.
2013-12-05 18:23:53 +00:00
Mark Liversedge
e1f7bb78ac Fix LTM title filter color bug
.. the title of an LTM chart doesn't change when you
   select or deselect a filter in the sidebar.
2013-12-05 17:22:53 +00:00
Mark Liversedge
b19ed09a9e Fix LC_LOCALE on Xcode 5
by including "locale.h".

Fixes #734
2013-12-05 16:26:29 +00:00
Mark Liversedge
0a215562d5 Add Filter Sidebar
To allow selection of filters aka Named Searches when
plotting charts.

Fixes #732
2013-12-05 14:30:42 +00:00
Mark Liversedge
4b5ed2188c Merge branch 'master' of github.com:GoldenCheetah/GoldenCheetah 2013-12-03 16:59:35 +01:00
Mark Liversedge
fd3e4dfec1 Show reference lines on CP chart
.. but only when showing a 'power' data series
   such as NP, xPower, aPower etc.
2013-12-03 16:58:50 +01:00
Mark Liversedge
88c8eeba5b Merge pull request #731 from dresco/ANT
Don't reset ANT channel settings on search timeout
2013-12-02 22:08:37 -08:00
Jon Escombe
6c21c87a42 Don't reset ANT channel settings on search timeout
Wiping out these settings prevents a successful reconnection
of the device if it comes back into range

Fixes #514
2013-12-02 23:27:01 +00:00
Damien
adca720d62 FitRideFile: Correction for last Garmin firmware updates
In last Garmin firmware there is some (unknow) fields with multiples values

Fixes #724
2013-12-02 18:07:18 +01:00
Mark Liversedge
c700d7b3d9 Toolbar/Menu update when Compare Pane Show/Hide
.. if the compare pane is automatically shown or hidden
   due to the user dragging and dropping the menu and toolbar
   got out of sync with the status of the widget.
2013-12-02 17:48:48 +01:00
Mark Liversedge
6d791f84a8 Compare Pane Mechanics
.. compare pane now appears and disappears on both
   the analysis view and home view

.. it also is notified of drag/drop events and can
   accept the objects dropped

.. it is now time to write the widget for collecting
   and managing compare sets
2013-12-01 10:28:27 +00:00
Mark Liversedge
a683008109 Set GC_DEBUG for debug builds
.. when building a debug build of GC with CONFIG += debug
   then we define a macros GC_DEBUG.

.. main no longer redirects to goldencheetah.log if you have
   GC_DEBUG set, so developers will continue to see debug
   messages on the terminal output (for mac/linux only).

.. we could use the GC_DEBUG macros to allow debug messages
   to be switched on / off in the code in future
2013-12-01 09:40:32 +00:00
Mark Liversedge
f3450e92b7 Fix auto show/hide compare pane on drag/drop
.. now the compare pane will appear and disapear
   when the user drags and interval / season into
   the view.

By fixing the way we handle QDragLeaveEvents in the
code in TabView.h ViewSplitter.
2013-12-01 00:19:59 +01:00
Mark Liversedge
d668f39237 Auto show compare on drag interval
.. but its broken, needs fixing.
2013-11-30 22:19:38 +00:00
Mark Liversedge
d16b86ba68 Compare Show Animation
.. need to fix hide timeout animation but do that
   later tonight.
2013-11-29 07:20:35 +01:00
Mark Liversedge
c10b9c89c1 Compare Pane 'hpos' property
Introduce an hpos property on TabView::mainSplitter so we can use
an animation to make the compare pane slide up and down when
arriving and leaving.

Will add the animation shortly, just pushing to save updates.
2013-11-29 06:40:44 +01:00
Mark Liversedge
12822fa1c0 Fix events shown on LTM plots
Recent update to change the way the LTM configuration dialog
worked accidentally lost the events setting.

Show events is not being stored in the LTMsettings 'datastream'
but as a separate chart property -- but *is* stored internally in
the LTMSettings class.

it was being lost when the datastream is appled. This fix makes
sure the value is remembered and reapplied after the settings are
applied.
2013-11-28 22:54:37 +01:00
Mark Liversedge
a5ead14e94 Remove qDebug() from TabView.h 2013-11-28 20:34:27 +00:00
Mark Liversedge
b5ac7d0068 Basic Compare Pane Hide/Show
.. just committing before adding animation and the compare pane content.
2013-11-28 21:07:43 +01:00
Mark Liversedge
dab923ec9e Forgot message in compare pane mockup 2013-11-27 19:45:46 +01:00
Mark Liversedge
b0dafea5c7 Compare Pane Mockup
.. balsamiq mockup and png export
2013-11-27 19:42:01 +01:00
Mark Liversedge
e526fd4f94 Add GPS/Altitude alignment to Compare spec
.. we should make it possible to display interval
   data aligned via the altitude or gps data as well
   as via time/distance. This really only applies to
   the ride plot.
2013-11-26 11:56:35 +01:00
Mark Liversedge
a8cbfc2f15 Update Compare Document
.. to reflect feedback from Damien re compare sets

.. Also changed the compare pane to be view specific and
   shared across all charts in the view.
2013-11-25 09:02:45 +00:00
Mark Liversedge
d12b3fc6ec Compare button icon 2013-11-24 14:20:42 +00:00
Mark Liversedge
4d5b8d9cba Compare toolbar/menu option
Just added a toolbar button and menu to bring up the
compare pane, before adding it to the tab and view
classes.
2013-11-24 14:18:21 +00:00
Mark Liversedge
5c1e2b3809 Plot CP model for derived power series
.. not sure of the validity of applying the model
   to derived data series like xPower and aPower
   but it may provide some insight.
2013-11-23 21:08:50 +00:00
Mark Liversedge
4efb597f26 Fix CP defaults bug
.. set to 3600 not 360 (!)

.. updated intervals causing warnings when using values
   that were half baked. Now delays recalc() till all
   the parameter intervals are set.
2013-11-22 22:30:47 +00:00
Mark Liversedge
e7e6bdf968 Better CP model defaults
Improved defaults for CP model to derive CP
and W' from bests data.
2013-11-22 21:59:29 +00:00
Mark Liversedge
61a6116fa5 Fencepost error on CP intervals
.. caused the meanmax curve for an interval to be
   recomputed every time even though we'd gone to all
   those lengths to cache them.
2013-11-21 18:28:01 +00:00
Mark Liversedge
dd8b8537b4 Date Format on Athlete Bests
.. didn't follow the same standard as the rest of
   GC, minor cosmetic fixup.
2013-11-21 17:59:50 +00:00
Mark Liversedge
34841bad1d Move uml docs to the design folder 2013-11-21 10:07:22 +00:00
Mark Liversedge
87d4b8a9aa Adding Compare design outline
Jusst jotted down thoughts about implementing compare in v3.1
and added to the documentation folder. Will try and get some
mockups sorted too in the near future.
2013-11-21 09:41:00 +00:00
Mark Liversedge
8a74223726 Fix WIN32 build issue in main.cpp
.. nostderr() not supported on Windows.
2013-11-20 14:13:26 +00:00
Mark Liversedge
d3a3a76ccc Fix stderr redirect platform issues
.. don't use toLatin1() and fopen, use QFile and full QStrings
   so we can support directory names with unicode characters.

.. add unistd.h for dup() and close()
2013-11-20 14:08:28 +00:00
Mark Liversedge
d548cccf49 Better Command Line Processing
Now accepts --debug to disable redirection of stderr to
goldencheetah.log, which is handy for developers.

Also refined the way the command line is processed to enable
new arguments to be added in the future.
2013-11-20 13:26:25 +00:00
Mark Liversedge
ad84abf291 Redirect stderr to goldencheetah.log
In the home directory of GC (platform specific or configured
by the user). This is only relevant for OpenBSD, Linux and Mac.

Windows does not support applications that are GUI and console.
2013-11-20 12:48:09 +00:00
Mark Liversedge
bea2cfb5f2 Fix CP chart defaults
The CP chart model defaults are set before the spin box step
min and max values are set, which means that the value is always
reset to 100.

Since the vast majority of users will not be aware of the settings
and/or will never think of setting them to their own 'preferences'
it is vital the default is applied correctly.
2013-11-20 08:08:55 +00:00
Damien
7dd8524e5c CP Model: let the user define whole interval durations 2013-11-20 08:17:49 +01:00
Damien
0642932aae FitRideFile: - Add Left/Right TorqueEff and Left/Rigth PedalSmooth
- Open Truncated file
2013-11-19 22:38:18 +01:00