Commit Graph

486 Commits

Author SHA1 Message Date
Mark Liversedge
c77da956af Fixup initial geometry and positioning
.. some regressions in there (setting only saved on move)

.. will check the positioning and geometry are sensible regardless
   of whether they come from appsettings or defaults.
2014-06-13 16:15:35 +01:00
Joern
db14c65969 Windows - Menu bar - Mac / Style problem
... in Windows - Mac / Metallic style did not work any more, only flat
style color was shown
2014-06-12 19:09:22 +02:00
Mark Liversedge
a520519db1 Athlete Tabs Background honour config
.. colour config is starting to get boring!
2014-06-06 21:31:08 +01:00
Mark Liversedge
457bd772ab Only need to wait on exit in QT 5.3
.. which is convenient because QThread::sleep is only
   public in QT 5.2.1 or higher.
2014-06-06 18:42:04 +01:00
Mark Liversedge
cac50d949b Wait 10s for threads to finish when closing 2014-06-06 14:17:11 +01:00
Mark Liversedge
40d9c91bbb Flat Titlebar not supported on QT < 5 on Mac 2014-06-03 18:33:11 +01:00
Mark Liversedge
33d2910488 Fix compile error on Mac < QT 5 2014-06-03 17:55:48 +01:00
Mark Liversedge
f29f87066c Fixup Mac compile on QT < 5
.. blackline doesn't exist compile error.
2014-06-03 08:26:37 +01:00
Mark Liversedge
32ab055cab Mac now honours flat theme
.. but not sure its gonna be very popular !
2014-06-02 12:43:34 +01:00
Mark Liversedge
fcea15fc92 Windows Style Part 3 of 3
.. flat colors based upon windows prefrences if on
   windows -- BUT ONLY if Dsmapi.h is available.
2014-06-01 15:33:23 +01:00
Mark Liversedge
708e8f5f34 Trap WindowStateChange in MainWindow
.. but just to resize the toolbar when on a Mac
2014-05-27 21:21:17 +01:00
Mark Liversedge
71ca1365de Basic Themes Support
.. no doubt we will extend and refine this but at least you
   can select some basic prebuilt themes.

.. will need to add more as its a limited list but the basics
   are in place for now.

Fixes #855.
2014-05-03 18:18:42 +01:00
Mark Liversedge
4b967c742e Add Chart now back on Chart Bar
.. so at least chart adding should be easier and no more
   UX issues.

.. need to look to add other menu options there; add page, athlete,
   chart settings.
2014-04-09 15:51:43 +01:00
Ilja Booij
57795d2d2e Fix crash at shutdown.
The context pointer was dereferenced after the context object was deleted. This is fixed by storing a pointer to the MainWindow in QTFullScreen, so context does not have to be dereferenced.

The logic in QTFullScreen::eventFilter is also simplified a bit.
2014-04-07 20:19:17 +02:00
Mark Liversedge
b5a50bcccf Tone down the toolbar shading
.. on QT 5.2.1
2014-02-15 15:15:20 +00:00
Mark Liversedge
e0194d03a3 Ride Tab Grab focus on startup
.. it irritated me that the search box always had focus on launch
2014-02-13 13:24:10 +00:00
Mark Liversedge
757bb7d875 More UnifiedTitleToolbar Fixups
.. fix preferences dialog toolbar
.. dodgy stylesheet fixed in MainWindow
2014-02-13 12:11:45 +00:00
Mark Liversedge
cbff5c9476 Fix flicker on show/hide toolbar/tabbar 2014-02-13 11:06:31 +00:00
Mark Liversedge
70f2ab9f46 Enable Hide Toolbar for QT5.2.1
.. since its not a real unified toolbar
2014-02-13 10:59:24 +00:00
Mark Liversedge
97ead7f1b4 Fixup Qt5.2.1 Unified Toolbar Cosmetics
.. just needed to use the right linear gradient.
2014-02-13 10:13:10 +00:00
Mark Liversedge
5bf58647e8 Qt 5.2.1 Unified Toolbar Cosmetic
.. add a separator line between unified toolbar and main widget
2014-02-13 09:50:21 +00:00
Mark Liversedge
79e5e8df18 QT5.2.1 Unified Title ToolBar Update
.. if you build with qt 5.2.1 then the unified title and toolbar
   is back, but its a hack to just change the gradient and use a
   standard toolbar .. so we do that, but make the colours match.
2014-02-12 19:30:55 +00:00
Mark Liversedge
87ba542197 What's in a name ?
The 4 views have been shown to be confusing -- it is not clear
to new users what their purpose is, and hence how or why they
are different.

So in an effort to reduce the confusion I've renamed a few
things to be much more explicit and specific.

.. We embrace the fact we are a cycling program and use the term
   RIDES not ACTIVITIES for all files

.. HOME is confusing, renamed to TRENDS

.. the ANALYSIS view name is confusing, its all about ANALYSIS
   to renamed to RIDES

