Commit Graph

388 Commits

Author SHA1 Message Date
Jon Escombe
364c92d0b9 Fix for 'stuck in full screen' issue
When GC is restarted after being closed full screen, the saved geometry
is larger than the actual screen size - resulting in the title bar being
drawn off screen & not easily reachable.

This patch checks whether the saved geometry is larger than the current
screen size, and resizes to the screen size instead of the saved values.
2013-03-28 19:44:35 +00:00
Mark Liversedge
4358e152dd Fixup search highlighting
.. on Linux/Windows since its slightly different.
.. also fixes a SEGV
2013-03-23 21:06:10 +00:00
Mark Liversedge
3a1e3126fb Search/Filter applies to Calendar
The search/filter selects in the activity list but doesn't
highlight the rides on the calendar.

This patch highlights the dates that have activities that
match with a red border and a red number.
2013-03-23 20:45:13 +00:00
Mark Liversedge
ba2ecf455c UI tweaks: Slightly darker toolbar buttons
.. on Linux and Windows to match the toolbar background.
2013-03-19 17:23:51 +00:00
Mark Liversedge
ba225edf53 Remove rename single interval functionality
.. since it is superceded by the ability to edit all
   the interval details, including start and stop time
2013-03-19 07:05:48 +00:00
Mark Liversedge
c6f6dfec70 Add interval sort function
.. added to the splitter handle context menu

.. also took IntervalItem.h and IntervalTreeView.h from MainWindow.h
   coz I was getting pissed with recompiling everything when changing it.
   Thats why so many other files have been changed in this commit.

Fixes #338.
2013-03-17 21:29:47 +00:00
Mark Liversedge
cdd1fa9ded Fixup edit interval
.. now updates the ridefile (via updateRideFileintervals)
.. and uses a QTimeEdit rather than raw seconds
2013-03-17 19:42:38 +00:00
Damien
f4495bcd3b Edit interval 2013-03-17 15:29:54 +01:00
Mark Liversedge
37581c1e70 Rename/Renumber intervals
.. will use entered text and append 1,2,3 etc
.. or if entry ends with a number, will start from that
.. eg; "Int#3" will result in "Int#3", "Int#4" .. "Int#n"

Fixes #513.
2013-03-17 10:31:41 +00:00
Mark Liversedge
59b4a843a7 Windows: Tooltips
.. but qtsegmentcontrol ignores them. ugh.
2013-03-15 20:11:37 +00:00
Mark Liversedge
73d295d0d3 Windows: style selection fixup
.. infinite loop when clicking style selector on Linux or
Windows fixed and signals reconnected.
2013-03-15 19:46:21 +00:00
Mark Liversedge
37dd62e4aa Windows: Toolbar tweaks
.. menubar color
.. toolbar smaller since contains menu bar
2013-03-15 18:17:43 +00:00
Mark Liversedge
ebdb8e65bf Windows: View selection
.. scope bar select item lines up with menu choice now.
2013-03-15 17:38:44 +00:00
Mark Liversedge
3a3a35aba0 Windows: Toolbar buttons style
.. use cleanlooks since its very close to the Mac look
we are trying to achieve, but without the metal finish.
2013-03-15 16:52:35 +00:00
Mark Liversedge
5bdf897ca0 Fix Windows Look and Feel crash on ICAL
.. fixed crash when compiling without ICAL
.. I found because my Windows build doesn't have ICAL
2013-03-15 00:22:48 +00:00
Mark Liversedge
dbab14f4fe Windows Look and Feel Mac Fixups
.. fixes the Mac build
.. Windows still crashes
2013-03-15 00:13:48 +00:00
Mark Liversedge
8812de5711 Windows Look and Feel
.. akin to the Mac look and feel
.. still needs a bit of cosmetic work, but basically sound
.. also added in fixes to native file imports

Fixes #404
Fixes #504
2013-03-14 22:53:37 +00:00
Mark Liversedge
0c3c42d027 Calendar sidebars now show multiple months
.. if you resize them they will show as many months
as they can fit vertically.

.. also removed the scrollbars in the summarys shown
in the diary and LTM sidebar

Fixes #503.
2013-03-11 19:44:45 +00:00
Mark Liversedge
ba42c27346 More Linux file dialog workarounds
.. for export activity and export metrics.

Fixes #504. (again, it was reopened).
2013-03-11 12:39:29 +00:00
Mark Liversedge
3cfa9048cf Reinstate mini calendar on sidebar
This is the first step to reinstating the calendar on the analysis view
sidebar. Next step is to enhance it to show multiple months and then to
refactor the diary sidebar GcCalendar to use it.
2013-03-11 12:14:43 +00:00
Mark Liversedge
ff94f95d65 Use QT file dialogs on Linux
.. cause native are borked on Ubuntu.
2013-03-11 09:49:34 +00:00
Mark Liversedge
c8e145592d Less right-click on Activity list
.. group by and field chooser now appear on the
popupMenu in the sidebar.
2013-03-09 11:25:32 +00:00
Mark Liversedge
512232d3d6 Fix rename interval SEGV
.. when called from popupMenu.
2013-03-08 07:26:27 +00:00
Mark Liversedge
cb49d94a20 UI Nits: Splitter interval functions
.. final piece of the jigsaw, interval popup menu.
2013-03-07 20:54:40 +00:00
Mark Liversedge
3bac8cd4fc UI Nits: Simplify splitter to just one menu
.. instead of + and - and menu.
2013-03-05 19:47:54 +00:00
Mark Liversedge
facde109e0 UI Nits: Analysis view menu only
.. need to fix up the event but at least got the code in.
.. still needs the menu implementing.
2013-03-04 22:10:12 +00:00
Mark Liversedge
324cd9af3e UI Nits: Stop unhiding the sidebar
.. when switching views. It seemed like a good idea at the
time, but now it is really irritating. If I want the sidebar to
be shown I'll select it thanks.
2013-03-02 23:00:32 +00:00
Mark Liversedge
732c54957e 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
54600b6c1c 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
82eecce8f9 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
6b4c88320f UI Nits: Sidebar, invisible root item for intervals 2013-02-28 22:49:28 +01:00
Mark Liversedge
5b78cf62f4 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
b3cfa84add New sidebar splitter on Analysis and Diary 2013-02-27 16:03:56 +00:00
Mark Liversedge
b35114ef50 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
0fb8351bbc Add Strava activity download feature 2013-02-23 23:16:53 +01:00
Mark Liversedge
63bf34f1d5 UI Nits: splitter color
.. black is too in your face. changed to dark gray.
2013-02-18 19:45:27 +00:00
Mark Liversedge
f53c5beee0 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
b8cb2b7afd 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
71948ee20a Code Cleanup: Minor Valgrind grumbles
.. uninitialised variables
2013-02-11 10:40:08 +00:00
Mark Liversedge
5085647073 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
1af4e83509 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
f348f42226 Code Cleanup: MainWindow
.. XXX comments related to CPI files, we no longer have those.
2013-02-10 11:16:28 +00:00
Mark Liversedge
14d8f8e87a Code Cleanup: Calendar menu
.. remove unimplemented options for import/export
2013-02-10 11:10:39 +00:00
Mark Liversedge
8c9ba50408 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
2ba5788c35 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
c5465e34e9 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
72818a2710 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
1de495fe55 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
43ec1b548d 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
764734a2ce 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