Commit Graph

101 Commits

Author SHA1 Message Date
Mark Liversedge
bc4a6d978e Introduce AnalysisSidebar widget
Moving the code intertwined into MainWindow for
the analysis view sidebar; activity list, intervals
and calendar into a new AnalysisSidebar class.

                WARNING!

This is a work in progress checkpoint commit
as the sidebar menus and context menus have
not yet been migrated out -- this will be done
in the next commit or two.
2013-07-15 22:24:31 +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
Mark Liversedge
22175cf55c Refactor Part 1 Mac Fixups
Fixing a few issues from Part 1 of the MainWindow refactor
for building on a Mac.  Also retired twitter completely.
2013-07-07 16:22:42 +01:00
Mark Liversedge
e407237ac0 MainWindow Refactor Part 1 of 5
Breaking the MainWindow 'god object' into
separate classes for Athlete and Context.

Further updates will need to;
- 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

Once these are done we will be in a position to decouple
most classes from mainwindow and also introduce tabbed
athletes.
2013-07-07 15:50:28 +01:00
Mark Liversedge
401957acf9 Deprecate Strava Support
No API v3 access.

Fixes #656.
2013-07-06 00:12:34 +01:00
Gareth Coco
0ccd57c240 Appearence fixes
Allows Popup Text color to be set on certain OS.
Sets current day in calendar to a color you can see the date with.