There will no doubt be areas that are not renamed properly we
can fix those when the arise.
2014-01-12 13:06:00 +00:00
Mark Liversedge
d00ac93fb2 UI Nits: Qt5 Toolbar color when inactive 2014-01-07 21:32:05 +00:00
Mark Liversedge
af67705fd0 UI Nits: Prettify Mac Toolbar for QT5
.. colors match document mode tabbar.
2014-01-07 16:49:45 +00:00
Mark Liversedge
2c65061924 UI Nits: Mac Athlete Tab Bar
.. now looks a bit more 'Mac-like'.
2014-01-07 16:24:36 +00:00
Mark Liversedge
d748695b0e UI Nits: Fusion Style on QT5 only
.. improves things somewhat on Windows.
2013-12-29 21:29:11 +00:00
Mark Liversedge
69a4956d61 UI Nits: Mac and QT5 Toolbar
Fixed up to make the toolbar on a build on QT5 look a little
more like one on QT4 where they still have unified toolbar
and title support.

We should look at managing via the native NSToolbar in the
near future since Digia have made it clear that they are not
keen to reintroduce unified toolbars in QT5.
2013-12-29 14:49:18 +00:00
Mark Liversedge
95b993617a Drag onto athlete tab to switch tabs
.. this allows us to drag and drop between athletes or
   to switch athlete if dropping from outside of GC.

.. also added context to the mime data so the compare pane
   will know where the dragged object has come from (ie. it
   may be from a different athlete).
2013-12-28 10:58:32 +00:00
Mark Liversedge
ae2cd5eb97 Mac MainWindow Crash Fixes
* refresh popup resize mainwindow crash
* tabbar button crash coz on left not right on Mac
2013-12-27 13:48:02 +00:00
Mark Liversedge
77c2c07664 Add Close Button to Athlete Tab
.. so you can close athletes easily.
2013-12-27 13:23:57 +00:00
Mark Liversedge
08e7d6d882 Update SaveDialogs for Tabbed Athletes
.. the save dialogs all assumed the current tab
   and current context were relevant when checking
   for unsaved files etc, but this was INCORRECT.

.. when window is closed each tab is checked IN TURN
   so the context should have been passed (because the
   current tab/context is just one of the many to save)
2013-12-27 11:41:10 +00:00
Mark Liversedge
611ffde353 DocumentMode and UnifiedTitleAndToolbar
.. don't go together, so removing the document mode update.
2013-12-26 21:14:31 +00:00
Mark Liversedge
7d00cba9df Remove tabbar from context save/restore
.. when switching tabs -- as it makes no sense
   at all to hide/show tabbar as you switch tabs!
2013-12-26 11:00:32 +00:00
Mark Liversedge
67ab2b2903 Show/Hide tabbar as needed
.. only needed when we have >1 tabs so lets hide and
   show it automatically.

.. also added a setting for remembering setting but it
   doesn't do anything as we auto hide/show.
2013-12-26 10:54:42 +00:00
Mark Liversedge
bbeb76ab12 Tabbed Athlete Fixups
* showhideToolbar isn't available on a Mac
* used showhideToolbar for Tabbar (typo)
* setDocumentMode for tabbar on Mac (slightly better)
2013-12-26 09:18:57 +00:00
Mark Liversedge
9963904fa3 MainWindow Refactor Part 5 of 5 - TABBED ATHLETES
The final part (and one of the reasons) for the mainwindow
refactoring -- we now support tabbed athletes rather than
having a new mainwindow for each athlete opened.

Context is saved/restored and there are new functions for
opening and closing tabs and windows of tabs.

The tabbar itself is fugly -- the next few days will spend
some time looking at making it prettier on Linux/Win and
more native on Mac (see MMTabBar).
2013-12-26 01:03:32 +00:00
Mark Liversedge
192a2e27df Move Cocoa release pool to main
.. because mainwindows come and go and we need to persist
   across them all.
2013-12-23 10:38:18 +00:00
Mark Liversedge
6817db609b Remove ScopeBar from MainWindow
.. moving view selection to center of toolbar.
2013-12-23 00:40:11 +00:00
Mark Liversedge
06242db844 Revert "Fixup Mac toolbar for Qt5 and Qt4 build"
This reverts commit 20739ebb29.

Qt5 has a number of issues that cannot easily be resolved.

An alternative strategy of developing a custom cocoa control
for the mac toolbar is probably a better way forward.
2013-12-21 22:29:24 +00:00
Mark Liversedge
20739ebb29 Fixup Mac toolbar for Qt5 and Qt4 build
.. should be a bit better now.
2013-12-21 21:08:21 +00:00
Mark Liversedge
aa8605e8d5 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
e7afcbb028 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
c34b060b2f 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
7c407c6dd6 Estimate CP and W' in CP Estimator
Since we want to track W' and CP now it makes sense
to add W' estimation to the tool.
2013-11-14 14:11:59 +00:00
Mark Liversedge
5800fa5bab Find Matches as Intervals
Now let the user add 'match' intervals in
the find intervals dialog by setting a minimum
cost for the match.
2013-11-11 17:53:58 +00:00
Mark Liversedge
4f05a0fe54 UI Nits: Center Preferences/Options pane 2013-11-07 14:30:57 +00:00
Damien
16b856d9ed ShareDialog: Add ipload to www.cyclinganalytics.com 2013-10-28 23:27:33 +01:00
Mark Liversedge
68bbb05568 Show/hide scopebar with toolbar
When showing / hiding the toolbar we also show / hide
the scope bar. This is so when in train mode and you go
full screen it is possible to hide all ornamentation.

This will become a moot point when the scope bar is
replaced with 'appstore style icons' in the toolbar
to switch between home, analysis, train etc.
2013-10-27 21:11:59 +00:00
Damien
94454acded ShareDialog 2/3 : For version 3.0.1 2013-10-20 11:10:07 +02:00