Commit Graph

50 Commits

Author SHA1 Message Date
Mark Liversedge
d5400c0c51 UI Nits: Activity list cosmetic
Drives me mad, but the separator line was over painted
and it just looked amateurish. Been meaning to fix it for
absolutely ages!
2013-04-06 12:57:16 +01:00
Mark Liversedge
9b677e60f5 Fix sidebar groupby column names error
The visual headings are not reset when the view is reset, for
example after startup. This means the wrong columns are offered
on the activity popup menu for group by.

The resetView() function needed to call columnsChanged() to get
the visual headings reset.
2013-03-09 11:38:04 +00:00
Mark Liversedge
c9dffd2e1a 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
47c58397b5 Code Cleanup: RideNavigator
Remove XXX and commented out code. No functional changes.
2013-02-07 13:08:05 +00:00
Mark Liversedge
0134931638 Fix compiler warnings
All are harmless but for the sake of clarity have
fixed them all bar a couple;

- Lucene grumbles about signed/unsigned conversion which
  is/isn't valid depending upon the version of CLucene you
  compile with. Either way it is harmless.

- QxtScheduleView has a bunch of issues, but since it is a
  third party widget its better to leave it unchanged.
2013-02-06 15:54:32 +00:00
Alejandro Martinez
bf2239d333 Fix RideNavigator Translation
column names from xml file need to be translated to match translated headings,
other posibility would be to match before translation, but this option needed
fewer changes.
2012-12-29 15:16:27 -03:00
Alejandro Martinez
4e8b398c63 Enable RideNavigator Translation 2012-12-19 19:31:54 -03:00
Alejandro Martinez
1774f1b3db Enable Rho and Twitter translations 2012-12-08 16:45:41 -03:00
Mark Liversedge
193a5b01f1 UI Nits: Fixup after ridelist scrollbar 2012-12-04 19:04:43 +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
d13b7bd979 UI Nits: Ride Navigator weird gap fix
Workaround that by putting new columns at the left
not at the right and the problem goes away. Suspect
it is related to issues with QT and expandLastColumn()
which also displayed issues.
2012-12-03 16:21:21 +00:00
Mark Liversedge
e339abd4af UI Nits: RideNavigator honout font metrics
The row height in the ride list is fixed. When the user
selects a different font the row height should adjust
accordingly.
2012-12-01 17:34:52 +00:00
Mark Liversedge
cce5b9c590 UI Nits: GcBubble positioning
RideNavigator set the GCBubble to the wrong position on
screen which can be confusing when you have a narrow list
of rides. The bubble appeared to be displaying for a totally
different ride.
2012-11-30 10:27:23 +00:00
Damien
8eee2ddb25 Choose Metric/Imperial units in New Athlete dialog
fixes #34
2012-11-26 23:35:35 +01:00
Mark Liversedge
b62fe6a035 UI Nits: Don't delete last column
Don't let the user delete the last column on the
ride navigator. If they do that then there is no
way of adding a column back!
2012-11-23 23:20:03 +00:00
Mark Liversedge
eb30dd9f0e UI Nits: Ride navigator contents margins
When adjusting column widths take into account the
contents margins. Also shows sort indicator on the
columns when not on a mac (this was changed as part
of the recent Mac native polish commits).
2012-11-23 22:27:46 +00:00
Damien
d77c9eeb73 Add a column Start Time in the ride navigator
fixes #33
2012-11-21 22:30:57 +01:00
Mark Liversedge
c8c6af6026 UI Nits: Small font in Details Screen
Adjustment sneaked in by accident to reduce the
font size was hard to track down, but this patch
fixes it and also removes some errant (but harmless)
code in the navigator too.
2012-11-20 06:47:11 +00:00
Mark Liversedge
4796f08930 Add OpenBSD compile support
Thanks to Claus Assmann for the fixups;
- RideNavigator double foreach loops used same name for iterator
- N_TTY line discipline is not defined on OpenBSD (possibly)

