]> git.street.me.uk Git - andy/viking.git/log
andy/viking.git
8 years agoFix to return the correct hash table pointer.
Rob Norris [Tue, 3 May 2016 19:23:10 +0000 (20:23 +0100)]
Fix to return the correct hash table pointer.

Luckily ATM this was only used in one place in the waypoints list dialog.
 (so only prevented selecting a waypoint after choosing to view a specific one).

8 years agoFix to use the correct GC index for drawing track stops.
Rob Norris [Tue, 3 May 2016 19:19:35 +0000 (20:19 +0100)]
Fix to use the correct GC index for drawing track stops.

8 years agoSF Bugs#130: Fix GeoRef layer alpha value change to 255 is ignored until restart
Rob Norris [Mon, 2 May 2016 12:42:37 +0000 (13:42 +0100)]
SF Bugs#130: Fix GeoRef layer alpha value change to 255 is ignored until restart

8 years agoBetter type to remove compiler warning
Rob Norris [Mon, 2 May 2016 11:21:58 +0000 (12:21 +0100)]
Better type to remove compiler warning

8 years agoSecond fix to e778b260c460c218a8efa27c178219cccf731452 to correct elevation output...
Rob Norris [Mon, 2 May 2016 11:21:09 +0000 (12:21 +0100)]
Second fix to e778b260c460c218a8efa27c178219cccf731452 to correct elevation output in GPX files.

8 years agoImprove babel debug output
Rob Norris [Sat, 23 Apr 2016 11:09:08 +0000 (12:09 +0100)]
Improve babel debug output

8 years agoFix e778b260c460c218a8efa27c178219cccf731452 - missed commit of this file.
Rob Norris [Mon, 25 Apr 2016 08:03:36 +0000 (09:03 +0100)]
Fix e778b260c460c218a8efa27c178219cccf731452 - missed commit of this file.

8 years agoReturn function value is ignored in this case.
Rob Norris [Fri, 22 Apr 2016 18:58:36 +0000 (19:58 +0100)]
Return function value is ignored in this case.

8 years agoNotice gps_stream() errors from gpsd
Rob Norris [Fri, 22 Apr 2016 19:27:16 +0000 (20:27 +0100)]
Notice gps_stream() errors from gpsd

As least print something out so one might be aware of it -
 even if we can't do anything about it or flow the error into the GUI.

8 years agoFix small memory leak as this regex should be freed after use.
Rob Norris [Mon, 11 Apr 2016 19:40:29 +0000 (20:40 +0100)]
Fix small memory leak as this regex should be freed after use.

8 years agoUse existing variable rather than explicit name.
Rob Norris [Sat, 9 Apr 2016 16:31:05 +0000 (17:31 +0100)]
Use existing variable rather than explicit name.

8 years agoFix incorrect directory in this README.txt
Rob Norris [Sat, 9 Apr 2016 16:29:15 +0000 (17:29 +0100)]
Fix incorrect directory in this README.txt

8 years agoMinor update for a perl tool.
Rob Norris [Sat, 9 Apr 2016 16:28:16 +0000 (17:28 +0100)]
Minor update for a perl tool.

8 years agoReduce compiler warnings on Windows.
Rob Norris [Sat, 9 Apr 2016 16:23:02 +0000 (17:23 +0100)]
Reduce compiler warnings on Windows.

8 years agoCheck that the test_babel program runs
Rob Norris [Tue, 5 Apr 2016 21:18:26 +0000 (22:18 +0100)]
Check that the test_babel program runs

8 years agoSimple test for basic GPX read->write conformance.
Rob Norris [Tue, 5 Apr 2016 21:06:28 +0000 (22:06 +0100)]
Simple test for basic GPX read->write conformance.

Support for SF Bugs#22 fix.

8 years agoSF Bugs#22: Fix changing coordinates when saving and exporting
Rob Norris [Sat, 23 Apr 2016 11:08:28 +0000 (12:08 +0100)]
SF Bugs#22: Fix changing coordinates when saving and exporting

Use improved double to string conversion to remove extra digits due to
 excessive string length output which previously 'preserved' the imprecision
 of the internal floating point versus the string type number input.

This is the fast and accurate double to string conversion based on Florian Loitsch's Grisu-algorithm.
Written by Andreas Samoljuk under the MIT License.

