]>
git.street.me.uk Git - andy/viking.git/log
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
Rob Norris [Fri, 8 Feb 2013 19:31:13 +0000 (19:31 +0000)]
Use settings to store GPS values for reuse.
Rob Norris [Thu, 18 Apr 2013 19:11:50 +0000 (20:11 +0100)]
Alphabetized TrackWaypoint layer ordering is now a configurable run time setting.
Rob Norris [Tue, 29 Jan 2013 20:35:55 +0000 (20:35 +0000)]
Use settings to store Window layout states
Rob Norris [Tue, 29 Jan 2013 20:35:40 +0000 (20:35 +0000)]
First iteration of internal settings
Rob Norris [Wed, 12 Jun 2013 19:23:00 +0000 (20:23 +0100)]
Fix track not displayed from realtime GPS tracking.
Need to calculate the bounds of track,
as follow on from optimization commits SHA1:
80169badb016873d8a2e674e32820ecbe32d6788
Add method to only consider the last trackpoint added,
otherwise for creating very long tracks it will get progressively slower.
Rob Norris [Tue, 11 Jun 2013 19:51:05 +0000 (20:51 +0100)]
Add a simple file properties dialog to show some details for a Viking file:
.the full filename path
.the modification time (useful to know when last saved)
.the file size
Rob Norris [Tue, 11 Jun 2013 20:01:05 +0000 (21:01 +0100)]
Fix usage of default maps cache directory when it does not end in a separator.
Seems on Windows the preference 'maplayer_default_dir' does not end in a separator.
Thus when using the default value directly in downloading maps, the directory structure is not be created as expected.
Hence ensure for internal usage the cache_dir always ends with a separator.
This also fixes usage when the preferences is manually edited and the map default doesn't end in a separator.
Guilhem Bonnefille [Sun, 9 Jun 2013 20:38:20 +0000 (22:38 +0200)]
[DOC] Add documentation on new public routing function
Guilhem Bonnefille [Sun, 9 Jun 2013 20:36:42 +0000 (22:36 +0200)]
[QA] minor revision on cast operators
Rob Norris [Mon, 3 Jun 2013 18:10:07 +0000 (19:10 +0100)]
[QA] Fix incorrect comment
Recent commit SHA1:
82c4d69225945223917c65e3ce73adee7118951c fixes the issue.
Guilhem Bonnefille [Sun, 2 Jun 2013 19:45:59 +0000 (21:45 +0200)]
QA: Add glib.h
Guilhem Bonnefille [Sun, 2 Jun 2013 19:40:05 +0000 (21:40 +0200)]
Ensure all buildable types are registered
Guilhem Bonnefille [Sat, 1 Jun 2013 21:09:11 +0000 (23:09 +0200)]
Fix doc: Replace simple quotes by DocBook tags
Rob Norris [Sun, 20 Jan 2013 15:09:25 +0000 (15:09 +0000)]
Add Show/Hide all Layers within an Aggregate Layer.
Especially useful for managing groups of TrackWaypoint Layers within an Aggregate Layer.
Includes toggling the visibility
Rob Norris [Wed, 21 Sep 2011 22:46:30 +0000 (23:46 +0100)]
SF#
3314896 : Show/Hide All Tracks (Routes+Waypoints too) of a Layer.
Includes toggling the visibility
Rob Norris [Thu, 23 May 2013 23:32:23 +0000 (00:32 +0100)]
[QA] Fix missing G_BEGIN/END_DECLS
Rob Norris [Thu, 23 May 2013 21:47:48 +0000 (22:47 +0100)]
Automated check for the latest version. ATM only on Windows systems.
Access the 'VERSION' file on the website which should hold the latest Viking version.
Rob Norris [Fri, 26 Apr 2013 17:12:00 +0000 (18:12 +0100)]
Enable getting Viking Version as a number from a string to enable comparisons.
Rob Norris [Wed, 29 May 2013 19:46:35 +0000 (20:46 +0100)]
SF#
3613971 : Remove Geofabrik's OpenStreetMap WMS, as it is not for public use.
Remember to remove from the example config too.
Rob Norris [Wed, 29 May 2013 17:49:45 +0000 (18:49 +0100)]
SF#
3613971 : Remove Geofabrik's OpenStreetMap WMS, as it is not for public use.
It no longer works without an appropriate account.
Guilhem Bonnefille [Mon, 27 May 2013 20:08:18 +0000 (22:08 +0200)]
Fix GLib macros typo
Guilhem Bonnefille [Mon, 27 May 2013 11:10:04 +0000 (13:10 +0200)]
QA: factorize GObject cast operations (datasource_osm_my_traces.c)
GObject cast operation consume CPU, so it could be useful to reduce the
number of call (even if it is low consumption).
Furthermore, it is better to have small source code lines.
Guilhem Bonnefille [Mon, 27 May 2013 11:09:47 +0000 (13:09 +0200)]
QA: factorize GObject cast operations (datasource_osm.c)
GObject cast operation consume CPU, so it could be useful to reduce the
number of call (even if it is low consumption).
Furthermore, it is better to have small source code lines.
Guilhem Bonnefille [Mon, 27 May 2013 11:09:31 +0000 (13:09 +0200)]
QA: factorize GObject cast operations (datasource_google.c)
GObject cast operation consume CPU, so it could be useful to reduce the
number of call (even if it is low consumption).
Furthermore, it is better to have small source code lines.
Guilhem Bonnefille [Mon, 27 May 2013 11:09:17 +0000 (13:09 +0200)]
QA: factorize GObject cast operations (datasource_geotag.c)
GObject cast operation consume CPU, so it could be useful to reduce the
number of call (even if it is low consumption).
Furthermore, it is better to have small source code lines.
Guilhem Bonnefille [Mon, 27 May 2013 11:08:57 +0000 (13:08 +0200)]
QA: factorize GObject cast operations (datasource_gc.c)
GObject cast operation consume CPU, so it could be useful to reduce the
number of call (even if it is low consumption).
Furthermore, it is better to have small source code lines.
Guilhem Bonnefille [Mon, 27 May 2013 11:08:40 +0000 (13:08 +0200)]
QA: factorize GObject cast operations (datasource_file.c)
GObject cast operation consume CPU, so it could be useful to reduce the
number of call (even if it is low consumption).
Furthermore, it is better to have small source code lines.
Rob Norris [Sat, 25 May 2013 10:37:50 +0000 (11:37 +0100)]
[QA] Revise direct access for '->vbox' to use gtk_dialog_get_content_area() instead.
Rob Norris [Fri, 28 Jan 2011 02:23:59 +0000 (02:23 +0000)]
Add ability to Download Maps for a defined region over several Zoom levels.
Tidied up some personal code I wrote ages ago, that enables downloading of a lot of tiles at once.
Primarily intended for getting the tiles into the cache for later off line usage.
There are some hardcoded limits: 500 tiles before asking for confirmation and an absolute 5000 max.
Promote this code for public use since Marble has had this feature for while, seemingly with no complaints.
See:
http://docs.kde.org/development/en/kdeedu/marble/download-region.html
Rob Norris [Sat, 25 May 2013 09:01:27 +0000 (10:01 +0100)]
Don't silently fail on attempting to split to a track.
Annoyingly my new GPS output had a dodgy timed trackpoint,
so I was wondering why the split functionality wasn't working.
This now gives a chance to go to the offending point,
so that hopefully if it's only one, one can delete it to fix the issue.
Rob Norris [Fri, 24 May 2013 18:05:34 +0000 (19:05 +0100)]
Fix selection of trackpoint via Edit Trackpoint button.
Need to set current bounding box for the trackpoint search.
Error was introduced by commit SHA1:
79773236f27a9ab34622b2739f929737144b67b2
Guilhem Bonnefille [Fri, 24 May 2013 18:43:30 +0000 (20:43 +0200)]
Routing: refactor
All related Web stuff should be hosted by VikRoutingWebEngine.
Ideally, VikRoutingEngine should stay independent from any
technical implementation.
For exemple, we can imagine a future set of routing engine
running offline.
Signed-off-by: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
Guilhem Bonnefille [Fri, 24 May 2013 18:43:30 +0000 (20:43 +0200)]
Routing: suppress Google
Suppress Google specific code as all can be done via generic
web engine.
Signed-off-by: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
Guilhem Bonnefille [Fri, 24 May 2013 18:43:30 +0000 (20:43 +0200)]
Routing: suppress OSRM specific code
All OSRM feature can be implemented with generic routing engine.
Signed-off-by: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
Guilhem Bonnefille [Fri, 24 May 2013 18:43:29 +0000 (20:43 +0200)]
Generalize routing engine
Most routing WEB services works the same way.
This class allow to add a routing engine, by simply setting some
properties.
Signed-off-by: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
Rob Norris [Fri, 26 Apr 2013 17:01:07 +0000 (18:01 +0100)]
[QA] Prevent Gtk-Critical warnings on trying to use NULL strings on file entry widgets.
Rob Norris [Thu, 23 May 2013 21:35:41 +0000 (22:35 +0100)]
Fix Drag and Drop file loading on Windows.
Rob Norris [Fri, 17 May 2013 10:12:33 +0000 (11:12 +0100)]
Prevent gcc 4.7.3 compiler warnings for new routing code.
Rob Norris [Wed, 22 May 2013 23:11:26 +0000 (00:11 +0100)]
Support new versions of depreciated g_thread_* functions for glib 2.32
Rob Norris [Wed, 22 May 2013 19:23:23 +0000 (20:23 +0100)]
Allow opening of files via Drag and Drop onto the Viewport.
Rob Norris [Wed, 22 May 2013 18:14:19 +0000 (19:14 +0100)]
Fix background thread statusbar update instability.
Previous revision in using signalling method didn't actually ensure the gtk updates were performed in the main thread.
(Commit SHA1:
901423020f8c8fbc41052247ff6d8c9414f8077d although it made it more reliable).
Ensure statusbar updates are performed in the main thread via use of gdk_threads_add_idle() when the update is requested from the background.
Rob Norris [Sun, 19 May 2013 13:15:50 +0000 (14:15 +0100)]
Fix location of gdk_threads_enter() to be before first window creation.
Rob Norris [Fri, 17 May 2013 09:13:47 +0000 (10:13 +0100)]
Allow Bing Map source URL to be set via the configuration XML file.
Currently ATM only the hostname part will be used via a suitable configuration.
Making the URL part of the data structure means it can be overwritten.
This may be helpful in case the URL changes in the future,
so it can be overridden via an entry in the maps.xml file by the end user without requiring code changes.
Guilhem Bonnefille [Thu, 23 May 2013 20:45:31 +0000 (22:45 +0200)]
Doc: improve reference documentation
<tiledir> is interpreted as XML tag and thus, XML parsing fails as
there is no associated closing tag.
Guilhem Bonnefille [Thu, 23 May 2013 20:44:26 +0000 (22:44 +0200)]
QA: add a NULL check
Without this simple workaround, gtkdoc tooling refuse to generate
reference documentation and SegFault.
Guilhem Bonnefille [Thu, 23 May 2013 20:04:38 +0000 (22:04 +0200)]
DOC: add classname tags
Guilhem Bonnefille [Wed, 22 May 2013 20:47:56 +0000 (22:47 +0200)]
Fix vik_routing_register: replace existing engine
When registering an engine with an already existing id,
the previous one is released and the new one is inserted
at the same place.
Guilhem Bonnefille [Wed, 22 May 2013 20:46:31 +0000 (22:46 +0200)]
Remove uneeded (and wrong) finalize functions
Guilhem Bonnefille [Wed, 22 May 2013 20:45:32 +0000 (22:45 +0200)]
Update AC_INIT macro call
Guilhem Bonnefille [Mon, 20 May 2013 20:48:31 +0000 (22:48 +0200)]
Fix compilation warning
Guilhem Bonnefille [Mon, 20 May 2013 20:48:09 +0000 (22:48 +0200)]
Allow to use full URL as download parameter
Guilhem Bonnefille [Thu, 16 May 2013 21:36:09 +0000 (23:36 +0200)]
Add OSRM routing engine
Signed-off-by: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
Guilhem Bonnefille [Thu, 16 May 2013 21:36:09 +0000 (23:36 +0200)]
Generalize route finder
This patch generalize the route finder feature. The goal is to allow
the use of different services to compute a route from two clics.
To achieve this I introduced:
- vik_routing_engine as base class for engines
- vik_routing module for registering engines and providing "default"
features
And I rewrote the Google related feature.
The new design seems quite overkill, but many more feature will be add in
the future. One of them is to rewrite the Acquire -> Google Direction.
An other is to add a "filter" on a route/track in order to allow a finer
route computation, based on more than 2 points.
Signed-off-by: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
Guilhem Bonnefille [Thu, 16 May 2013 21:36:09 +0000 (23:36 +0200)]
Add a fixed combobox for string parameter
Allow to create a fixed (not freely editable) combobox.
Signed-off-by: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
Rob Norris [Sun, 5 May 2013 10:50:00 +0000 (11:50 +0100)]
Oops! Remember to commit new files for DatasourceRemoteFile feature.
Fixes (incomplete) commit SHA1:
82993cc7d379563c9a95e33c5e5369a957b0c121