]> git.street.me.uk Git - andy/viking.git/log
andy/viking.git
11 years ago[QA] minor revision on cast operators
Guilhem Bonnefille [Sun, 9 Jun 2013 20:36:42 +0000 (22:36 +0200)]
[QA] minor revision on cast operators

11 years ago[QA] Fix incorrect comment
Rob Norris [Mon, 3 Jun 2013 18:10:07 +0000 (19:10 +0100)]
[QA] Fix incorrect comment

Recent commit SHA1:82c4d69225945223917c65e3ce73adee7118951c fixes the issue.

11 years agoQA: Add glib.h
Guilhem Bonnefille [Sun, 2 Jun 2013 19:45:59 +0000 (21:45 +0200)]
QA: Add glib.h

11 years agoEnsure all buildable types are registered
Guilhem Bonnefille [Sun, 2 Jun 2013 19:40:05 +0000 (21:40 +0200)]
Ensure all buildable types are registered

11 years agoFix doc: Replace simple quotes by DocBook tags
Guilhem Bonnefille [Sat, 1 Jun 2013 21:09:11 +0000 (23:09 +0200)]
Fix doc: Replace simple quotes by DocBook tags

11 years agoAdd Show/Hide all Layers within an Aggregate Layer.
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

11 years agoSF#3314896: Show/Hide All Tracks (Routes+Waypoints too) of a Layer.
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

11 years ago[QA] Fix missing G_BEGIN/END_DECLS
Rob Norris [Thu, 23 May 2013 23:32:23 +0000 (00:32 +0100)]
[QA] Fix missing G_BEGIN/END_DECLS

11 years agoAutomated check for the latest version. ATM only on Windows systems.
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.

11 years agoEnable getting Viking Version as a number from a string to enable comparisons.
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.

11 years agoSF#3613971: Remove Geofabrik's OpenStreetMap WMS, as it is not for public use.
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.

11 years agoSF#3613971: Remove Geofabrik's OpenStreetMap WMS, as it is not for public use.
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.

11 years agoFix GLib macros typo
Guilhem Bonnefille [Mon, 27 May 2013 20:08:18 +0000 (22:08 +0200)]
Fix GLib macros typo

11 years agoQA: factorize GObject cast operations (datasource_osm_my_traces.c)
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.

11 years agoQA: factorize GObject cast operations (datasource_osm.c)
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.

11 years agoQA: factorize GObject cast operations (datasource_google.c)
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.

11 years agoQA: factorize GObject cast operations (datasource_geotag.c)
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.

11 years agoQA: factorize GObject cast operations (datasource_gc.c)
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.

11 years agoQA: factorize GObject cast operations (datasource_file.c)
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.

11 years ago[QA] Revise direct access for '->vbox' to use gtk_dialog_get_content_area() instead.
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.

11 years agoAdd ability to Download Maps for a defined region over several Zoom levels.
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

11 years agoDon't silently fail on attempting to split to a track.
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.

11 years agoFix selection of trackpoint via Edit Trackpoint button.
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

11 years agoRouting: refactor
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>
11 years agoRouting: suppress Google
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>
11 years agoRouting: suppress OSRM specific code
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>
11 years agoGeneralize routing engine
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>
11 years ago[QA] Prevent Gtk-Critical warnings on trying to use NULL strings on file entry widgets.
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.

11 years agoFix Drag and Drop file loading on Windows.
Rob Norris [Thu, 23 May 2013 21:35:41 +0000 (22:35 +0100)]
Fix Drag and Drop file loading on Windows.

11 years agoPrevent gcc 4.7.3 compiler warnings for new routing code.
Rob Norris [Fri, 17 May 2013 10:12:33 +0000 (11:12 +0100)]
Prevent gcc 4.7.3 compiler warnings for new routing code.

11 years agoSupport new versions of depreciated g_thread_* functions for glib 2.32
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

11 years agoAllow opening of files via Drag and Drop onto the Viewport.
Rob Norris [Wed, 22 May 2013 19:23:23 +0000 (20:23 +0100)]
Allow opening of files via Drag and Drop onto the Viewport.

11 years agoFix background thread statusbar update instability.
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.

11 years agoFix location of gdk_threads_enter() to be before first window creation.
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.

11 years agoAllow Bing Map source URL to be set via the configuration XML file.
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.

11 years agoDoc: improve reference documentation
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.

11 years agoQA: add a NULL check
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.

11 years agoDOC: add classname tags
Guilhem Bonnefille [Thu, 23 May 2013 20:04:38 +0000 (22:04 +0200)]
DOC: add classname tags

11 years agoFix vik_routing_register: replace existing engine
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.

