Rob Norris [Wed, 1 Jan 2014 17:22:26 +0000 (17:22 +0000)]
Enable JPG files as a primary supported type.
The bonus of this besides being able to load via the File->Open method,
is being able to add image waypoints by drag and drop of JPG files into the viewport.
Rob Norris [Fri, 6 Dec 2013 23:56:05 +0000 (23:56 +0000)]
Enable double clicking as an optional way to control zooming in pan mode.
Double click of the left (primary) mouse will zoom in.
Double click of the right (secondary) mouse will zoom out.
Make use of a timeout function to wait and see if a double click event occurs.
If it hasn't then the timeout will action the single click request
(to recenter the display to the clicked location).
Rob Norris [Wed, 20 Nov 2013 22:02:24 +0000 (22:02 +0000)]
RedNotebook 1.7.3+ integration to open the diary program on a specific date.
It opens the diary program on the day of the selected track or waypoint.
Requires RedNotebook 1.7.3+ to support opening on the specified date.
This is only made available if an appropriate version of RedNotebook is detected.
Rob Norris [Tue, 5 Nov 2013 00:33:06 +0000 (00:33 +0000)]
Enable a history of requested positions.
Positions are stored on specific Go To requests (such entered position coordinates or to waypoint/track positions).
Currently panning and zooming do not modify the requested position.
Moving backwards and forwards through the list is supported sort of like a web browsers history of pages.
As the positions are not specifically named (just raw coordinates),
nothing advanced like showing the list of positions or jumping over multiple positions is offered.
Finer details such as the maximum size of the history list are controlled by Viking's internal preferences.
Rob Norris [Thu, 14 Nov 2013 23:19:41 +0000 (23:19 +0000)]
Support using multiple Viking files with relative paths.
Always calculate the canonical form for file references internally,
so that they are always accessible.
When saved the relative path will be calculated if necessary.
Thus on file opening there is no further need for changing the working directory.
Rob Norris [Wed, 30 Oct 2013 00:19:18 +0000 (00:19 +0000)]
Fix opening files on command line in different directories.
Restrict the changing of the working directory when handling the Viking file type,
since that is the only type (as far as I know) that supports relative file paths
(mostly for optional relative paths for Waypoint Images).
Restore the working directory to the previous value once the file has been used.
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.