Would be nice to have a better fix for the line discipline
stuff, but 0 is usually the TTY line discipline. Bit of a
hack, but ok for now.
2012-11-20 06:08:47 +00:00
Mark Liversedge
f43ac923c5 Mac Native UI (Part 1 of 3)
Part of a series of commits to adjust the UI on a Mac to
look more native and conform better to the Mac UI design
guidelines.

This patch introduces a unified title and toolbar which hosts
a search field and buttons for commonly used functions like
import, split ride, delete etc.

Since it is not possible (or more importantly good practice) to
hide and show toolbar items the Train View controls have now been
moved to the sidebar on a Mac. This is a temporary measure and
will be resolved in future updates.

Further updates planned are;
Part 2 - fixup the preferences pane to be more Mac-like
Part 3 - Spit and Polish around the charts; drop shadows, controls etc
2012-11-18 15:55:07 +00:00
Mark Liversedge
271dbfe48c UI Nits: Indent first column ridenav
Just to make a little more pleasing on the eye.
2012-11-13 20:09:21 +00:00
Mark Liversedge
ed9485f9dd UI Nits: Ridelist cosmetics
A few minor adjustments to the ride list to make
it a bit easier to ride and less dense.
2012-11-13 19:27:27 +00:00
Mark Liversedge
fcbff57bac UI Nits: RideNavigator margins to allow resize
The ride navigator has 0 contents margins which made
grabbing and resizing impossible in paned mode. This
was done to make it look beter when it is a ride list.

It now has a constructor argument to specify if its
being put into mainwindow as the ride list or its being
added to a view.
2012-11-13 14:45:27 +00:00
Mark Liversedge
442cad931b UI Nits: Ride list horiz scrollbar
The ride list / navigator gets a horizontal scrollbar
every time it is shown as the columns are resized but
not taking into account the need for a vertical scrollbar.

The reasons behind this are more complicated but this
patch fixes this annoyance.
2012-11-12 16:12:56 +00:00
Mark Liversedge
054a515354 UI Nits: Fewer default columns
The ride list had way too many default columns making it almost
impossible to see any info. This makes the default columns
workout code, TSS and Date.
2012-11-08 18:11:25 +00:00
Mark Liversedge
fa03fdeeb4 UI Nits: Ride list column widths fixup
An annoying bug that has been around for far too long.. the ride
list headings are resizable and the user can adjust them. But
when GC restarts the sizes are lost.

This was caused by an error in the code that saved away to column
widths -- it failed to use the logical index for each column (since
columns can be re-arranged).

Now upon restart the columns will be the right size -- but for the
very first launch after this bug is fixed the sizes will still be wrong.
They will need to be reorganised and then restart GC one more time.
2012-11-06 12:55:55 +00:00
Mark Liversedge
f48ae3d2a8 Mac UI Sidebar Cosmetics
The sidebar elements all get a blue focus rectangle on
Mac OSX. This is a platform specific setting. This patch
removes the focus rectangle for sidebar components only.
2012-11-06 11:16:41 +00:00
Mark Liversedge
d0b009c922 Data Filter (Part 3 of 3)
Last part of the search/filter functionality;

* SearchBox now incorporates filter and search
  with a new widget. We can update this widget
  to include more fancy UI/Interactions without
  having to change the ride list or charts etc.

* Added search/filter widget to the relevant charts
  and screens; Metrics, TreeMap, CP, Histogram,
  Activity Log, Ride list (refactored out of MainWindow)

* Added namedsearches.xml and adding/selecting them
  from a drop down menu on the search box.

* Fixed some performance bugs related to duplicate
  signals and redraw/reprocessing. Also ensured that
  CLucene remains optional -- but means no search or
  filter functionality unless it is available.