Thus the numbers saved are now guaranteed to be same read in
 (if the input is already in the shortest string format).

As a bonus this can reduce the size of a typical .vik file (with many points)
 by 5% to 10%.

8 years agoEnsure some test programs run properly.
Rob Norris [Sat, 9 Apr 2016 16:26:59 +0000 (17:26 +0100)]
Ensure some test programs run properly.

Preferences and other items need to be initialised as they get auto used.

8 years agoRemove use of function local static variables for code simplicity.
Rob Norris [Sat, 23 Apr 2016 10:23:10 +0000 (11:23 +0100)]
Remove use of function local static variables for code simplicity.

Presumed written for 'speed optimisation' but there's no evidence that it is faster.
[In fact it might have even be slower due to compiler optimisation].

8 years agoDon't write unnecessary GPX metadata tags for empty fields.
Rob Norris [Sun, 24 Apr 2016 23:08:32 +0000 (00:08 +0100)]
Don't write unnecessary GPX metadata tags for empty fields.

8 years agoPrefer default TrackWaypoint layers to be in LatLon mode.
Rob Norris [Sat, 9 Apr 2016 16:24:12 +0000 (17:24 +0100)]
Prefer default TrackWaypoint layers to be in LatLon mode.

8 years agoMerge pull request #13 from JojoBoulix/reproducible
Rob Norris [Sun, 10 Apr 2016 15:00:28 +0000 (16:00 +0100)]
Merge pull request #13 from JojoBoulix/reproducible

Make the build reproducible

8 years agoFixed order headers inclusion in icons.c
JojoBoulix [Sun, 10 Apr 2016 12:47:43 +0000 (14:47 +0200)]
Fixed order headers inclusion in icons.c

Fix the order for headers inclusion in icons.c, to get reproducible build. The *_pixmap.h wildcard matches the same files, but with a random order, so that different builds can lead to different binary files.
See https://wiki.debian.org/ReproducibleBuilds/

8 years agoRemove use of unnecessary pointer to pointer variables.
Rob Norris [Sat, 9 Apr 2016 10:33:36 +0000 (11:33 +0100)]
Remove use of unnecessary pointer to pointer variables.

8 years agoEnable clearing spinbox entries on some numerical input boxes.
Rob Norris [Sun, 17 Jan 2016 14:58:12 +0000 (14:58 +0000)]
Enable clearing spinbox entries on some numerical input boxes.

8 years agoEnable a clear icon on entry boxes used for search like input.
Rob Norris [Sun, 17 Jan 2016 14:54:10 +0000 (14:54 +0000)]
Enable a clear icon on entry boxes used for search like input.

8 years agoMore sensible new name allocation.
Rob Norris [Tue, 19 Jan 2016 23:24:28 +0000 (23:24 +0000)]
More sensible new name allocation.

Consider if the name has previously been auto numbered (typically by a previous split)
And so just increment the number part, rather than continuously adding '#2'.

8 years agoRemove own copy of MD5 hash code and use a library implementation (libnettle)
Rob Norris [Sun, 17 Jan 2016 12:58:59 +0000 (12:58 +0000)]
Remove own copy of MD5 hash code and use a library implementation (libnettle)

Selected libnettle due to wide support and standard license.

8 years ago[WINDOWS] Enable Windows 64bit cross build
Rob Norris [Wed, 13 Jan 2016 00:47:15 +0000 (00:47 +0000)]
[WINDOWS] Enable Windows 64bit cross build

8 years agoExtra output in case of SQL prepare statement failure.
Rob Norris [Thu, 11 Feb 2016 23:49:57 +0000 (23:49 +0000)]
Extra output in case of SQL prepare statement failure.

8 years agoIncrease line reading length
Rob Norris [Sun, 7 Feb 2016 21:25:38 +0000 (21:25 +0000)]
Increase line reading length

8 years agoSupport GPX 'type' field on Waypoints, Tracks and Routes.
Rob Norris [Tue, 9 Feb 2016 20:51:34 +0000 (20:51 +0000)]
Support GPX 'type' field on Waypoints, Tracks and Routes.

8 years agoSupport GPX src field on Waypoints, Tracks and Routes.
Rob Norris [Sun, 7 Feb 2016 21:53:50 +0000 (21:53 +0000)]
Support GPX src field on Waypoints, Tracks and Routes.