11 years agoRemove uneeded (and wrong) finalize functions
Guilhem Bonnefille [Wed, 22 May 2013 20:46:31 +0000 (22:46 +0200)]
Remove uneeded (and wrong) finalize functions

11 years agoUpdate AC_INIT macro call
Guilhem Bonnefille [Wed, 22 May 2013 20:45:32 +0000 (22:45 +0200)]
Update AC_INIT macro call

11 years agoFix compilation warning
Guilhem Bonnefille [Mon, 20 May 2013 20:48:31 +0000 (22:48 +0200)]
Fix compilation warning

11 years agoAllow to use full URL as download parameter
Guilhem Bonnefille [Mon, 20 May 2013 20:48:09 +0000 (22:48 +0200)]
Allow to use full URL as download parameter

11 years agoAdd OSRM routing engine
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>
11 years agoGeneralize route finder
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>
11 years agoAdd a fixed combobox for string parameter
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>
11 years agoOops! Remember to commit new files for DatasourceRemoteFile feature.
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

11 years agoSF#3601584: Fix minimum vertical size for the track properties dialog.
Rob Norris [Sat, 4 May 2013 14:27:27 +0000 (15:27 +0100)]
SF#3601584: Fix minimum vertical size for the track properties dialog.

11 years agoMerge branch 'DatasourceRemoteFile'
Rob Norris [Thu, 2 May 2013 23:51:27 +0000 (00:51 +0100)]
Merge branch 'DatasourceRemoteFile'

11 years agoAdd support for acquiring OpenStreetMap Notes as GPX files.
Rob Norris [Thu, 2 May 2013 23:27:29 +0000 (00:27 +0100)]
Add support for acquiring OpenStreetMap Notes as GPX files.

11 years ago[DOC] Explain datasources.xml usage.
Rob Norris [Sun, 3 Mar 2013 10:57:23 +0000 (10:57 +0000)]
[DOC] Explain datasources.xml usage.

Add an example datasources.xml file.

11 years agoAdd a new webtool datasource to allow acquiring data from URLs that return a file.
Rob Norris [Sun, 3 Mar 2013 10:55:29 +0000 (10:55 +0000)]
Add a new webtool datasource to allow acquiring data from URLs that return a file.

Adds a built in OpenStreetBugs extension.

Allows defining your own datasource references via a datasources.xml file,
 similar to the external_tools.xml methods.

The URL format reference encodes how the location (and zoom) parameters are substituted.
The file type returned should be specified and is passed on for the -i parameter for GPSBabel.

11 years agoRework mpp_to_zoom() to return the actual zoom level and handle all Viking zoom levels.
Rob Norris [Sun, 3 Mar 2013 10:06:08 +0000 (10:06 +0000)]
Rework mpp_to_zoom() to return the actual zoom level and handle all Viking zoom levels.

This now allows 'OSM (Edit)' to work up to the maximum zoomed in level.

11 years ago[DOC] Promote Extending Viking to the top level section in the manual.
Rob Norris [Sun, 3 Mar 2013 01:55:52 +0000 (01:55 +0000)]
[DOC] Promote Extending Viking to the top level section in the manual.

11 years ago[DOC] Ids are not necessary in these configuration files.
Rob Norris [Sun, 3 Mar 2013 01:55:16 +0000 (01:55 +0000)]
[DOC] Ids are not necessary in these configuration files.

11 years agoMake mpp_to_zoom() a generic function
Rob Norris [Sat, 2 Mar 2013 21:26:19 +0000 (21:26 +0000)]
Make mpp_to_zoom() a generic function

It doesn't rely on any Webtool center data.

11 years agoPrepare for dynamic VikDataSourceInterface creation/deletion.
Rob Norris [Sat, 2 Mar 2013 18:29:36 +0000 (18:29 +0000)]
Prepare for dynamic VikDataSourceInterface creation/deletion.

Allow passing in of data into the acquire method.
Enable a function callback on completion of the acquire method,
 thus can free the allocated memory of the VikDataSourceInterface itself.

11 years agoMake window related values available on acquire initialisation.
Rob Norris [Tue, 19 Feb 2013 19:13:40 +0000 (19:13 +0000)]
Make window related values available on acquire initialisation.

Primarily to enable getting the viewport, but without going through the add_setup_widgets stage.
Thus it enables an acquire method to start without further user input.

11 years agoEnsure string is long enough for potential dates.
Rob Norris [Thu, 2 May 2013 23:41:08 +0000 (00:41 +0100)]
Ensure string is long enough for potential dates.

I don't know if any locales have longish formats, but it won't do any harm to be able to show them fully.

