]> git.street.me.uk Git - andy/viking.git/log
andy/viking.git
7 years agoImproved method for Wikipedia i18n URL
huobos [Wed, 25 Jan 2017 11:31:13 +0000 (19:31 +0800)]
Improved method for Wikipedia i18n URL

Get users LANGUAGE from an environment variable.

Signed-off-by: Rob Norris <rw_norris@hotmail.com>
7 years agoMerge pull request #20 from huobos/zh_CN
Rob Norris [Tue, 24 Jan 2017 21:33:27 +0000 (21:33 +0000)]
Merge pull request #20 from huobos/zh_CN

zh_CN translation

7 years agozh_CN translation
huobos [Tue, 24 Jan 2017 03:39:58 +0000 (11:39 +0800)]
zh_CN translation

7 years agoInfo message to remind user of the version in use.
Rob Norris [Sun, 22 Jan 2017 17:57:25 +0000 (17:57 +0000)]
Info message to remind user of the version in use.

7 years agoEnsure correct capitalization of the program name
Rob Norris [Sun, 22 Jan 2017 17:55:30 +0000 (17:55 +0000)]
Ensure correct capitalization of the program name

7 years agoImproved feedback/feature availability when no direction routing engines are available.
Rob Norris [Sun, 15 Jan 2017 19:45:13 +0000 (19:45 +0000)]
Improved feedback/feature availability when no direction routing engines are available.

7 years agoAdd function to return counts of available routing engines.
Rob Norris [Sun, 15 Jan 2017 19:34:46 +0000 (19:34 +0000)]
Add function to return counts of available routing engines.

7 years agoAdd YOURS online routing.
Rob Norris [Sun, 15 Jan 2017 19:20:03 +0000 (19:20 +0000)]
Add YOURS online routing.

http://www.yournavigation.org/
https://wiki.openstreetmap.org/wiki/YOURS#Routing_API

Note at present YOURS uses an old OSM dataset (from 2014).
However at least this is better than no routing options.

7 years agoRemove as OSRM routing option as it no longer supports GPX output.
Rob Norris [Sun, 15 Jan 2017 18:49:10 +0000 (18:49 +0000)]
Remove as OSRM routing option as it no longer supports GPX output.

7 years ago[DOC] Add details about routing format option
Rob Norris [Sun, 15 Jan 2017 18:14:20 +0000 (18:14 +0000)]
[DOC] Add details about routing format option

7 years agoAllow specifying an alternative URL base location for acquiring DEM SRTM files.
Rob Norris [Sun, 15 Jan 2017 15:44:46 +0000 (15:44 +0000)]
Allow specifying an alternative URL base location for acquiring DEM SRTM files.

Advanced configuration setting only in viking.ini.
No GUI method provided ATM, as it's unlikely this setting needs changing.

7 years agoUse https DEM download site by default
Rob Norris [Sun, 15 Jan 2017 15:22:12 +0000 (15:22 +0000)]
Use https DEM download site by default

7 years agoAllow redirects when attempting to download DEM files.
Rob Norris [Sun, 15 Jan 2017 15:20:47 +0000 (15:20 +0000)]
Allow redirects when attempting to download DEM files.

7 years agoSimplify DEM base URL to be one value rather than separate components.
Rob Norris [Sun, 15 Jan 2017 15:20:01 +0000 (15:20 +0000)]
Simplify DEM base URL to be one value rather than separate components.

7 years agoPrevent compiler warnings - rework as vtl variable type has changed.
Rob Norris [Sat, 21 Jan 2017 14:21:24 +0000 (14:21 +0000)]
Prevent compiler warnings - rework as vtl variable type has changed.

Then remove some now unnecessary type conversions.
Also ensure auto set view is always called.

7 years agoMerge pull request #19 from huobos/typo
Rob Norris [Sat, 21 Jan 2017 13:51:56 +0000 (13:51 +0000)]
Merge pull request #19 from huobos/typo

Fix typo word Polygonized

7 years agoMerge pull request #17 from huobos/gpx
Rob Norris [Sat, 21 Jan 2017 13:51:19 +0000 (13:51 +0000)]
Merge pull request #17 from huobos/gpx

Open files in selected layer

7 years agoFix typo word Polygonized
huobos [Fri, 20 Jan 2017 03:01:44 +0000 (11:01 +0800)]
Fix typo word Polygonized

7 years agoOpen files in selected layer
huobos [Fri, 20 Jan 2017 02:23:44 +0000 (10:23 +0800)]
Open files in selected layer

7 years agoFix small memory leak.
Rob Norris [Fri, 13 Jan 2017 00:08:31 +0000 (00:08 +0000)]
Fix small memory leak.

7 years agoFix small memory leak
Rob Norris [Fri, 13 Jan 2017 00:07:55 +0000 (00:07 +0000)]
Fix small memory leak

