Commit Graph

335 Commits

Author SHA1 Message Date
Mark Liversedge
ace5a45822 Drag n Drop on Splash Train Vew
.. because we didn't maintain the currentWindow when
showing blankstate pages the drag and drop functionality
didn't work.

This is kinda key when you have no videos and workouts, its
the simplest way of providing the files needed.
2013-01-20 23:01:40 +00:00
Mark Liversedge
0479a1aa0d remove WFAPI hack code in mainwindow
.. accidentally committed earlier
2013-01-20 19:40:40 +00:00
Mark Liversedge
4a42337fa2 Kickr Skeleton Code
Added Skeleton code for device discovery, config
and runtime. Now need to develop the WFApi class
to support each function.
2013-01-20 19:11:16 +00:00
Mark Liversedge
b8e8101f79 BlankState basics completed
.. now closes train view blankstate when device added
and workouts have been imported.

.. and made the home and diary views have same buttons
as the analysis view. That may change in later releases
when we have planning functions.
2013-01-12 23:28:59 +00:00
Mark Liversedge
b7502b80bd Clear blankstate screen if conditions change
The diary, home and analysis blank state screens will
now close if rides are added.

Still need to make the train view blank state screen
close when devices and workouts are added.
2013-01-12 21:52:38 +00:00
Mark Liversedge
4a05287406 Let user close blank state
The user can close the blank state screen and
can also click a checkbox to ensure it is not
shown again for this athlete.
2013-01-12 13:01:37 +00:00
Mark Liversedge
5afdab9b84 Fix delete intervals
If multiple intervals are selected then the delete interval
menu item should delete all the ones that are highlighted.

Fixes #442
2013-01-11 15:19:47 +00:00
Mark Liversedge
3d60c9e4a5 Fix conflict with Qwtplot3d
The struct Appearance conflicts with a class
in the QWT3D namespace. So renamed it. Fixes
a compile time error.
2013-01-08 19:02:15 +00:00
Mark Liversedge
8bf4b18a1b UI Nits: Sensible defaults for screen/font size
Set the default size of fonts and screens based upon the
screen size we're running on.

We may need to think about retrospectively adjusting the
font size for users that have not realised they can change
from the defaults (which may not be valid for their hardware).
2013-01-08 15:03:15 +00:00
Mark Liversedge
3fec144334 No chart menu in blank state 2013-01-07 16:44:24 +00:00
Mark Liversedge
41d27d3059 Blank state for train view
Only show blank state for train view when we have
no devices configured -or- there are no workouts
imported into the library.
2013-01-07 15:32:32 +00:00
Damien
db39db5ea4 Blank state
Add a blank state for analysis window
2013-01-06 22:21:22 +01:00
Mark Liversedge
f32ce83981 UI Nits: Autorepeat on open is wrong
.. it makes the menu flicker.
2012-12-28 19:55:57 +00:00
Mark Liversedge
58b21e1c20 Merge pull request #403 from andybryson/rem_boost
Remove Boost Dependency - The Easy Bits
2012-12-27 09:51:30 -08:00
Andy Bryson
53391f76fc Remove Boost Dependency - The Easy Bits
Replace boost stuff with QT or C++ equivalents
2012-12-27 17:04:36 +00:00
Mark Liversedge
7bcf1d6aab UI Nits: Mac + chart button too wide
.. broken in earlier commits today.
2012-12-26 22:35:35 +00:00
Mark Liversedge
4adb26a8fd UI Nits: Add Chart on Linux/Windows
.. now just a "+" sign like on Mac.
2012-12-26 14:50:20 +00:00
Mark Liversedge
d73017b637 UI Nits: Non-Mac Toolbar
Fix differing icon sizes and click animation fugly. Still
need some professional looking icons to replace the
temporary ones.
2012-12-26 14:36:25 +00:00
Mark Liversedge
edeb7a33fa Merge branch 'master' of github.com:GoldenCheetah/GoldenCheetah 2012-12-24 19:14:38 +00:00
Mark Liversedge
c04066e29f Add Chart on Scope Bar
Put a button on the scope bar to add a chart. This is more
intuitive than the right click menu. The style could be
better but ok for now.

Deprecated the right-click menu option since it is unintuitive
and hidden from the user (i.e. bad UX).
2012-12-24 19:13:12 +00:00
Mark Liversedge
4915d2e21a CP Calculator is really and Estimator
.. and the dialog was a bit ugly too.
2012-12-24 16:23:16 +00:00
Mark Liversedge
a9a6f9ffb8 Further Workout Library Fixups
- Added drag and drop dialog and functionality
- if only 1 video/workout imported it is imported and selected
- if multiple they are imported with a dialog
- now shows any references in the scan function

The use of references to avoid making copies of videos is
a touch complicated -- the workflow could be friendlier.
2012-12-24 15:23:16 +00:00
Mark Liversedge
ba15e1d9f8 Further Workout Library 3 fixups
Now need to write the workout import dialog.
2012-12-24 09:20:56 +00:00
Mark Liversedge
2a149bd454 Workout Library Part 3 fixups
Some fixups to recent update for the workout
library support;

- ergDB download now updates the DB
- mainwindow menu options names more consistent
- sort order in the video and workout list
- hooks for import/drag and drop

