]>
git.street.me.uk Git - andy/viking.git/log
Rob Norris [Wed, 17 Jul 2013 20:28:54 +0000 (21:28 +0100)]
Improve options for applying DEM Data to a track/route.
Make explicit the option that overwrites all existing elevation data.
Add new option to only update missing elevation data.
Always report the number of points modified.
Rob Norris [Wed, 17 Jul 2013 19:31:59 +0000 (20:31 +0100)]
Make the track/route elevation smoothing methods available in the GUI.
The number of points adjusted is reported to the user.
Rob Norris [Wed, 17 Jul 2013 19:29:24 +0000 (20:29 +0100)]
Add methods to smooth missing elevation data from tracks (or routes).
This is a follow up to SF Bug #100.
Two variations are made available -
a simple 'flat' method that simply applies the last known elevation value to the missing points.
an interpolated method that uses beginning and end know elevations to derive inbetween values.
The number of points adjusted is returned.
Rob Norris [Tue, 16 Jul 2013 21:32:32 +0000 (22:32 +0100)]
Create and use new menu level 'Transform' for some track/route operations.
This is a holdall for methods that manipulate track values but don't add/remove points.
Move the 'Apply DEM Data' and 'Convert to X' functions here.
Guilhem Bonnefille [Tue, 23 Jul 2013 21:01:29 +0000 (23:01 +0200)]
Check size of route before refining it
Before computing a route refining on an excessively long route,
request confirmation from user.
Signed-off-by: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
Guilhem Bonnefille [Tue, 23 Jul 2013 21:01:29 +0000 (23:01 +0200)]
Add function to refine a route with routing service
This patch add a menu entry for route in order to request a
refined version of the route.
The user is now able to plan a journey by creating a simple route
and then request a routing engine to refine this route.
This is a simple solution to extend route finder tool, adding 'via'
points in the journey.
Signed-off-by: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
Guilhem Bonnefille [Tue, 23 Jul 2013 20:53:11 +0000 (22:53 +0200)]
[DOC] Tag some contextual restrictions as 'note'
Guilhem Bonnefille [Tue, 23 Jul 2013 20:31:16 +0000 (22:31 +0200)]
Fix: use g_list dedicated function instead of own code
Rob Norris [Mon, 1 Jul 2013 23:25:13 +0000 (00:25 +0100)]
Enable optional opening of the track properties dialog on the statistics tab
Rob Norris [Sat, 29 Jun 2013 15:28:21 +0000 (16:28 +0100)]
Move all editable properties of a track/route to a dedicated tab.
It seems better to distinguish editable properties and computed properties (called Statistics).
Especially since there are now more track properties to control.
This patch is reworked from Guilhem Bonnefille's initial idea/work.
Rob Norris [Sun, 16 Jun 2013 14:30:07 +0000 (15:30 +0100)]
Split TrackWaypoint layer tracks properties into an 'Advanced' section.
Mainly because there's getting lots of track layer properties,
split the more detailed control options into a new tab.
Rob Norris [Thu, 18 Jul 2013 21:59:52 +0000 (22:59 +0100)]
[DOC] New settings value
Rob Norris [Sun, 16 Jun 2013 14:21:09 +0000 (15:21 +0100)]
Add ability to draw track names and distance labels on the viewport.
Track labels are drawn in the appropriate track colour, when set.
Options are given to draw the track names at:
a centre position
start and end positions
centre, start and end
The default is to not draw them.
Also distance along tracks may be displayed with up to N labels at friendly distance amounts.
Originally I had worked(and reworked) over several differing commits,
but too tricky to split into back into the resulting logical commits, so combined together.
Rob Norris [Sat, 20 Jul 2013 12:06:54 +0000 (13:06 +0100)]
Add helper function distance_in_preferred_units()
Rob Norris [Sat, 20 Jul 2013 12:06:01 +0000 (13:06 +0100)]
Add function to get a trackpoint by distance along a track.
Rob Norris [Mon, 15 Jul 2013 23:53:36 +0000 (00:53 +0100)]
[DOC] Document options for the Trackpoint message format codes.
Rob Norris [Mon, 15 Jul 2013 22:06:20 +0000 (23:06 +0100)]
SF Features#113: Allow distance from track start to be shown in the Statusbar.
Use the controllable method to generate a trackpoint sting.
By default the elevation, time, distance along track and track name
will be shown for the selected trackpoint.
The settings string 'trkpt_selected_statusbar_format' can be adjusted if the different values are wanted.
Rob Norris [Mon, 15 Jul 2013 22:00:07 +0000 (23:00 +0100)]
SF Features#111: Add Optional Statusbar update in GPS Realtime Tracking mode.
Default to displaying speed and elevation.
Rob Norris [Mon, 15 Jul 2013 21:58:08 +0000 (22:58 +0100)]
Enable following GPS realtime tracking even when no heading (course) is available.
Rob Norris [Mon, 15 Jul 2013 21:52:51 +0000 (22:52 +0100)]
Add a common method to produce an information message string about a Trackpoint.
Currently for ease of implementation the message format code is a string of characters.
Each character represents what should be inserted in relation to a Trackpoint.
One day it might evolve into something more user friendly with a frontend to control it, perhaps allowing arbitary text too.
However for now at least some control is offered :)
Rob Norris [Mon, 8 Jul 2013 19:16:06 +0000 (20:16 +0100)]
Add a function to find out the distance along a track to a particular trackpoint.
Rob Norris [Mon, 8 Jul 2013 19:48:15 +0000 (20:48 +0100)]
Quick hack method to enable display of compiled in libraries (albeit in the wrong section of 'Artists') in the About dialog.
Rob Norris [Sun, 7 Jul 2013 10:21:58 +0000 (11:21 +0100)]
Support opening compressed files downloaded for the My OSM Traces feature.
Files downloaded may have been compressed by bzip2.
Use file magic to detect compression type and take appropriate decompression action.
Hence dependencies on libbz2 and libmagic are now required.
But they can be optionally turned off.
Rob Norris [Sun, 7 Jul 2013 09:46:55 +0000 (10:46 +0100)]
Unzip comment
Rob Norris [Sat, 6 Jul 2013 17:07:01 +0000 (18:07 +0100)]
Start to make compression code more reuseable.
Move zip file handling into new a file: compression.c
Rob Norris [Tue, 16 Jul 2013 21:08:51 +0000 (22:08 +0100)]
Fix menu use of named own Icons since the icons were renamed some time ago.
They were renamed back in commit SHA1:
79dce0cbecc73aef904c1529467195416c1bfe96
Rob Norris [Mon, 15 Jul 2013 21:26:01 +0000 (22:26 +0100)]
[QA] Fix memory leak in drawing new tracks/routes.
Rob Norris [Mon, 15 Jul 2013 22:17:45 +0000 (23:17 +0100)]
[QA] Fix memory leak in sorting layers.
Rob Norris [Mon, 15 Jul 2013 21:24:31 +0000 (22:24 +0100)]
[QA] Fix name memory leaks in TrackWaypoint operations.
Rob Norris [Mon, 15 Jul 2013 21:22:43 +0000 (22:22 +0100)]
[QA] Fix misc small memory leaks.
Rob Norris [Mon, 15 Jul 2013 21:20:47 +0000 (22:20 +0100)]
[QA] Fix several memory leaks on program closure.
Not particularly important since the program is ending,
but it should be done and aids tracing any other remaining memory faults.
Rob Norris [Mon, 15 Jul 2013 21:16:20 +0000 (22:16 +0100)]
[QA] Fix memory leak on deleting TrackWaypoint layers.
Rob Norris [Mon, 15 Jul 2013 21:14:03 +0000 (22:14 +0100)]
[QA] Fix new tracks not shown after split called from the Track Properties dialog.
Rob Norris [Mon, 15 Jul 2013 21:12:45 +0000 (22:12 +0100)]
[QA] Fix large memory leak on viewing Track Properties.
Rob Norris [Mon, 15 Jul 2013 21:11:56 +0000 (22:11 +0100)]
[QA] Fix incorrect iterator usage.
Rob Norris [Mon, 15 Jul 2013 21:08:40 +0000 (22:08 +0100)]
[QA] Fix memory leaks in usage of the clipboard.
Refactor use of gdk_atom_name() since this returns an allocated string.
Rob Norris [Mon, 15 Jul 2013 21:07:17 +0000 (22:07 +0100)]
[QA] Fix memory leaks on reading in Viking files.
Don't set these string variables to NULL too early!
Otherwise testing it's value means it previously didn't call the free function.
Rob Norris [Mon, 15 Jul 2013 21:03:25 +0000 (22:03 +0100)]
[QA] Fix memory leak in treeview tooltips and selection.
Rob Norris [Mon, 15 Jul 2013 21:00:26 +0000 (22:00 +0100)]
[QA] Fix large memory leak when removing DEM layers.
Guilhem Bonnefille [Wed, 10 Jul 2013 21:16:31 +0000 (23:16 +0200)]
QA: replace direct access to GtkWidget->window member by function call
Rob Norris [Mon, 8 Jul 2013 19:20:55 +0000 (20:20 +0100)]
Add view of course and speed properties of trackpoints.
Since these values may be held in the trackpoint data, we might as well be able to show them!
Also reduce spacing between the elements to keep the dialog compact.
Rob Norris [Mon, 8 Jul 2013 19:14:07 +0000 (20:14 +0100)]
Enable control of create_label_vbox spacing and padding.
Rob Norris [Mon, 8 Jul 2013 18:04:46 +0000 (19:04 +0100)]
Fix some interpolated values of a trackpoint on insertion between points.
Fairly obvious cut and paste error.
Incorrect code introduced (by me) in commit SHA1:
db79f75f7deef5e8a934324c69dfaa274764514a
Rob Norris [Sun, 7 Jul 2013 09:53:13 +0000 (10:53 +0100)]
Use the busy cursor during downloads of My OSM Traces.
Rob Norris [Sun, 7 Jul 2013 09:51:58 +0000 (10:51 +0100)]
Fix handling failed downloads with the My OSM Traces method.
Don't attempt to add a layer until we know it is OK.
Rob Norris [Sun, 7 Jul 2013 10:20:06 +0000 (11:20 +0100)]
SF Bugs#101: Fix Acquire from Google Directions.
Allow for some download redirects by default. Otherwise may get HTTP 302 errors.
Rob Norris [Sat, 6 Jul 2013 10:18:45 +0000 (11:18 +0100)]
Refactor Track property grid drawing into a common function.
Change the y-axis text to be slightly smaller to accommodate displaying larger values.
Otherwise distance labels over '100 miles' may be seen fully.
Rob Norris [Sat, 6 Jul 2013 10:16:29 +0000 (11:16 +0100)]
SF Bugs#100: Fix Crash on viewing Track Properties with extreme gradients.
Even though the code checked for end of the array, it did not set the index value correctly.
Thus it could access memory outside of the array, which could be zero and lead to divide by zero errors.
Refactor the code to use the common chunk index function.
Rob Norris [Wed, 26 Jun 2013 18:16:25 +0000 (19:16 +0100)]
Add ability to use a conversion function between the displayed widget contents and the value stored internally.
Rob Norris [Tue, 25 Jun 2013 22:49:24 +0000 (23:49 +0100)]
SF Bugs#97: Fix missing redownload settings of some maps in the example config
Some extra properties of the maps should be defined to enable redownload behaviour.
[i.e. match the built in settings in osm.c]
Rob Norris [Sat, 6 Jul 2013 10:30:01 +0000 (11:30 +0100)]
SF Bugs#99: Increase limit for Map IDs
Change from a guint8 to a guint16 to enable larger map id range.
Thus prevents silently auto wrapping numbers around which may then overwrite a different map cache.
Rob Norris [Sat, 6 Jul 2013 10:29:45 +0000 (11:29 +0100)]
[QA] Fix issue spotted with cppcheck 1.59
Rob Norris [Wed, 26 Jun 2013 18:19:46 +0000 (19:19 +0100)]
SF Features#114: Increase the time limit for the Tile Age and use days in the GUI.
The limit is now increased to 1 year.
Units are the more human friendly scale of days, rather than trying to deal in hundreds of thousands of seconds.
Values are still held in seconds in the preferences.
Rob Norris [Mon, 1 Jul 2013 23:23:56 +0000 (00:23 +0100)]
More reliable waypoint symbol resetting on preferences change.
Problem introduced in commit SHA1:
9e3fa3387a28bc41a34ad01394f681b5c401b1a4 ,
fix g_list usage otherwise doesn't do more than one layer in the list!
Rob Norris [Mon, 1 Jul 2013 18:37:19 +0000 (19:37 +0100)]
Fix name search using Google.
It appears some redirection now occurs, so better allow for that to happen.
Rob Norris [Mon, 1 Jul 2013 18:36:00 +0000 (19:36 +0100)]
Fix some layer sorting issues.
Ensure waypoints get sorted upon addition.
Ensure the treeview is available before attempting to sort within it.
Rob Norris [Sun, 30 Jun 2013 22:56:59 +0000 (23:56 +0100)]
[QA] Fix some issues spotted with cppcheck 1.59
Rob Norris [Sun, 16 Jun 2013 14:14:25 +0000 (15:14 +0100)]
Make dialog shifting a bit more reliable.
Rob Norris [Sat, 15 Jun 2013 19:09:58 +0000 (20:09 +0100)]
Use already calculated bounding box for 'maxmin' calculations.
Rob Norris [Mon, 3 Jun 2013 21:35:20 +0000 (22:35 +0100)]
Add statistics for all tracks within a single TRW layer.
Rob Norris [Thu, 6 Jun 2013 20:01:14 +0000 (21:01 +0100)]
Enable all tracks statistics analysis for all TRW Layers within an Aggregate layer.
Rob Norris [Thu, 6 Jun 2013 19:59:00 +0000 (20:59 +0100)]
Add Multiple Tracks Statistical analysis dialog.
This displays totals and averages for the selected tracks in a new dialog.
More then one instance of this dialog is allowed
and it allows a choice of whether invisible items should be included in analysis.
NB This commit does not perform the actual selection of tracks to analysis.
Rob Norris [Thu, 11 Apr 2013 01:06:00 +0000 (02:06 +0100)]
Add functions to return sublayer visibility.
Rob Norris [Sat, 29 Jun 2013 09:32:10 +0000 (10:32 +0100)]
[DOC] Fix some incorrect docbook markup.
Rob Norris [Sat, 29 Jun 2013 09:10:35 +0000 (10:10 +0100)]
Merge branch 'LayerSort'
Guilhem Bonnefille [Sun, 23 Jun 2013 21:33:20 +0000 (23:33 +0200)]
Fix documentation minor typo
Guilhem Bonnefille [Sun, 23 Jun 2013 07:29:26 +0000 (09:29 +0200)]
Generalize Acquire Directions
Since we have a generic routing framework, we can replace
Google Routing feature by a more generic solution.
The user is now able to select the engine for the route
computation.
Signed-off-by: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
Guilhem Bonnefille [Sun, 23 Jun 2013 07:28:36 +0000 (09:28 +0200)]
[QA] minor doc improvment
Guilhem Bonnefille [Sat, 22 Jun 2013 21:07:03 +0000 (23:07 +0200)]
[QA] More minor code improving
Guilhem Bonnefille [Sat, 22 Jun 2013 21:04:50 +0000 (23:04 +0200)]
[QA] Add type checking
Guilhem Bonnefille [Sat, 22 Jun 2013 21:02:20 +0000 (23:02 +0200)]
[QA] Add minor comment
Guilhem Bonnefille [Sat, 22 Jun 2013 20:51:09 +0000 (22:51 +0200)]
Add a builder for a routing engine selector
User can give a function to filter the routing engines displayed in the
selector.
Guilhem Bonnefille [Sat, 22 Jun 2013 20:40:07 +0000 (22:40 +0200)]
Expose a function to iterate on all registered engines
Even if the function is trivial, it seems better to keep the list inside
the module and only offer a service to iterate (not offer the list)
Guilhem Bonnefille [Sat, 22 Jun 2013 20:33:17 +0000 (22:33 +0200)]
[QA] Use more explicit funcion name
Guilhem Bonnefille [Wed, 19 Jun 2013 20:21:25 +0000 (22:21 +0200)]
[DOC] fix ref doc
Rob Norris [Fri, 31 May 2013 17:47:42 +0000 (18:47 +0100)]
Remove now unused alphabetical sort functions as they have been superseded.
Rob Norris [Fri, 31 May 2013 17:46:23 +0000 (18:46 +0100)]
[DOC] This internal setting no longer exists.
Rob Norris [Thu, 13 Jun 2013 18:59:18 +0000 (19:59 +0100)]
Enable TrackWaypoint sublayer alphabetical sort options.
These are saved in the layer properties for each sublayer types: tracks(including routes) and waypoints.
By default this is defaulted to off in order to preserve potential ordering of named items like:
10
100
1001
Otherwise the alphabetical sort will destory this order and otherwise ATM no other way to restore it.
Rob Norris [Sun, 7 Apr 2013 14:05:30 +0000 (15:05 +0100)]
Enable Alphabetical sorting of layers within Aggregate layers
Primarily useful when one has only TrackWaypoint layers within a Aggregate layer.
Aggregrates maintain a list of layers which needs to be sorted as well as the treeview.
Rob Norris [Thu, 13 Jun 2013 19:00:12 +0000 (20:00 +0100)]
Enable fast and GUI controllable alphabetical sorting of treeview layers.
Use the gtk_tree_store_reorder method as it very quick.
This ordering can be performed on demand and works for any parent iterator (i.e. both sublayer and layer levels)
It should be called whenever an individual sublayer item is added or renamed (or after a group of sublayer items have been added).
Previously with insertion sort on every sublayer addition: adding 10,000 items would take over 30 seconds!
Now sorting after simply adding all tracks takes 1 second.
For a KML file with over 10,000 tracks (3Mb zipped) - See 'UK Hampshire Rights of Way'
http://www3.hants.gov.uk/row/row-maps.htm
Rob Norris [Thu, 13 Jun 2013 18:26:43 +0000 (19:26 +0100)]
Merge branch 'InternalSettings+StartupPreferences'
Rob Norris [Tue, 11 Jun 2013 23:07:47 +0000 (00:07 +0100)]
[DOC] Some words about the new Startup preferences options.
Rob Norris [Fri, 24 May 2013 22:20:22 +0000 (23:20 +0100)]
[DOC] Some words about the viking.ini file
Rob Norris [Tue, 11 Jun 2013 20:45:36 +0000 (21:45 +0100)]
Add option to control whether a periodic version check should be performed.
By default this only on for Windows systems.
The period between checking is two weeks.
Rob Norris [Wed, 29 May 2013 23:10:40 +0000 (00:10 +0100)]
Map data license does not need to be shown every time for the default map.
Rob Norris [Sun, 19 May 2013 13:16:02 +0000 (14:16 +0100)]
On the very first startup, ask whether internet related options should default to on.
Rob Norris [Fri, 26 Apr 2013 00:55:51 +0000 (01:55 +0100)]
Enable detection of when Viking is run for the very first time.
Rob Norris [Thu, 23 May 2013 23:34:27 +0000 (00:34 +0100)]
Enable an optional automatic IP to location startup mode - mainly for new users to get going more easily.
The location is (attempted to be) determined by http:/www.hostip.info/
Rob Norris [Thu, 18 Apr 2013 19:13:00 +0000 (20:13 +0100)]
Enable Startup Method option to choose between using the home position, last position or loading a specified file.
Rob Norris [Sat, 20 Apr 2013 00:42:03 +0000 (01:42 +0100)]
Add a startup option to load a default map (as defined by layer default for the map layer).
It won't add a map if Viking project file is loaded.
Rob Norris [Fri, 19 Apr 2013 23:42:11 +0000 (00:42 +0100)]
Add preference to control whether the auto window settings should be used.
Rob Norris [Fri, 19 Apr 2013 22:41:45 +0000 (23:41 +0100)]
Start Startup preferences
Rob Norris [Thu, 23 May 2013 22:24:45 +0000 (23:24 +0100)]
Use settings to allow configuration of max background threads.
Rob Norris [Sat, 4 May 2013 14:30:16 +0000 (15:30 +0100)]
Use settings to maintain the track properties dialog size between invocations.
Allow resizing back down to a minimal size after being created at a larger size.
Rob Norris [Sat, 4 May 2013 12:36:25 +0000 (13:36 +0100)]
Use settings to allow configuration of hardcoded map display performance values.
Rob Norris [Fri, 19 Apr 2013 19:59:17 +0000 (20:59 +0100)]
Use settings to save and restore Geotag values.
Rob Norris [Fri, 19 Apr 2013 19:58:33 +0000 (20:58 +0100)]
Use settings to save and restore the Goto Provider selected.
Rob Norris [Fri, 19 Apr 2013 19:57:39 +0000 (20:57 +0100)]
Use settings for OSM Traces visibility value.
Rob Norris [Sun, 17 Feb 2013 01:12:12 +0000 (01:12 +0000)]
Save and restore the generate image values using the settings mechanism.
Rob Norris [Thu, 14 Feb 2013 18:35:58 +0000 (18:35 +0000)]
[QA] Tidy up general preferences into single array