7 years agoEnable understanding pasted text strings with tabs.
Rob Norris [Thu, 12 Jan 2017 23:59:08 +0000 (23:59 +0000)]
Enable understanding pasted text strings with tabs.

7 years agoFix some spelling mistakes.
Rob Norris [Sun, 11 Dec 2016 23:08:13 +0000 (23:08 +0000)]
Fix some spelling mistakes.

7 years agoFix small memory leak.
Rob Norris [Sun, 11 Dec 2016 23:07:50 +0000 (23:07 +0000)]
Fix small memory leak.

7 years agoShell test should be '=' rather than '==' for maximum portability.
Rob Norris [Thu, 3 Nov 2016 21:19:29 +0000 (21:19 +0000)]
Shell test should be '=' rather than '==' for maximum portability.

7 years agoClarify only Bing Aerial Map available.
Rob Norris [Thu, 3 Nov 2016 19:11:35 +0000 (19:11 +0000)]
Clarify only Bing Aerial Map available.

7 years agoFix small memory leak - free dirpath in all circumstances.
Rob Norris [Sat, 22 Oct 2016 18:23:15 +0000 (19:23 +0100)]
Fix small memory leak - free dirpath in all circumstances.

7 years agoFix spelling
Rob Norris [Sat, 22 Oct 2016 18:18:26 +0000 (19:18 +0100)]
Fix spelling

7 years agoFix toggling visibility of the menu.
Rob Norris [Sun, 16 Oct 2016 10:29:32 +0000 (11:29 +0100)]
Fix toggling visibility of the menu.

7 years agoSupport Lodge symbol
Rob Norris [Sun, 16 Oct 2016 10:28:51 +0000 (11:28 +0100)]
Support Lodge symbol

This can be generated on at least Garmin Etrex 20 devices.

7 years ago[DOC] Use macro for GPSBabel references
Rob Norris [Sun, 7 Aug 2016 10:32:57 +0000 (11:32 +0100)]
[DOC] Use macro for GPSBabel references

7 years ago[DOC] Use URL links to programs
Rob Norris [Sun, 7 Aug 2016 10:29:46 +0000 (11:29 +0100)]
[DOC] Use URL links to programs

8 years agoFix some missing nautical miles output.
Rob Norris [Tue, 16 Aug 2016 21:39:13 +0000 (22:39 +0100)]
Fix some missing nautical miles output.

8 years agoFix issue in display of maximum speed when there is no speed.
Rob Norris [Tue, 16 Aug 2016 21:38:36 +0000 (22:38 +0100)]
Fix issue in display of maximum speed when there is no speed.

Ensure buffer contents is reset in case there is nothing to display.
Also align code in mph block to be as per other speed units.

8 years agoOnly call gps_close() after a successful gps_open().
Rob Norris [Sun, 7 Aug 2016 11:22:02 +0000 (12:22 +0100)]
Only call gps_close() after a successful gps_open().

Unfortunately this will crash (in libgps up to at least 3.16) if used incorrectly.

8 years agoReplace defunct IP to location lookup service.
Rob Norris [Sun, 7 Aug 2016 19:12:11 +0000 (20:12 +0100)]
Replace defunct IP to location lookup service.

Switch from http://www.hostip.info to http://www.geoplugin.com

8 years agoGithub #15: Relicense files marked GPL2 only to GPL2+.
Rob Norris [Thu, 11 Aug 2016 17:54:35 +0000 (18:54 +0100)]
Github #15: Relicense files marked GPL2 only to GPL2+.

I declare that now the contents of files util.c and ui_util.c are all GPL2+.