Will now write the importer for drag-n-drop and
import workouts menu option.
2012-12-23 17:56:41 +00:00
Mark Liversedge
d2ebedac20 Workout Library Part 1 of 3
Implementing a workout library that keeps
track of media and workouts that can be used
in train view.

This first part implements;
- library.xml to record search paths
- search dialog to find media/workouts

Part 2 and 3 will bring:
- Sqllite libraryDB to store found details
- Update traintool to use libraryDB and display
  icons, duration/distance, IF and TSS in list
- import and drag-n-drop of new media/workouts
2012-12-20 13:30:49 +00:00
Alejandro Martinez
f2342847d7 Enable Diary Translations 2012-12-17 23:41:18 -03:00
Mark Liversedge
c1b772fd5a UI Nit: toolbar selection wrong
When using the view menu to switch between
diary, analysis and home view the tab widget
was not updated.

Fixes #383.
2012-12-16 12:49:51 +00:00
Mark Liversedge
14859d8a51 Context Menu for Devices in Train View
Right click to add/delete a new device on the device list
in the train view sidebar.

It is temporary to bring the train view in line with the rest
of GC, but will then be updated as we remove functionality that
is hidden behind a right click.
2012-12-15 14:07:45 +00:00
Mark Liversedge
1608856032 UI Nits: Manual Ride Dialog fugly
Tidied up and enhanced the manual ride dialog. It now
lets users add Sport, Workout Code and Notes (or leave
them blank if they don't use them).

Also added Average HR, Cad, Watts and Speed as well as
deriving TSS and Work.

If there are no rides in the last 'n' days it falls back
to the default for all rides logged.

It also now writes json format files.
2012-12-13 14:14:25 +00:00
Mark Liversedge
645439e53c UI Nits: Geometry and setUnifiedTitleAndToolBar
The restore / set geometry for the config dialog and mainwindow
was 'adjusted' by setUnifiedTitleAndToolBarOnMac. This meant
that when restoring geometry at startup the window would gradually
decrease in size (by roughly 42 pixels).
2012-12-10 08:51:41 +00: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
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
Mark Liversedge
aff76bfde0 UI Nits: Ride list scrollbar on Mac
Style was all wrong and when rides were filtered
the scrollbar disappeared by the space was left
un painted.
2012-12-04 15:58:27 +00:00
Mark Liversedge
299885d8ce UI Nits: Fix GcBubble on Mac
Painting artefacts caused by setting native window painting
in main.cpp. It was left in accidentally.
2012-12-02 19:36:57 +00:00
Mark Liversedge
cf8d3b4bd8 UI Nits: LTM add chart use a default date range
When adding a chart to the home view no date range is set.
This update ensures that the last selected date range is
used, so when a chart is selected/configured some data
will be shown.
2012-12-02 18:10:26 +00:00
Mark Liversedge
5193deaf61 UI Nits: New athlete splitter sizes
When a new athlete is setup the splitter sizes are not
defaulted, leading to a sidebar that is way too wide.
2012-12-02 16:07:04 +00:00
Mark Liversedge
fc6d300a79 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
676b6ba52b 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
Damien
8eee2ddb25 Choose Metric/Imperial units in New Athlete dialog
fixes #34
2012-11-26 23:35:35 +01:00
Mark Liversedge
2dea77e1ae 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
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
1c2fa048f9 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
Mark Liversedge
749a487915 UI Nits: No menu on list view
The menu drop down can appear on the list view. This is
now disabled via a window property "nomenu".

Also set the new attribute to set native widgets on a Mac.
2012-11-20 19:58:10 +00:00
Mark Liversedge
4b412ef14a UI Polish: Show/Hide Sidebar on ScopeBar for Mac
There is now a little button to show and hide the sidebar
just like in Mac Mail. We now only have to add the add chart
button for the toolbar/scope bar changes to be complete.
2012-11-20 19:14:37 +00:00
Mark Liversedge
9ee2eab311 UI Polish: Move train view controls to scope bar
Now we have a scope bar we can move the train view controls
out of the sidebar.
2012-11-20 17:21:22 +00:00
Mark Liversedge
3f01540bb3 the last commit needed one or two #ifdef Q_OS_MACs 2012-11-20 16:06:55 +00:00
Mark Liversedge
1e346f43b6 UI Polish: Scope Bar for Mac Native
Added a scope bar for native mac. The windows and linux
toolbar is a combined toolbar and scope bar, on a Mac it
looks much more elegant to split the two.

We will need to now add a show/hide sidebar control on the
left of the scopebar (like apple mail), the train view controls
in the centre and the add chart to the far right).
2012-11-20 15:46:31 +00:00
Mark Liversedge
3dbc095eb6 UI Polish: Toolbar spacing reduced
In readiness for a scope bar, the Mac unified title and toolbar height
is too large and needs to reduce. It now has very similar margins as the
Mac Mail toolbar.

The scope bar will make it look less compact when it is introduced.
2012-11-20 12:34:39 +00:00
Mark Liversedge
1cdb5568d3 UI Nits: Goodbye ToolBox
The left sidebar is now a stacked widget and the toolbox
has been consigned to history. We are now ready to add a
left sidebar for the metric "home" view.
2012-11-19 22:15:35 +00:00