2012-11-05 15:44:01 +00:00
Mark Liversedge
d33c337b8f Search/Filter using Lucene
Searching and filtering the ride list using a search box.
This is implemented using a new optional dependency on
CLucene.

Fixes #627.
2012-10-21 15:28:26 +01:00
Damien
8eb349ded0 Select active ride in the ride navigator
Fixes #545.
2012-01-21 21:00:52 +00:00
Mark Liversedge
58e670e2c3 Add Temperature to Ride Summary
More complex than I had hoped for, to add
Temperature I needed to;

* introduce two new metrics Avg/Max temperature
* adjust metric conversion to include a conversionSum
  for the C to F conversion
* handle temperature as a metadata field as well as a
  ride data series
* handle the RideFile::noTemp value rather than just
  averaging or calculating max.

Fixes #603.
2012-01-15 16:27:09 +00:00
Mark Liversedge
4bf90eff8f Fix crash on exit (WinIdChange). 2011-11-19 20:39:22 +00:00
Mark Liversedge
6d92c204ba Fixup RideNavigator on Linux
Linux build using the 4.8 qt rc uncovered a couple
of bugs in the new ride navigator code. This fixes
that, but needs to be tested in earlier versions,
e.g. 4.6, 4.7.
2011-10-21 19:39:15 +01:00
Mark Liversedge
0d1ad15bf7 RideNavigator as a Window
You can now place a ride navigator on the chart layouts, this allows
the user to configure many more columns and use the navigator to
browse and order the activity history in a log/journal format.

The default diary layout now has two tabs; one for the calendar and
another for the activity history.

There appears to be a few minor bugs related to column/chart resizing
that have been present for a while, but are more obvious now the navigator
is a chart in its own right. These will be resolved later.
2011-10-21 18:43:24 +01:00
Mark Liversedge
9a6e14e399 Activity Popup Bubble
A popup bubble when hovering over the activity
history or an entry on the calendar.

It is a pre-cursor for the activity bar for
selecting rides and is available for any
widget to call (it is a member of mainwindow).

To support the data series indicator icons a
new metadata field 'Data' has been added to
store a string to represent the data series
that are present.

In addition, the Sport code is used to decide
if a bike/run/swim icon should be shown instead
of a string (but needs translation support when
we get round to that).

Lastly, it has been coded for horizontal alignment
but will need to be updated for the activity bar
to support vertical alignment.

This is an experimental feature and will develop
over time, specifically;

* you cannot define which metrics are show in the
  bubble -- they are hardcoded at present

* the coloring is hardcoded, as is the font size

* Only the activity list and diary use it.
2011-09-10 22:36:13 +01:00
Mark Liversedge
bf5353c508 Code hooks for activity tooltip bubble
No functional enhancements, just adds the code
hooks for triggering a bubble 'popover' when
hovering on the ride list or calendar view.

Will be connected to the popup balloon once
the code for that is complete.
2011-09-05 18:02:48 +01:00
Mark Liversedge
9cd0212097 Pretty Toolbar
Fixups for a GC toolbar and the first pass at trying
to make the look and feel more professional. Whilst the
overall usefulness of the toolbar is moot, the grpahics
show the way for greater attention to detail.

Specifically;
* The sidebar should adopt a similar look/feel
* Chart title bars should adopt a similar look/feel
* Sidebar panes should be unified with the same look
* The style selector needs to move - it is cluttering
  up the general clean look.

The code is a little ghetto in places, but will fix up
as the cosmetics are sorted.
2011-09-04 00:19:26 +01:00
Mark Liversedge
f5020cd85d Use CascadingResizeSections in RideNavigator
Makes resizing columns smoother and more intuitive.
2011-08-27 10:10:14 +01:00
Mark Liversedge
80bfe6b6cd Remove unneccessary methods from MainWindow
A couple of members in mainwindow should have been
removed a while back (chartFoundry trying to fix
add chart crash) and getSplitter (hack for resizing
the sidebar).