11 years agoSimpler and better use of time display for tracks.
Rob Norris [Wed, 1 May 2013 00:30:55 +0000 (01:30 +0100)]
Simpler and better use of time display for tracks.

Make consistent use of time format as used in trackpoint and waypoint displays.

11 years agoSimpler and better use of time display for trackpoints.
Rob Norris [Wed, 1 May 2013 00:20:35 +0000 (01:20 +0100)]
Simpler and better use of time display for trackpoints.

This may now show the timezone and no longer have to worry about the newline.
So for example it's easier to see times that were GMT or BST.

11 years agoAdd display of Waypoint time property (only when waypoint has a time).
Rob Norris [Tue, 30 Apr 2013 19:54:05 +0000 (20:54 +0100)]
Add display of Waypoint time property (only when waypoint has a time).

ATM This field is read only.

11 years agoAdd time property to Waypoints since it's in the GPX1.0 standard.
Rob Norris [Tue, 30 Apr 2013 19:47:17 +0000 (20:47 +0100)]
Add time property to Waypoints since it's in the GPX1.0 standard.

Waypoints with timestamps are written by my Garmin Etrex 20,
so I want to be able to use them!

11 years agoFix waypoints may not be shown if drag copied between layers.
Rob Norris [Mon, 29 Apr 2013 18:17:46 +0000 (19:17 +0100)]
Fix waypoints may not be shown if drag copied between layers.

Need to recalculate waypoint bounds in all drag circumstances.

11 years agoEnable changing name of an existing waypoint in the Waypoint Properties dialog.
Rob Norris [Wed, 24 Apr 2013 18:17:37 +0000 (19:17 +0100)]
Enable changing name of an existing waypoint in the Waypoint Properties dialog.

11 years agoCorrect tooltip message for paste behaviour
Rob Norris [Wed, 24 Apr 2013 11:27:23 +0000 (12:27 +0100)]
Correct tooltip message for paste behaviour

11 years agoScope to include additional menu items for an Aggregate Layer.
Rob Norris [Wed, 21 Sep 2011 22:47:42 +0000 (23:47 +0100)]
Scope to include additional menu items for an Aggregate Layer.

11 years agoAdd simple dialog to show DEM file information.
Rob Norris [Wed, 17 Apr 2013 20:35:02 +0000 (21:35 +0100)]
Add simple dialog to show DEM file information.

Includes source of DEM file data and filename+timestamp of the file
on disk.

Based on the methods used in the dialog to show map tile information.

11 years agoRelicensing source code from GPLv3+ to GPLv2+
Guilhem Bonnefille [Sat, 27 Apr 2013 00:35:02 +0000 (01:35 +0100)]
Relicensing source code from GPLv3+ to GPLv2+

Robert and Guilhem edited these files.

Signed-off-by: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
Signed-off-by: Rob Norris <rw_norris@hotmail.com>
11 years agoPrevent cut/copy/paste options appearing in the popup menu from the '+' layer button.
Rob Norris [Fri, 26 Apr 2013 23:13:48 +0000 (00:13 +0100)]
Prevent cut/copy/paste options appearing in the popup menu from the '+' layer button.

Accidentally exposed in commit SHA1:ed15c3ff0c21b3e33c34a110e09c6a224fe2dfc7

11 years ago[QA] Remove spurious commented out code.
Rob Norris [Fri, 26 Apr 2013 17:03:04 +0000 (18:03 +0100)]
[QA] Remove spurious commented out code.

Accidentally checked in with commit SHA1:9fbae581e4abcf0e34f738195af8184754c85e35

11 years agoWaive copyright on my accessory scripts to build Viking on Windows.
Rob Norris [Fri, 26 Apr 2013 16:58:02 +0000 (17:58 +0100)]
Waive copyright on my accessory scripts to build Viking on Windows.

I held the copyright on these files until now.

Signed-off-by: Rob Norris <rw_norris@hotmail.com>
11 years agoRemove shell script as route capabilities are now in Viking.
Rob Norris [Fri, 26 Apr 2013 16:13:45 +0000 (17:13 +0100)]
Remove shell script as route capabilities are now in Viking.

11 years ago[QA] Protection from trying to use small values in the zoom combo box.
Rob Norris [Fri, 26 Apr 2013 16:57:18 +0000 (17:57 +0100)]
[QA] Protection from trying to use small values in the zoom combo box.

11 years agoFix incorrect setting to lowest zoom value when clicking away from the statusbar...
Rob Norris [Fri, 26 Apr 2013 16:08:47 +0000 (17:08 +0100)]
Fix incorrect setting to lowest zoom value when clicking away from the statusbar zoom menu.