8 years agoDon't close track property dialog on return keypress on entry fields.
Rob Norris [Tue, 9 Feb 2016 20:29:03 +0000 (20:29 +0000)]
Don't close track property dialog on return keypress on entry fields.

8 years agovikcoord does not depend on GTK
Rob Norris [Sat, 30 Jan 2016 22:03:50 +0000 (22:03 +0000)]
vikcoord does not depend on GTK

8 years ago[QA] Another use of GStatBuf
Rob Norris [Sat, 30 Jan 2016 21:23:51 +0000 (21:23 +0000)]
[QA] Another use of GStatBuf

8 years ago[QA] This function should be static
Rob Norris [Sat, 30 Jan 2016 21:17:28 +0000 (21:17 +0000)]
[QA] This function should be static

8 years agoImport Launchpad translation updates - French Update.
Rob Norris [Sat, 30 Jan 2016 19:26:26 +0000 (19:26 +0000)]
Import Launchpad translation updates - French Update.

8 years agoRetain DOP values when saving to .vik files
Rob Norris [Tue, 12 May 2015 21:02:26 +0000 (22:02 +0100)]
Retain DOP values when saving to .vik files

8 years ago[QA] Improve types as string lengths are never negative.
Rob Norris [Fri, 29 Jan 2016 20:54:55 +0000 (20:54 +0000)]
[QA] Improve types as string lengths are never negative.

8 years agoPrevent writing broken .vik files with multi line strings.
Rob Norris [Fri, 29 Jan 2016 20:53:18 +0000 (20:53 +0000)]
Prevent writing broken .vik files with multi line strings.

At the moment simply replace Linefeed and Carriage returns with spaces.

8 years agoSF Bugs#128: Fix Crash when loading broken .vik file
Rob Norris [Fri, 29 Jan 2016 20:32:30 +0000 (20:32 +0000)]
SF Bugs#128: Fix Crash when loading broken .vik file

Detect broken lines which end without any text or the enclosing quote.
 i.e. like: comment="

8 years ago[QA] Enable all warnings on test code
Rob Norris [Sat, 23 Jan 2016 12:18:34 +0000 (12:18 +0000)]
[QA] Enable all warnings on test code

And so detect and remove an unused variable.

8 years ago[QA] Consistent usage of g_stat() GStatBuf parameter type
Rob Norris [Sat, 23 Jan 2016 12:16:38 +0000 (12:16 +0000)]
[QA] Consistent usage of g_stat() GStatBuf parameter type

Thus removes some compiler warnings under Windows.

8 years agoFix crash if a route requested by the route finder is empty.
Rob Norris [Tue, 19 Jan 2016 23:19:25 +0000 (23:19 +0000)]
Fix crash if a route requested by the route finder is empty.

8 years ago[QA] Remove unused variable.
Rob Norris [Mon, 18 Jan 2016 22:26:46 +0000 (22:26 +0000)]
[QA] Remove unused variable.

8 years agoEnable activating waypoint search when pressing return in the entry field.
Rob Norris [Sun, 17 Jan 2016 15:02:55 +0000 (15:02 +0000)]
Enable activating waypoint search when pressing return in the entry field.

8 years agoIn the location search, only enable the OK button when there is some text to search...
Rob Norris [Sun, 17 Jan 2016 15:01:48 +0000 (15:01 +0000)]
In the location search, only enable the OK button when there is some text to search with.

8 years agoEnable handling compressed files when acquiring from an URL datasource.
Rob Norris [Sun, 17 Jan 2016 15:09:18 +0000 (15:09 +0000)]
Enable handling compressed files when acquiring from an URL datasource.

8 years agoFix definition and usage of datasource download file options.
Rob Norris [Sun, 17 Jan 2016 15:08:47 +0000 (15:08 +0000)]
Fix definition and usage of datasource download file options.

8 years agoRemove curl cookie file as it's read only - so never actually used anymore.
Rob Norris [Sun, 17 Jan 2016 13:22:58 +0000 (13:22 +0000)]
Remove curl cookie file as it's read only - so never actually used anymore.

Previously was written to via option 'CURLOPT_COOKIEJAR'
 (which was removed in SHA:2da56da58944b264490053a2acf39bf0134c0e41 ~ 2011)
 but even then Viking has not used Google maps since ~ 2009.