The majority of the code is from my own work (all functional util.c and some ui_util.c),
so I relicense it to GPL2+.
Contributions by Guilhem Bonnefille in util.c has been agreed to be relicensed to GPL2+.
Contributions by Matthew Hague in ui_util.c has been agreed to be relicensed to GPL2+.
Some code in ui_util.c has been reused from the Geany Project (https://www.geany.org),
 which has always been GPL2+ (thus previously incorrectly marked).

Signed-off-by: Rob Norris <rw_norris@hotmail.com>
8 years agoExplicitly license my small test code+script files as Creative Commons CCO
Rob Norris [Sun, 7 Aug 2016 11:11:31 +0000 (12:11 +0100)]
Explicitly license my small test code+script files as Creative Commons CCO

Signed-off-by: Rob Norris <rw_norris@hotmail.com>
8 years agoSF Bugs#135: Fix OSM Maps shown by default at Maximum Zoom.
Rob Norris [Sat, 6 Aug 2016 11:54:16 +0000 (12:54 +0100)]
SF Bugs#135: Fix OSM Maps shown by default at Maximum Zoom.

Interpret SCALE INC UP/DOWN in a more sensible manner as a number of addition zoom levels to try.
This means a scaled version of OCM will get shown by default at maximum zoom.

8 years agoSF Bugs#133: Remove the auto added map when opening the first .vik file from the...
Rob Norris [Sun, 7 Aug 2016 11:09:47 +0000 (12:09 +0100)]
SF Bugs#133: Remove the auto added map when opening the first .vik file from the GUI.

8 years agoAdd aggregate layer functions to return number of layers and to delete a specified...
Rob Norris [Sun, 7 Aug 2016 11:06:43 +0000 (12:06 +0100)]
Add aggregate layer functions to return number of layers and to delete a specified child layer.

8 years agoDisable more functionality that doesn't work if gpsbabel is not available.
Rob Norris [Sat, 23 Apr 2016 11:12:28 +0000 (12:12 +0100)]
Disable more functionality that doesn't work if gpsbabel is not available.

8 years agoFix recent commit: 4dc72a1d407b81853d0093871cff45ef1f47d1b8
Rob Norris [Tue, 9 Aug 2016 21:14:15 +0000 (22:14 +0100)]
Fix recent commit: 4dc72a1d407b81853d0093871cff45ef1f47d1b8

Don't attempt to (indirectly) free the parameters passed in.

8 years agoImproved usage of g_stat()
Rob Norris [Sun, 7 Aug 2016 20:35:38 +0000 (21:35 +0100)]
Improved usage of g_stat()

8 years ago[DOC] Remove note on GPSBabel Google Direction routes which no longer work.
Rob Norris [Sun, 7 Aug 2016 10:32:36 +0000 (11:32 +0100)]
[DOC] Remove note on GPSBabel Google Direction routes which no longer work.

8 years ago[DOC] Stellarium release 0.15.0 has fixed this bug.
Rob Norris [Sun, 7 Aug 2016 10:28:42 +0000 (11:28 +0100)]
[DOC] Stellarium release 0.15.0 has fixed this bug.

8 years agoSF Bugs#134: Replaced discontinued MapQuest tile service with rate limited Mapbox...
Rob Norris [Sun, 7 Aug 2016 10:27:20 +0000 (11:27 +0100)]
SF Bugs#134: Replaced discontinued MapQuest tile service with rate limited Mapbox Outdoors service.

Choose an 'Outdoors' styled map to reflected presumed likely usage of Viking.

This is the default map, so users are likely to encounter service request limits.

8 years agoFix crash if a map configuration has no hostname or URL defined.
Rob Norris [Sun, 7 Aug 2016 09:53:36 +0000 (10:53 +0100)]
Fix crash if a map configuration has no hostname or URL defined.

Generally improve handling of download hostname and uri parameters and report if not set.

8 years agoBe more explicit that the return value of g_printf() is ignored.
Rob Norris [Sat, 6 Aug 2016 10:28:11 +0000 (11:28 +0100)]
Be more explicit that the return value of g_printf() is ignored.

8 years agoRemove unused function.
Rob Norris [Sat, 25 Jun 2016 14:35:28 +0000 (15:35 +0100)]
Remove unused function.

8 years agoReplace internal uri_escape() function with a glib version.
Rob Norris [Mon, 13 Jun 2016 22:53:48 +0000 (23:53 +0100)]
Replace internal uri_escape() function with a glib version.

8 years agoLoad the startup file first so that subsequent files are loaded on top.
Rob Norris [Sat, 25 Jun 2016 13:06:33 +0000 (14:06 +0100)]
Load the startup file first so that subsequent files are loaded on top.

Especially so that new tracks+waypoints will be above any maps in a startup file.

8 years agoSF Bugs#132: Fix to correctly open GPX files in Windows via double click.
Rob Norris [Sat, 25 Jun 2016 13:02:45 +0000 (14:02 +0100)]
SF Bugs#132: Fix to correctly open GPX files in Windows via double click.

Previously in jpg.c there was no check for magic_load() result in Windows
 (and the path to the magic database file was not correct).
So somehow when opening a file the 'is a JPG' test would return true when it is a GPX file,
 thus leading to using the GPX file name as an image name.

Commonize the magic library processing so the correct location of the magic database is used for JPG tests,
 with better tracing of error conditions.

8 years ago[WINDOWS] Extra files needed for theming to work
Rob Norris [Wed, 22 Jun 2016 00:03:17 +0000 (01:03 +0100)]
[WINDOWS] Extra files needed for theming to work

8 years agoMerge pull request #14 from apre/master
Rob Norris [Sat, 25 Jun 2016 12:37:54 +0000 (13:37 +0100)]
Merge pull request #14 from apre/master

add debian build-dependencies in readme

8 years agoadd debian build-dependencies in readme
apre [Thu, 23 Jun 2016 18:04:04 +0000 (20:04 +0200)]
add debian build-dependencies in readme

8 years agoUse the correct definition.
Rob Norris [Tue, 3 May 2016 19:27:08 +0000 (20:27 +0100)]
Use the correct definition.

Luckily the enumeration/definition have the same value of 0,
 so the code has always been working.

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.