This patch removes them. No functional change.
2011-08-21 11:35:20 +01:00
Mark Liversedge
faa557f80b Force hide of virtual column in ride navigator. 2011-07-31 13:43:33 +01:00
Mark Liversedge
abd8790458 Fixup for V3 Ride List (RideNavigator)
Multiple issues fixed related to automagic
resizing of columns as the sidebar is stretched
and shrunk.

* Geometry and Columns are now cyclist specific
  since the metadata config is cyclist specific.

* Multiple 'dynamic' bugs related to setWidth() and
  columnsChanged() calling each other or being
  triggered by a signal caused conflicts

* Column widths were incorrectly calculated when
  no vertical scrollbar is visible on the ride list
  (typically when the user has just created a new cyclist)

* Incorrectly including the '*' virtual column in calculations
  when it should always have a width of 0px

The Ride Navigator should now be relatively bug free for
column resizing. More tests are needed on the interaction
with the old context menu (i.e. delete/add/save ride). Some
preliminary tests suggest it is pretty stable.
2011-07-30 22:25:31 +01:00
Mark Liversedge
f547d2fa8d More mucking about with Ride list
Ugh. More fixups for stretching the
columns in the ride list when it is
resized. More thought needed on how
this should work.
2011-07-30 16:28:56 +01:00
Mark Liversedge
599cd62750 Fix refresh metric losing ride selection
When metrics are refreshed the ride navigator
re-reads the metric DB and loses the currently
selected ride.

This patch causes the ride to be re-selected once
the refresh completes.
2011-07-23 19:55:40 +01:00
Mark Liversedge
f7a9e32170 Sidebar adjustments, wip
The sidebar activity list columns expand and
reduce as the sidebar is resized. Still a work
in progress with a number of cosmetic issues
remaining.
2011-07-16 10:58:20 +01:00
Mark Liversedge
2daa332f41 Reinstate Tab view
After discussion on the list the utility and popularity of
the original tab view was restated. This patch reinstates
the tab view and attempts to unify the Qt tab widget with
the general look and feel of the application.
2011-06-04 17:12:17 +01:00
Mark Liversedge
c820de8f57 UI Cosmetics & Nits
Added a dropshadow effect for window tiles and made the
title embossed for a more professional look.

Also fixed a couple more compile time nits introduced
by recent commits.
2011-06-03 18:07:01 +01:00
Mark Liversedge
56bcc67a0a Simplify and Clean UI
Less jarring UI with simple use of color and
no pixmaps to make a clean look. Will need
more work to get consistent across the code
base.

A simple and clean UI is starting to emerge.
2011-06-01 21:46:31 +01:00
Mark Liversedge
4ab96e16d1 Sidebar, Ride List and Aeshetics
An update to the ride list on the left hand side
to enable the user to choose and sort or group-by
metrics, metadata fields and ride information.

In addition, the sidebar has been 'improved'
cosmetically and to require less screen estate.

Also, the ticks and frames on plots have been
adjusted to be more aesthtically appealling.

There is more to come on the look-and-feel front,
but this patch heralds some work on the sidebar
which needs to be resolved.
2011-06-01 16:34:24 +01:00
Mark Liversedge
6af6b347bf Version 3 - No Ridefiles Bugs Bonanza
When no ridefiles are available (new cyclist) or the last ridefile
is deleted the current ride will be null. In addition the ride
importer deletes the memory for a ride imported to ensure VM is not
exhausted on large imports.

This patch fixes a whole host of null errors across the codebase. They
were identified by creating a new cyclist, executing every menu option
and tab/chart and then importing a file choosing everything and then
deleting the file and choosing every option again.

This negative testing should be performed before every stable release since
it has identified at least 6 bugs which are almost certainly present in the
current V2 code.
2011-04-09 11:24:40 +01:00
Mark Liversedge
3aba7dd788 Inital V3 Branch 2010-12-30 17:35:23 +00:00