Commit Graph

361 Commits

Author SHA1 Message Date
Mark Liversedge
dbd21d35e4 UI Nits: Sidebar remember their state
Rather than relying on the parent to maintain the splitter sizes
and states, the GcSplitter remembers its own state and sizing.

This includes remembering if the children have been hidden via the
icon bar at the bottom of the splitter.
2013-03-02 22:52:41 +00:00
Mark Liversedge
25121f515f UI Nits: Splitter icons adjust
The icons are adjusted via utility function iconFromPNG()
which currently just adjusts the icon color to be a muted
gray as opposed to black.

This is the first pass at recreating the 'template' function
used by the cocoa image functions. Will add an emboss feature
later, but at least now they are less vibrant and when clicked
turn black giving a visual clue that they are clickable.
2013-03-02 20:57:56 +00:00
Mark Liversedge
efd8cbdac7 Mac Sidebar button in toolbar
Button to toggle sidebar, also changes as we manually close
the sidebar by dragging, similar to behaviour in XCode.
2013-03-01 13:17:05 +00:00
Damien
a4dbb294a2 UI Nits: Sidebar, invisible root item for intervals 2013-02-28 22:49:28 +01:00
Mark Liversedge
f54a89272f Allow manual collapse sidebar
.. but need to add a toolbar button for Mac since the
old show/hide button on the scope bar has been removed
since it is now in the wrong place.
2013-02-28 18:51:47 +00:00
Mark Liversedge
d30e4ac8d5 New sidebar splitter on Analysis and Diary 2013-02-27 16:03:56 +00:00
Mark Liversedge
30259af494 UI Nits: Sidebar WIP
.. some cosmetic and tidy ups for the recent sidebar WIP update
from Damien. Just trying to get clean look before making the icon
bar look more like the one in XCode and make the icons use the
Cocoa "template" look.
2013-02-25 13:19:50 +00:00
Damien
ae1dc58600 Add Strava activity download feature 2013-02-23 23:16:53 +01:00
Mark Liversedge
b31c0de2cd UI Nits: splitter color
.. black is too in your face. changed to dark gray.
2013-02-18 19:45:27 +00:00
Mark Liversedge
b9ee4a743c UI Nits: Sidebar cosmetics
.. MainWindow splitter color to bring in line with the new work
from Damien.
2013-02-18 19:37:05 +00:00
Mark Liversedge
c6413e352d Fix SEGV on finf intervals on a blank activity
If you try to find intervals on a blank (manual) activity
the dialog will SEGV. It now checks in the same way as split.
2013-02-11 20:01:05 +00:00
Mark Liversedge
147d9c81ed Code Cleanup: Minor Valgrind grumbles
.. uninitialised variables
2013-02-11 10:40:08 +00:00
Mark Liversedge
9f94ba823d Code Cleanup: Deprecating stuff
Train view - race* - out of date and no used
Train view - SimpleNetwork - not used
Analysis view - WeeklySummaryWindow - not used
MainWindow - RideCalendar - deprecated 2 years ago
2013-02-11 10:03:21 +00:00
Mark Liversedge
1baefa0e2f Code Cleanup: Notes deprecated
.. some vestiges from the old notes file.
.. fixes a significant memory leak in MainWindow too.
2013-02-11 09:35:03 +00:00
Mark Liversedge
e4334a1c99 Code Cleanup: MainWindow
.. XXX comments related to CPI files, we no longer have those.
2013-02-10 11:16:28 +00:00
Mark Liversedge
24697a4372 Code Cleanup: Calendar menu
.. remove unimplemented options for import/export
2013-02-10 11:10:39 +00:00
Mark Liversedge
aa7f39e30b UI Nits: Mac toolbar tidy
.. a blank widget left from other coding iterations and the
lhs widgets not spacing properly.
2013-02-09 13:52:26 +00:00
Mark Liversedge
eea12e7bd7 Fix split manual ride SEGV
If you try and split an empty/manual ride then the split wizard
SEGVs. The split wizard now is only executed if the ride contains data.
2013-02-09 13:21:12 +00:00
Mark Liversedge
24ba55a113 Fix mac toolbar icon corruption
Because the image representation was stored in the pixmap
which was allocated on the stack -- it should be allocated on
heap since the underlying data is never actually copied.

This seems to fix the issue, but need to keep monitoring it!

Fixes #477.
2013-02-09 00:41:02 +00:00
Mark Liversedge
fbf13e6956 UI Nits: Style selection wonky
The splash screens broke the setting of the style selector
in the toolbar. They got out of sync. This fixes that.
FWIW, I introduced the bug!
2013-01-26 13:14:32 +00:00
Mark Liversedge
20bb581fb5 Cocoa Memory Management Fixups
A number of memory management errors fixed, no doubt there
are more lurking in there.

* CocoaInitializer now sets up an application wide NSAutoreleasePool
* Kickr now init/releases an NSAutoreleasePool for its thread
* Local autorelease pools in constructors etc have been removed
* Searchbox and Button no longer release in the constructor

The icon corruption seems to be improved (I think it is a memory
management issue) but has not been totally removed.
2013-01-26 12:36:23 +00:00
Jaime
1ff78e4c45 Fix thread warning exit realtime
Stops any active realtime threads before exiting to
suppress the warning messages about active threads.
2013-01-26 09:25:56 +00:00
Jaime
2393080f4f Fixed side bar to properly toggle the Hide/Show state when switching modes
Minor fixes to #defines for Q_OS_MAC on side/scopebar
2013-01-25 09:01:50 -05: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
Mark Liversedge
65e7faacba Kickr Checkpoint Commit
.. device discovery working after a bit of
heartache with blocking threads and signals.
2013-01-21 13:05:49 +00:00
Andy Bryson
ab9b0ed618 Fix build error on Arch Linux 2013-01-21 07:40:09 +00:00
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