The only happens on the very first time since the active menu entry is not assigned and so defaults to first entry.
Unfortunately in GTK+ clicking away from the zoom menu still generates a 'selection-done' callback.
Thus ensure an active menu entry is set on initialization.

11 years ago[QA] Improve create zoom menu to use G_N_ELEMENTS to know array bounds.
Rob Norris [Fri, 26 Apr 2013 16:03:07 +0000 (17:03 +0100)]
[QA] Improve create zoom menu to use G_N_ELEMENTS to know array bounds.

11 years agoRelicensing source code from GPLv3+ to GPLv2+
Guilhem Bonnefille [Fri, 26 Apr 2013 22:21:42 +0000 (00:21 +0200)]
Relicensing source code from GPLv3+ to GPLv2+

I'm the copyright owner of these codes.

Signed-off-by: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
11 years agoGeocaching: fix geotools call when locale is not C
Guilhem Bonnefille [Fri, 26 Apr 2013 21:43:26 +0000 (23:43 +0200)]
Geocaching: fix geotools call when locale is not C

In my locale, the call was made with a comma as decimal separator.
The backend tool was unable to understand the required coordinates.

The latitude and longitude are now serialized in C locale before their
insertion in the command line.

11 years agoFix may crash on exporting to GPX. Caused by recent commit.
Rob Norris [Mon, 22 Apr 2013 22:53:20 +0000 (23:53 +0100)]
Fix may crash on exporting to GPX. Caused by recent commit.

Need to reset reused variable before adding to the list.
(My) Offending commit was SHA1:b02cd3a307f3412077e853026e164e99d34c8476

11 years agoSet the generate image file filter according to the file type selected.
Rob Norris [Sun, 17 Feb 2013 01:11:14 +0000 (01:11 +0000)]
Set the generate image file filter according to the file type selected.

11 years agoFix a_vik_gpx_export_wpt_sym_name internal type
Rob Norris [Sat, 20 Apr 2013 00:49:54 +0000 (01:49 +0100)]
Fix a_vik_gpx_export_wpt_sym_name internal type

11 years agoReally fix showing map timestamps on Windows on the map tile info dialog.
Rob Norris [Wed, 17 Apr 2013 20:33:51 +0000 (21:33 +0100)]
Really fix showing map timestamps on Windows on the map tile info dialog.

For some reason it would always show '(null)', so revert back to strftime() and use gmtime() too.
Ditch the gdate stuff as it doesn't simplify the code either

11 years agoAdd 'Creation' sort option for saving GPX tracks.
Rob Norris [Sun, 7 Apr 2013 11:38:02 +0000 (12:38 +0100)]
Add 'Creation' sort option for saving GPX tracks.

This will then save tracks in the order they were read in or created.

11 years agoSF#3387591: Improve keyboard copy+paste behaviour when the editing a layer name in...
Rob Norris [Wed, 3 Apr 2013 22:34:07 +0000 (23:34 +0100)]
SF#3387591: Improve keyboard copy+paste behaviour when the editing a layer name in the treeview.

Since the default keyboard shortcuts are overridden, we handle them even when a cell is being edited.
Ensure when editing that keyboard shortcuts do something more sensible then copy/pasting layer data.
Thus as we can't get to the internals of the text actually selected,
just copy and paste the layer name.

This also means we can accept pasting in plain text, which can be useful in naming layers.

Also ignore ctrl+<arrow> when editing the treeview which otherwise moves the viewport.

11 years agoSF#3608417: Add Preference option to control the display of the track creation distan...
Rob Norris [Sun, 24 Mar 2013 17:25:23 +0000 (17:25 +0000)]
SF#3608417: Add Preference option to control the display of the track creation distance tooltip.

Since the distance is also shown in the statusbar, one may consider the tooltip to get in the way.
Thus you can now turn it off.

11 years agoReduce wasted space in the Preferences dialog if there are lots of tabs.
Rob Norris [Sun, 17 Mar 2013 20:55:54 +0000 (20:55 +0000)]
Reduce wasted space in the Preferences dialog if there are lots of tabs.

