Commit Graph

11 Commits

Author SHA1 Message Date
Mark Liversedge
80ba487153 Fix SEGV configChanged after athlete closed
.. the views were not being deleted, so the global context connection
   to configChanged signal was still called, but the athlete and
   context were long gone - so SEGV (!)

.. the reason this didn't get triggered in earlier releases is due to
   the fact the event was disconnected when the athlete context was
   deleted.
2020-08-14 13:43:41 +01:00
Mark Liversedge
1d9f570ed8 Introduce a Global Context
.. GlobalContext::context() provides a global context that is not
   tied to an athlete or MainWindow.

.. At present it just offers signals for config changes but will
   likely see more context move across as the application preferences
   and athlete configuration are separated as we enhance support
   for multiple athletes.
2020-08-11 22:16:13 +01:00
Mark Liversedge
11092bf436 Athlete View 1 of 3
.. introducing the athlete view

.. at startup the first athlete is loaded as normal, but once the
   mainwindow is open the athletes are managed from the athlete view

.. athlete ride cache restore happen in background (via a thread) to
   enable the GUI to remain responsive whilst it takes place (since
   for most non-trivial cases it can take 30 seconds or more).

.. multiple mainwindows has been deprecated and whilst each open
   athlete is selected via a tab, this will change to a combobox
   in later commits.

.. the tiles in the athlete view do very little apart from show the
   avatar and progress/load status when an athlete is being loaded.

.. future commits will introduce more detail and actions for the
   athlete tile and deprecate the athlete tab bar for a combo on
   the toolbar (amongst other things).
2020-07-29 21:38:38 +01:00
Mark Liversedge
c850a532f6 Remember sidebar setting
.. show/hide sidebar setting is reinstated on restart, is specific to
   each view and now the menu check stays in sync with user selection.

.. another old glitch thats taken a while to get resolved !
2020-07-14 22:41:38 +01:00
Ale Martinez
be43cde4e1 Set min-height for Scrollbar handle in RideNavigator
When there are lots of activities the handle becomes too small to be useful,
so min-height is set to the same value as width to avoid this.
Fixes #2756
2019-09-23 14:35:43 -03:00
Mark Liversedge
49cd05eb48 Hi-DPI Support - Compare Pane
.. can't quite sort the color button and checkbox sizing in the
   table view, might be a QT bug.
2017-03-12 20:45:55 +00:00
Mark Liversedge
a574ee2163 Hi-DPI Support - Scrollbars
.. css style sheets.
2017-03-12 18:27:22 +00:00
Mark Liversedge
369316948c Overview vertical scrollbar
.. reflects changes as they are made and can be
   used to scroll the view.

.. we manage this ourselves instead of letting the
   view manage it as we also want to diable it.

.. when a scrollbar is disabled it now makes the
   slider invisible.
2017-02-04 14:02:45 +00:00
Joern
c635e8eeed UI Nit - Compare Pane Action not marked in View menu
... when ComparePane is opened by drag&drop event menu item "Show Compare Pane" was not marked active
2016-10-04 15:18:07 +02:00
Mark Liversedge
2b4b9ceb3a Windows Fix Scrollbar Style
.. add-page/sub-page were not styled correctly (!!)
2016-04-29 09:52:43 +01:00
Mark Liversedge
4b5201c4c5 Restructure source directory
Introducing a directory structure to make it a bit less
daunting for new developers and perhaps even old hands.

The main folders all start with an upper character, so src
files are now located in;

* Core - Core data structures
* Gui - Main GUI elements
* Metrics - Models and Metrics
* FileIO - Device and File I/O
* Charts - All the chart types
* Cloud - Working with Web Resources
* Train - Anything Train View specific
* ANT - Our ANT+ Stack
* Resources - Images, Translations, Web etc

Apologies to anyone who needs to merge across this update.
2016-02-25 14:51:53 +00:00