Fixes #552
2013-04-06 19:31:00 -04:00
Alejandro Martinez
c54da50cd4 Enable translation of welcome text in BlankState.cpp and Wheelsize in Pages.cpp 2013-04-01 13:12:38 -03:00
Mark Liversedge
6865dd4bfd Code Cleanup: More compile time errors/warnings
.. warnings from Xcode 4.6 (still some remaining)
.. and deprecated Quarqd code (we have native ANT now)
.. and MultiWindow deprecated (it isn't finished)
2013-02-12 22:40:08 +00:00
Mark Liversedge
48832ff962 AddDeviceWizard cannot be modal
.. because it blocks the event loop that hosts the WF API
class. And we definitely want it to stay on the main event
loop along with the native WF classes and delegates.
2013-01-21 13:59:31 +00:00
Alejandro Martinez
d41ec90fe4 Enable fieldChooser and field types translation 2012-12-30 22:25:35 -03:00
Alejandro Martinez
14a2fe5bd5 Options Toolbar & Keywords Translations 2012-12-29 16:08:03 -03:00
Mark Liversedge
98c16369e5 UI Nits: Color prefs
Column sizing on appearance pref pane was
too small. Simple fix.
2012-12-25 15:50:08 +00:00
Mark Liversedge
a6fb7a7f86 UI Nits: QMactyle QToolButtons are ugly
I really hate the way QMacStyle changes the style of
a button based upon its size. Its really annoying, especially
since you cannot override it.

Updated last couple of commits to have no effect on Mac where
they make some of the buttons in the preferences pane look ugly.
2012-12-25 11:34:16 +00:00
Mark Liversedge
b6635af3ad UI Nits: Pref Pane Fields page
Column widths set to avoid horizontal
scrollbar from appearing.
2012-12-25 10:42:51 +00:00
Mark Liversedge
894a88a879 UI Nits: Prefs pane cosmetics
Made the up,down,left,right,add,del buttons
smaller and used icons where appropriate.
2012-12-25 10:15:22 +00:00
Mark Liversedge
a6de662ed7 Trimmed PMC/Manual Preferences
There were a bunch of preferences that really
weren't needed; STS/LTS starting values were not
being used (and logic flawed anyway).

The mode/days to estimate bikescore were only used
in one place (manual ride dialog) so moved there
instead.

Fixes #396.
2012-12-20 10:14:41 +00:00
Alejandro Martinez
acad69ef58 Enable 3d chart translations 2012-12-08 20:26:44 -03:00
Alejandro Martinez
b90c59b5ca Enable Colors translations
Includes loading translations for system dialogs and
using default units according to system settings
2012-12-08 14:22:08 -03:00
Alejandro Martinez
f770d6ea09 Enable DataProcessor Translation
Also includes download instructions translation
2012-12-08 12:37:01 -03:00
Mark Liversedge
1370abb560 Hysteresis label too long. 2012-12-07 22:26:50 +00:00
Eric Murray
8ab7c90feb User Configurable Hysteresis
Still defaults to the original value of 3 meters. Because
the metrics need to be recalculated when it changes we also
add the hysteresis factor to the zone fingerprint CRC.
2012-12-07 21:56:11 +00:00
Mark Liversedge
5e415675ab UI Nits: GcBubble border color 2012-12-07 18:59:14 +00:00
Mark Liversedge
67ddf09ad4 UI Nits: Config Dialog Cosmetics 2012-12-07 18:24:53 +00:00
Mark Liversedge
47edb7ac29 Tidy up Preferences Dialog
Big refactor of the code since it was really messy
and also moved to a Mac style config dialog with
a bit of Mac UI polish.

Moved many of the pages around to make it more user
friendly.

Removed the fortius and proxy code altogether
and removed the measures config since we will need to
look at this in v3.1 and don't want to have to add
backward compatibility support for users that change it.

Fixes #358.
2012-12-07 16:32:58 +00:00
Alejandro Martinez
c0372290d7 Enable Metadata translation
This patch keeps the original english name of SpecialFields and SpecialTabs
as internalName, to preserve compatibility, while it uses a translated
displayName for user interfase in other languages.
2012-12-04 22:00:59 -03:00
Mark Liversedge
1403dff4e7 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
Alejandro Martinez
6f49bcea16 Add es and pt translation files set lang default according to system default 2012-11-29 23:34:58 +01:00
Mark Liversedge
0f5441b268 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
Damien
8eee2ddb25 Choose Metric/Imperial units in New Athlete dialog
fixes #34
2012-11-26 23:35:35 +01:00
Mark Liversedge
c75ec41e4b 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
9bf3e69beb User configure Field to set colors from
The user can now select a metadata text field to use when
setting colors from keywords.

Fixes #32.
2012-11-23 22:01:41 +00:00
Damien
335b991e04 Add myzeo data download Add ZQ and sleep time metrics 2012-11-18 16:13:15 +00:00
Mark Liversedge
33d2358277 Revert "UI Nits: Reinstate drop shadow option"
This reverts commit 3c57f01674.

It just doesn't work. Painting and UI responses are lost
and the price is not worth paying for some eye candy.
2012-11-13 16:35:46 +00:00
Mark Liversedge
3c57f01674 UI Nits: Reinstate drop shadow option
But NOT for win32 and ONLY on the sidebar and tabwidget (for
performance reasons). Since most users prefer the tabbed look
anyway this should be ok.

Performance of the graphicseffect has improved remarkably in
the 2 years since we tried it before. Worth experimenting with
since it adds a bit of polish to the look and feel.

Users turn it on and off in options, it is off by default.
2012-11-13 15:22:38 +00:00
Mark Liversedge
d33c337b8f Search/Filter using Lucene
Searching and filtering the ride list using a search box.
This is implemented using a new optional dependency on
CLucene.

Fixes #627.
2012-10-21 15:28:26 +01:00
Rainer Clasen
bb10ed9207 added upload to trainingstagebuch.org 2012-05-04 16:08:38 +02:00
Damien
745d255220 Add Upload to RideWithGPS.com
new file:   src/RideWithGPSDialog.cpp
	new file:   src/RideWithGPSDialog.h

	modified:   src/MainWindow.cpp
	modified:   src/MainWindow.h
	modified:   src/Pages.cpp
	modified:   src/Pages.h
	modified:   src/Settings.h
	modified:   src/src.pro

Fixes #677
2012-04-04 14:17:50 -04:00
Rainer Clasen
a452ccce1f fix: refuse writing bad power zone settings
power zone settings dialog allowed new entries with CP=0. This was written
to power.zones, but the parser refused to read these files, afterwards.

This patch rejects new zones with CP=0.
2012-03-22 11:05:21 +01:00
Mark Liversedge
43b1c61d6b Add Device Wizard
Introduce a wizard for adding realtime devices since it
is prone to user error, is relatively complicated and is
something most users will only ever do once or twice.

There are several logical updates within this patch:

First; Fix intermittent ANT+ not working
* LibUsb     - check bufRemaining is > 0 not non-zero
* LibUsb     - Always reset the USB stick on open
* ANT.cpp    - Support > 4 channels on USB2
* ANTChannel -  Do not use pairing, but always
*               unassign, assign and set channel id.

Second; Fix device discovery
* Find and discover support in realtime controllers
* Extend Serial.cpp to cover more Serial devices
* Support for 4 or 8 ANT channels for USB1/USB2

Third; Introduce Add Device Wizard with
* General and Specific wizard pages for each device type
* Device pairing with telemetry display
* fixed compile time warnings

Fourth; Update Device Config Page
* use wizard to add new device
* remove edit fields, replaced by wizard
* remove pair, firmware buttons replaced by wizard

Fifth; Deprecate/Remove Device Types
* Null Device - used by developers only
* Quarqd client - replaced by Native ANT+
* GC Server - not implemented yet

I have also introduced a device specific wheel size
and flags for controlling the default selection and
sources for sensor data when in multi-device mode. These
are not yet supported in the code.

Fixes #611.
Fixes #497.
2012-01-21 20:28:33 +00:00
Mark Liversedge
059190f32f Season Config - don't delete!
The seasons class emits signals to let
everyone know if the season config changes
at runtime.

The recent patch to add configuration of
seasons deleted and re-instantiated the
seasons member in MainWindow which breaks
updating across the code.

This patch fixes that.
2012-01-14 17:41:42 +00:00
Mark Liversedge
2c95b70696 Add Wheelsize Config
So we can calculate speed from wheelRPM when working
with ANT+ speed sensors in realtime.

The config screen is still ugly as hell, but there is
another bug raised to resolve that.

Fixes #529.
2012-01-14 15:38:01 +00:00
Mark Liversedge
9bfb08ff71 Configure Seasons in ConfigDialog
Allow the user to add,delete and reorder
seasons in the config dialog.

Although the user could create and manipulate
seasons / date ranges in the LTM chart, this
provides a more coherent place to do the same
but also adds the ability to re-order seasons.

Fixes #399.
2012-01-14 11:52:01 +00:00
Mark Liversedge
a5ce87b32d Cosmetic fixup to Device config. 2012-01-05 21:30:50 +00:00
Mark Liversedge
30f1113ac5 Add Multi-device support in Train View
It is now possible to select multiple devices to
workout with.

To enable multi-device support a new setting in
tools->options (preferences on Mac) allows the
user to enable multi-device selections (this just
enables the user to select more than one device
in the side bar).

When a workout is started the user can select which
devices will supply which data.

This enables ANT+ devices to override information
provided by Computrainers or Fortius devices.

Fixes #578.
2012-01-05 20:47:04 +00:00
Mark Liversedge
6c242dd64f BioBike Support
Add support for dual ANT+ power devices (in this case using
dual track SRM cranks). The two power devices are assumed to
represent power and alternative power.

The following changes have been made for this support:
* ANT+ device profile support multiple power devices
* Allow editing ANT+ device profile on Mac/Linux (it
  is already available on Windows)
* When a second ANT Channel is assigned to power it is
  set as alternative, and updates alternative watts
* RealtimeData now supports Watts and AltWatts
* AltWatts dial and associated color settings
* LRBalance dial to show difference between Watts and AltWatts
* Realtime plot plots watts and altWatts

Fixes #572.
2011-12-30 18:06:31 +00:00
Mark Liversedge
24be9ec813 Add Virtual Power for 1UP USA bike trainer
Fixes #560.
2011-12-21 10:42:53 +00:00
Mark Liversedge
67983b81c3 Tacx Fortius Support
Initial support for Tacx Fortius devices.

Note this requires libusb support to be present and will
work on Linux, Mac and Windows.

The handlebar buttons up/down will increase/decrease the
load/intensity in a similar fashion to the +/- keys on
the Computrainer controller.

The cancel button will stop a workout and the enter key
is used to mark a lap.

Slope and Ergo modes are supported, but we do not set the
brake at all if the speed is below 10kph, this is to
ensure it does not get burnt out when users 'grind'.

SPECIAL NOTE:

   The Fortius handlebar controller is a Ez-Usb device
   and requires firmware to be loaded when it is connected.
   Since this is copyrighted by Tacx BV we do not distribute
   it, instead, when the user sets up a Fortius device they
   must also provide the file. Full instructions on how this
   should be done are given when configuring the device.

Additionally, for Linux users udev rules should be added to
ensure that the USB devices are accessible to non-root users.

Fixes #538.
2011-12-12 17:26:59 +00:00
Justin Knotzke
2125e55507 Upload to Strava
A menu option to upload ride files to the Strava website.
Original code from Justin Knotzke ported to v3 by
Damien Grauser.

If the ride has already been uploaded the upload menu
option is disabled, once uploaded a tag is set in the ride
with the strava id.

Fixes #519.
2011-11-26 08:59:30 +00:00
Mark Liversedge
8e9a93f50d Add virtual power for LeMond Revolution
The LeMond revolution trainer has been analysed in
some depth by Tom Anhalt and as a happy by-product
idenitfied the power/speed curve.

Since Darren Hague had already added the ability to
approximate power from Speed when training on a turbo
this patch extends that to include the LeMond device.

All the analysis Tom performed can be read over on
wattagetraining.com here:
http://wattagetraining.com/forum/viewtopic.php?t=335

Fixes #498.
2011-10-26 21:49:12 +01:00