8 years agoFix maintaining a transparent background when an alpha value is applied to a pixbuf.
Rob Norris [Sun, 17 Jan 2016 14:59:38 +0000 (14:59 +0000)]
Fix maintaining a transparent background when an alpha value is applied to a pixbuf.

8 years agoRemove the now unused viewport alpha pixbuf and gdk pixbuf compositing method.
Rob Norris [Sun, 17 Jan 2016 13:12:53 +0000 (13:12 +0000)]
Remove the now unused viewport alpha pixbuf and gdk pixbuf compositing method.

8 years agoApply alpha setting to the waypoint image pixbuf before storing in the image cache.
Rob Norris [Sun, 17 Jan 2016 13:11:02 +0000 (13:11 +0000)]
Apply alpha setting to the waypoint image pixbuf before storing in the image cache.

Clear the image cache whenever the alpha value has changed
 so pixbufs will be regenerated with the new alpha value.

8 years ago[QA] Reusable function for freeing the waypoint image cache.
Rob Norris [Sun, 17 Jan 2016 13:07:22 +0000 (13:07 +0000)]
[QA] Reusable function for freeing the waypoint image cache.

8 years ago[QA] Remove unused variable.
Rob Norris [Sun, 17 Jan 2016 13:04:09 +0000 (13:04 +0000)]
[QA] Remove unused variable.

8 years agoEnsure compressed download files are processed.
Rob Norris [Sun, 17 Jan 2016 13:02:44 +0000 (13:02 +0000)]
Ensure compressed download files are processed.

More lenient string comparison for magic checking of zip & bzip2 file types.

8 years ago[QA] Better value type usage, even if these values are not actually used.
Rob Norris [Sun, 17 Jan 2016 13:00:11 +0000 (13:00 +0000)]
[QA] Better value type usage, even if these values are not actually used.

8 years agoText output using AC_MSG_NOTICE rather than echo statements.
Rob Norris [Thu, 24 Dec 2015 13:08:48 +0000 (13:08 +0000)]
Text output using AC_MSG_NOTICE rather than echo statements.

8 years ago[WINDOWS] Build with libgexiv2
Rob Norris [Thu, 24 Dec 2015 13:07:52 +0000 (13:07 +0000)]
[WINDOWS] Build with libgexiv2

8 years agoIgnore help/viking.xml as it's now auto-generated.
Rob Norris [Mon, 21 Dec 2015 11:43:53 +0000 (11:43 +0000)]
Ignore help/viking.xml as it's now auto-generated.

8 years ago[WINDOWS] Cross build
Rob Norris [Mon, 21 Dec 2015 11:41:27 +0000 (11:41 +0000)]
[WINDOWS] Cross build

Enable cross build with an RPM set-up (using OpenSUSE Tumbleweed)

Tested in a VM dedicated to the build.

This is now the supported build method for generating the Window executable.

This version is only 32bit (no different than before)
 however scope for adding a 64bit version should now be relatively straight-forward.

8 years agoMake generation of the copyright year in the code automatic.
Rob Norris [Sat, 19 Dec 2015 11:31:59 +0000 (11:31 +0000)]
Make generation of the copyright year in the code automatic.

8 years agoDon't remove project name if one decides not to delete all layers.
Rob Norris [Sat, 19 Dec 2015 10:07:36 +0000 (10:07 +0000)]
Don't remove project name if one decides not to delete all layers.

8 years agoMention use of libexpat
Rob Norris [Tue, 15 Dec 2015 00:38:19 +0000 (00:38 +0000)]
Mention use of libexpat

8 years ago[QA] Rename DownloadMapOptions --> DownloadFileOptions
Rob Norris [Fri, 4 Dec 2015 00:43:20 +0000 (00:43 +0000)]
[QA] Rename DownloadMapOptions --> DownloadFileOptions

Since the download is used for any file type, not just map tiles.
Corresponding rename+move old variable DownloadFileOptions into curl_download.h

8 years agoAC_OUTPUT doesn't need to take any arguments
Rob Norris [Sun, 29 Nov 2015 11:55:22 +0000 (11:55 +0000)]
AC_OUTPUT doesn't need to take any arguments