Switch to tabs being vertically listed on the left if there are 'a lot' of them.
[NB thus doesn't effect the TrackWaypoint layer properties layout]

11 years agoSF#2998555: Control of saving Absolute vs Relative Paths in .vik files
Rob Norris [Sun, 24 Mar 2013 17:05:20 +0000 (17:05 +0000)]
SF#2998555: Control of saving Absolute vs Relative Paths in .vik files

For any file name paths potentially save in relative (../../ etc...) style if specified by the preferences.

Affects:
. Waypoint images
. DEM file list
. Map directory cache
. GeoRef file image

A new level of 'Advanced' preferences tab has been created to store the controlling setting.

11 years agoAdd 'Advanced' preferences tab.
Rob Norris [Sun, 24 Mar 2013 17:04:15 +0000 (17:04 +0000)]
Add 'Advanced' preferences tab.

11 years agoMake more portable .vik file, as don't save the map cache directory if it's the map...
Rob Norris [Sun, 17 Mar 2013 20:05:06 +0000 (20:05 +0000)]
Make more portable .vik file, as don't save the map cache directory if it's the map cache default directory.

The map cache default directory is dependent on the user and OS, however on reading in when it's blank it automatically puts in the map cache default directory.

Unlike the previous effort SHA1: 39aec6c6b87a324981a6e1d028ba345320a444ad
This uses the fixed value MAPS_CACHE_DIR rather than the preference value in case the preference has changed.

11 years agoSF#3028797: Remember last directory used when saving / opening main files.
Rob Norris [Sun, 17 Mar 2013 17:08:45 +0000 (17:08 +0000)]
SF#3028797: Remember last directory used when saving / opening main files.

By changing the working directory potentially allows opening files with relative paths to work.

11 years agoSF#3610708: Fix Failing to Load DEM files on Big Endian Systems.
Michael Klein [Tue, 16 Apr 2013 22:04:22 +0000 (23:04 +0100)]
SF#3610708: Fix Failing to Load DEM files on Big Endian Systems.

Endian awareness is needed in unzip_hgt_file() for processing DEM zip file headers, as the values are in little-endian byte order.
Otherwise loading on a big-endian system such as a PowerPC Mac will fail with the program complaining 'wrong format' for the DEM file.

See http://en.wikipedia.org/wiki/Zip_(file_format)

Signed-off-by: Rob Norris <rw_norris@hotmail.com>
11 years ago[DOC] Minor improve
Guilhem Bonnefille [Thu, 11 Apr 2013 20:29:54 +0000 (22:29 +0200)]
[DOC] Minor improve

11 years agoImport Launchpad translation updates for Asturian language
Rob Norris [Wed, 10 Apr 2013 20:05:56 +0000 (21:05 +0100)]
Import Launchpad translation updates for Asturian language

Translation created by Xuacu Saturio

11 years agoFix Double defined msgid's in po-files.
Wolfgang Goetz [Wed, 10 Apr 2013 19:54:55 +0000 (20:54 +0100)]
Fix Double defined msgid's in po-files.

Unfortunately due to previous commit in simplying the code, which then caused an incorrect commit:
'Update translations for layers menu popup which no longer have to start with '/''
SHA1:33a5209f18fdddfa011eabc3d4834cc23bef5955.

Which aligned the translation to the code. However Po files don't allow repeated text strings as ids.

Simply remove the secondary copy in most places and for the da translation copy the texts into the first place.

Signed-off-by: Rob Norris <rw_norris@hotmail.com>
11 years agoMerge branch 'GTK+-Updates'
Rob Norris [Wed, 10 Apr 2013 18:10:43 +0000 (19:10 +0100)]
Merge branch 'GTK+-Updates'

11 years agoCreate own marshal_VOID__POINTER_POINTER function.
Rob Norris [Mon, 18 Mar 2013 21:36:28 +0000 (21:36 +0000)]
Create own marshal_VOID__POINTER_POINTER function.

At some point gtk_marshal_VOID__POINTER_POINTER() is removed (in GTK3 I think).
Thus create our own version, similar to one already in print-preview.c

11 years agoDon't use deprecated Gtk Type Objects - use G Type Objects instead.
Rob Norris [Mon, 18 Mar 2013 21:16:45 +0000 (21:16 +0000)]
Don't use deprecated Gtk Type Objects - use G Type Objects instead.

11 years ago[QA] Remove old checks for minimum GTK+2.10, since we require 2.14.
Rob Norris [Mon, 18 Mar 2013 20:30:03 +0000 (20:30 +0000)]
[QA] Remove old checks for minimum GTK+2.10, since we require 2.14.

11 years agoIf using GTK+2.24 or later don't use depreciated about dialog features as not needed...
Rob Norris [Mon, 18 Mar 2013 20:29:10 +0000 (20:29 +0000)]
If using GTK+2.24 or later don't use depreciated about dialog features as not needed any more.

11 years agoRework combo boxes to work with GTK+2.24 or earlier.
Rob Norris [Mon, 18 Mar 2013 00:40:49 +0000 (00:40 +0000)]
Rework combo boxes to work with GTK+2.24 or earlier.

Create own redirection definitions to keep the real code simpler.