Rob Norris [Mon, 28 Oct 2013 00:05:22 +0000 (00:05 +0000)]
Basic support of some GPX Metadata values common to GPX1.0 and GPX1.1
Includes the fields: name, description, author, time, and keywords.
ATM the time is a read-only value loaded from a GPX file (no GUI way to alter it).
If there is no value or it's a new TrackWaypoint layer then the value auto generated from the earliest track or waypoint
or else from the current time.
Rob Norris [Wed, 18 Sep 2013 21:23:54 +0000 (22:23 +0100)]
Remove never used GPS layer drag drop request function.
Seemingly never used and it's not clear what it was meant to achieve.
Even if it was invoked, it would have aborted the program anyway:
as it was the only user of vik_gps_layer_delete()
which would have failed on the number of disconnect signals never equalling 1.
A good practice in translation is to avoid to concat strings but use
%s C format argument. This allow translators to decide where to put the
argument in the translated string.
Rob Norris [Fri, 27 Sep 2013 23:43:53 +0000 (00:43 +0100)]
Expand mapcache hash to include a hash of the map filename (if there is one).
This enables having multiple MBTiles (or multiple on Disk OSM Tile Format) Maps,
since they each respectively have the same Map Id number,
previously the hash key would have clashed.
Rob Norris [Thu, 26 Sep 2013 18:13:42 +0000 (19:13 +0100)]
Enable widget sensitivity in the layer properties to be controlled.
Some settings are only relevant when other settings are in the right state.
Allow control of the sensitivities to be adjusted when changes to the widget values have been made.
Changes to each widget have to be considered separately (referenced via the parameter enumeration numbers).
Also expose the label widgets so they many be controlled.
ATM control these settings:
Maps:
Auto Download -> Auto Download Only Missing
TrackWaypoints:
Waypoint Draw Labels -> Font Size, Colour, BG Colour & BG Translucency.
Waypoint Draw Image -> Image Size, Image Alpha + Cache Size.
Track Draw Mode -> All Tracks Colour
NB Since most track settings have been split across into the Advanced tab,
IMHO controlling sensitivities of widgets in another tab is not obvious,
so these relationships have not been changed.
Rob Norris [Sat, 12 Oct 2013 10:00:06 +0000 (11:00 +0100)]
Remove OSM web link layer options so you now get what ever is the OSM default.
At some point in time these layer options must have changed in OSM,
as a long time ago (late 2008) I think our intention was meant to go to Mapnik view,
however it would now give the Transport Layer map (which didn't exist back then).
Rob Norris [Wed, 2 Oct 2013 20:27:44 +0000 (21:27 +0100)]
SF Features#116: Add an Acquire From URL option.
Add a dialog to download a file from a specific URL directly into Viking,
using the datasource methods.
By default the downloaded file will be opened as a GPX,
but any file type supported by GPSBabel can be specified
(as used by the Import from File option).
If the URL does not resolve, does not return a file, or the file can not be interpreted,
then simply this will give 'Acquisition Error'
Rob Norris [Wed, 2 Oct 2013 01:45:54 +0000 (02:45 +0100)]
Fix the default value for getting the GPS Protocol in acquire.
Not quite sure what I was thinking when I originally wrote this,
as the 'garmin_entry' variable is never really used.
Subsequently I have had to replace my GPS, which now uses the file system,
so I don't use the GPS Protocol method any more so I didn't notice this issue.
Rob Norris [Sat, 28 Sep 2013 12:21:20 +0000 (13:21 +0100)]
Fix incorrectly updating files during geotagging that are read only.
No need to remove the file first (which always works),
since the file is truncated on successful fopen(..,"wb").
Now the fopen() call will not succeed on a read only file and so will not attempt to write.
Rob Norris [Sat, 28 Sep 2013 10:42:07 +0000 (11:42 +0100)]
SF Features#115: Part 1. Add the ability to Geotag multiple images against a Waypoint.
Reuse the general Geotagging Dialog and disable the create/update waypoint options when invoked on a waypoint.
When run against waypoints simply use the position of the waypoint to geotag each image (no interpolation required).
Add feedback to the statusbar should writing the EXIF fail.
Rob Norris [Sun, 15 Sep 2013 13:16:59 +0000 (14:16 +0100)]
Show Map License information for each map type only once.
Instead of showing the license each time a map type is added,
save the map types already used into the Viking settings and only display when a new map type is used.
Settings is extended to handle integer lists to achieve this.
Capture changing the map type in the map layer properties which it did not do previously.
Also make the map license information available all of the time from the map layer right click menu.
Rob Norris [Mon, 9 Sep 2013 23:35:43 +0000 (00:35 +0100)]
Add Waypoint List dialog.
The enables viewing lots them with their basic properties (name, date, altitude + comment).
Being in a simple (treeview) list, each column is sortable.
Implementation is very similar to the Track List dialog.