8 years agoviking-cache.py tool: Enable converting from OSM cache layout to mbtiles.
Rob Norris [Sun, 29 Nov 2015 09:18:30 +0000 (09:18 +0000)]
viking-cache.py tool: Enable converting from OSM cache layout to mbtiles.

Useful compared to mbutils, as this version has options to:
. limit by zoom coverage
. skip optimise stage

However only accepts standard OSM layout and no metadata.json support

8 years agoviking-cache.py tool: Rework into simple elif statements.
Rob Norris [Sat, 28 Nov 2015 20:12:37 +0000 (20:12 +0000)]
viking-cache.py tool: Rework into simple elif statements.

8 years agoviking-cache.py tool: Allow specifying zoom limits in creating mbtiles file
Rob Norris [Sat, 28 Nov 2015 20:11:40 +0000 (20:11 +0000)]
viking-cache.py tool: Allow specifying zoom limits in creating mbtiles file

8 years agoAllow copying positions as well from the waypoint list dialog.
Rob Norris [Tue, 24 Nov 2015 21:07:25 +0000 (21:07 +0000)]
Allow copying positions as well from the waypoint list dialog.

8 years agoAllow configuration of the date format displayed on Track and Waypoint lists.
Rob Norris [Sat, 21 Nov 2015 10:48:12 +0000 (10:48 +0000)]
Allow configuration of the date format displayed on Track and Waypoint lists.

8 years agoAdd tooltip for a more readable hours:minutes display rather than just total minutes...
Rob Norris [Sun, 8 Nov 2015 12:51:31 +0000 (12:51 +0000)]
Add tooltip for a more readable hours:minutes display rather than just total minutes in the track statistics tab.

8 years agoAdd display of the without gaps track time.
Rob Norris [Sun, 8 Nov 2015 12:50:14 +0000 (12:50 +0000)]
Add display of the without gaps track time.

8 years agoExtend function to get optionally get duration of a track without including gaps...
Rob Norris [Sun, 8 Nov 2015 12:46:44 +0000 (12:46 +0000)]
Extend function to get optionally get duration of a track without including gaps between segments.

8 years agoSave bfilter values used for subsequent reuse in a session.
Rob Norris [Fri, 6 Nov 2015 16:00:21 +0000 (16:00 +0000)]
Save bfilter values used for subsequent reuse in a session.

8 years agoAdd settings to override bfilter simplify and compress default values.
Rob Norris [Fri, 6 Nov 2015 15:59:19 +0000 (15:59 +0000)]
Add settings to override bfilter simplify and compress default values.

8 years ago[QA] Extra output for failing date/timezone string generation.
Rob Norris [Fri, 6 Nov 2015 14:57:50 +0000 (14:57 +0000)]
[QA] Extra output for failing date/timezone string generation.

8 years agoAdd capability to manually define parameters for GPSBabel filter command.
Rob Norris [Mon, 21 Sep 2015 22:31:10 +0000 (23:31 +0100)]
Add capability to manually define parameters for GPSBabel filter command.

8 years agoMerge branch 'KMZ-Maps'
Rob Norris [Tue, 15 Dec 2015 00:04:32 +0000 (00:04 +0000)]
Merge branch 'KMZ-Maps'

8 years ago[DOC] KMZ Map help
Rob Norris [Sat, 21 Nov 2015 10:47:18 +0000 (10:47 +0000)]
[DOC] KMZ Map help

8 years agoKMZ file of OSM Mapnik rendering of Stonehenge area, zoom level 15.
Rob Norris [Fri, 20 Nov 2015 18:15:55 +0000 (18:15 +0000)]
KMZ file of OSM Mapnik rendering of Stonehenge area, zoom level 15.

8 years ago[WINDOWS] Installer and build notes for using libzip.dll
Rob Norris [Tue, 17 Nov 2015 20:33:44 +0000 (20:33 +0000)]
[WINDOWS] Installer and build notes for using libzip.dll

8 years agoAllow internal check_magic function to work on various lengths as specified.
Rob Norris [Sun, 8 Nov 2015 13:23:22 +0000 (13:23 +0000)]
Allow internal check_magic function to work on various lengths as specified.

8 years agoEnable importing a map from a KMZ file.
Rob Norris [Sun, 8 Nov 2015 12:41:48 +0000 (12:41 +0000)]
Enable importing a map from a KMZ file.

Uses libzip to decompress the KMZ and processes the XML description to
 generate a corresponding GeoRef layer.

8 years agoAllow creating GeoRef layers from a specified pixbuf and area.
Rob Norris [Sun, 8 Nov 2015 12:39:10 +0000 (12:39 +0000)]
Allow creating GeoRef layers from a specified pixbuf and area.

8 years agoMake the find best zoom level function reusable.
Rob Norris [Sun, 8 Nov 2015 12:35:16 +0000 (12:35 +0000)]
Make the find best zoom level function reusable.

8 years agoAdd utility function to write a temporary file from a byte buffer.
Rob Norris [Fri, 6 Nov 2015 16:16:02 +0000 (16:16 +0000)]
Add utility function to write a temporary file from a byte buffer.

8 years agoEnable KMZ Map file generation for Custom Map support on Garmin devices.
Rob Norris [Sun, 12 Jul 2015 15:23:10 +0000 (16:23 +0100)]
Enable KMZ Map file generation for Custom Map support on Garmin devices.

The KMZ is a zipped file containing a KML file with the associated image.

Use libzip to generate multiple files in a single zip file.

8 years agoFix routes not saved in GPX when tracks are made invisible.
Rob Norris [Fri, 4 Dec 2015 20:34:34 +0000 (20:34 +0000)]
Fix routes not saved in GPX when tracks are made invisible.

Probable copy and paste error in commit SHA:978cd6961f0cdfeb7d68fe18bc558011692cd7ce

8 years agoSF Bugs#103: Fix TrackWaypoint layer items may not be displayed when pasted
Rob Norris [Fri, 11 Dec 2015 17:44:48 +0000 (17:44 +0000)]
SF Bugs#103: Fix TrackWaypoint layer items may not be displayed when pasted

When the target window has a different View mode,
 then the coordinates must be converted to match to be shown in the viewport.
This is already done for single item pastes, but previously not for entire TRW layers.

8 years agoEnable Catalan and Turkish translations.
Rob Norris [Fri, 11 Dec 2015 01:03:17 +0000 (01:03 +0000)]
Enable Catalan and Turkish translations.

Seems these translations have been available for ages but not actually used.

8 years agoAuto generate the date for man pages.
Rob Norris [Thu, 10 Dec 2015 22:31:34 +0000 (22:31 +0000)]
Auto generate the date for man pages.

8 years agoRestore opening of JPG files.
Rob Norris [Wed, 9 Dec 2015 01:11:58 +0000 (01:11 +0000)]
Restore opening of JPG files.

More lenient string comparison for magic checking of JPG files,
 as the text returned seems to have changed.

8 years ago[QA] Tidy trw_layer_draw_point_names()
Rob Norris [Fri, 4 Dec 2015 20:31:24 +0000 (20:31 +0000)]
[QA] Tidy trw_layer_draw_point_names()

Remove unused variables and some minor whitespace improvements.

8 years agoSF Bugs#127: Fix initial display of Waypoint sort order.
Rob Norris [Mon, 7 Dec 2015 20:19:19 +0000 (20:19 +0000)]
SF Bugs#127: Fix initial display of Waypoint sort order.

Ensure sort is applied on realization of the TrackWaypoint layer,
 otherwise it may not be performed.

8 years agoFix map layer widget sensitivity dependent on map type.
Rob Norris [Fri, 27 Nov 2015 22:55:57 +0000 (22:55 +0000)]
Fix map layer widget sensitivity dependent on map type.

8 years agoMerge pull request #8 from swegener/etag-in-xattr
Rob Norris [Fri, 4 Dec 2015 00:06:56 +0000 (00:06 +0000)]
Merge pull request #8 from swegener/etag-in-xattr

Store etag in xattr

8 years agoMerge pull request #3 from Shura0/point_names
Rob Norris [Fri, 4 Dec 2015 00:05:29 +0000 (00:05 +0000)]
Merge pull request #3 from Shura0/point_names

Display trackpoint names

8 years agodownload: Move setting of etag and convert_file
Sven Wegener [Sun, 29 Nov 2015 20:15:13 +0000 (21:15 +0100)]
download: Move setting of etag and convert_file

It only makes sense to do this post-processing, if we got a new file, so
move the code just before the final rename.

Signed-off-by: Sven Wegener <sven.wegener@stealer.net>