]> git.street.me.uk Git - andy/viking.git/log
andy/viking.git
13 years agoAdd copyright property
Guilhem Bonnefille [Sat, 11 Dec 2010 21:45:21 +0000 (22:45 +0100)]
Add copyright property

Copyright and licensing is really important for both user and data
provider (aka MapSource in viking).

We should provide these informations.

Signed-off-by: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
13 years agoAdd undeclared translations
Guilhem Bonnefille [Thu, 9 Dec 2010 12:18:16 +0000 (13:18 +0100)]
Add undeclared translations

13 years agoFix compiler warnings in osm.c
Rob Norris [Sat, 4 Dec 2010 16:46:36 +0000 (16:46 +0000)]
Fix compiler warnings in osm.c

Signed-off-by: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
13 years agoImprove key binding for Mercator Mode -> ctrl+m
Rob Norris [Sun, 5 Dec 2010 20:24:39 +0000 (21:24 +0100)]
Improve key binding for Mercator Mode -> ctrl+m

This makes it consistent with other mode name shortcuts.
[Previously it was ctrl+'g', as a hangover from when the mode was known as Google Mode]

Signed-off-by: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
13 years agoFix compiler warning in vikmapslayer.c
Rob Norris [Sat, 4 Dec 2010 16:43:09 +0000 (16:43 +0000)]
Fix compiler warning in vikmapslayer.c

Signed-off-by: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
13 years agoFix Waypoint & Track visibility issues.
Rob Norris [Fri, 3 Dec 2010 00:35:37 +0000 (00:35 +0000)]
Fix Waypoint & Track visibility issues.

Problems:
1. If a waypoint is made invisibile, saved to a .vik and then the file reloaded the waypoint is visible.
2. If an invisible waypoint is cut/copied - upon paste it is marked as invisible.
3. If an invisible track is cut/copied - upon paste it has no visibility control.
4. If an track or waypoint is cut, a redraw event is done (as the item is no longer visible), however upon pasting it is not seen until a redraw event is triggered (eg zoom out).

Thus fixed add waypoint and track code to separate the control of the visibility checkbox and the setting of the checkbox itself. [Fixes 1,2&3]
Upon pastes, generate layer update if necessary. [Fixes 4]

13 years agoAdd documentation for generic TMS map source
Guilhem Bonnefille [Tue, 30 Nov 2010 15:56:45 +0000 (16:56 +0100)]
Add documentation for generic TMS map source

Support for TMS and WMS-C were two long living patches on my own repo.
I don't know how, but it seems that I lost part of the documentation
when applying these patches on master.

13 years agoFix SF#3104028: Default Color Background is incorrectly saved as black into a new...
Rob Norris [Mon, 29 Nov 2010 20:07:48 +0000 (20:07 +0000)]
Fix SF#3104028: Default Color Background is incorrectly saved as black into a new .vik file.

Restore code to set the default color text, which is used in .vik files

Signed-off-by: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
13 years agoImprove key bindings for ModeLatLon.
Rob Norris [Mon, 29 Nov 2010 19:48:53 +0000 (19:48 +0000)]
Improve key bindings for ModeLatLon.

Change menu accelerator from 'L' to '/' (since L is already in use).
Add ctrl+l to switch to this mode. (Similar to other mode shortcut switch)

Signed-off-by: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
13 years agoSet git to ignore test_coord_conversion program
Rob Norris [Mon, 29 Nov 2010 19:31:31 +0000 (19:31 +0000)]
Set git to ignore test_coord_conversion program

Signed-off-by: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
13 years agoSet git to ignore autogenerated documenters.h
Rob Norris [Sun, 28 Nov 2010 22:59:35 +0000 (22:59 +0000)]
Set git to ignore autogenerated documenters.h

13 years agoAdd OSM WMS Server
Guilhem Bonnefille [Sat, 27 Nov 2010 23:49:05 +0000 (00:49 +0100)]
Add OSM WMS Server

This is particularly usefull to have OpenStreetMap data available in
EPSG:4326 to compare with other such map.

Signed-off-by: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
13 years agoAdd support for WMS-C
Guilhem Bonnefille [Sat, 27 Nov 2010 23:39:55 +0000 (00:39 +0100)]
Add support for WMS-C

WMS-C is a WMS sub-specification to allow tile oriented request.

As WMS-C is also a sort of WMS, it allows to access any WMS service.

Signed-off-by: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
13 years agoAdd support for more standard TMS
Guilhem Bonnefille [Sat, 27 Nov 2010 23:15:36 +0000 (00:15 +0100)]
Add support for more standard TMS

OpenStreetMap project provides a sort of TMS service.
But it use some specificities: top-left origin with
spherical-mercator pojection.

We need a more standard support: origin in bottom-left corner
with EPSG:4326 projection.

Signed-off-by: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
13 years agoMove-up download methods
Guilhem Bonnefille [Sat, 27 Nov 2010 22:58:40 +0000 (23:58 +0100)]
Move-up download methods

Downloading functions are factorized at the VikMapSourceDefault class.

Signed-off-by: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
13 years agoAdd LatLon projection
Guilhem Bonnefille [Sat, 27 Nov 2010 22:51:28 +0000 (23:51 +0100)]
Add LatLon projection

LatLon projection is also called equirectangular projection.
http://en.wikipedia.org/wiki/Equirectangular_projection

Signed-off-by: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
13 years agoBetter safety checking code
Rob Norris [Sat, 27 Nov 2010 22:22:41 +0000 (23:22 +0100)]
Better safety checking code

13 years agoFix some translated strings
Guilhem Bonnefille [Fri, 26 Nov 2010 21:35:48 +0000 (22:35 +0100)]
Fix some translated strings

Strings are already translated, but code does not allow to retrieve
the translation.

13 years agoAdd support for Locosys devices via GPSBabel's navilink device protocol.
Rob Norris [Thu, 14 Oct 2010 22:43:53 +0000 (23:43 +0100)]
Add support for Locosys devices via GPSBabel's navilink device protocol.

GPSBabel v1.3.6+ required. [i.e. anything recent]
http://www.gpsbabel.org/htmldoc-1.3.6/fmt_navilink.html

13 years agoAdd support for DeLorme devices via GPSBabel's delbin device protocol.
Rob Norris [Thu, 14 Oct 2010 22:13:05 +0000 (23:13 +0100)]
Add support for DeLorme devices via GPSBabel's delbin device protocol.

Device name 'usb:' recommended.
GPSBabel v1.4.0+ required.
http://www.gpsbabel.org/htmldoc-1.4.0/fmt_delbin.html

13 years agoAdd the ability to insert a trackpoint into a track via the Edit Trackpoint dialog.
Rob Norris [Wed, 11 Aug 2010 20:51:25 +0000 (21:51 +0100)]
Add the ability to insert a trackpoint into a track via the Edit Trackpoint dialog.

13 years agoAdd internal function to insert a trackpoint after the currently selected trackpoint.
Rob Norris [Wed, 11 Aug 2010 20:49:28 +0000 (21:49 +0100)]
Add internal function to insert a trackpoint after the currently selected trackpoint.

The new trackpoint is interpolated between the current trackpoint and the next trackpoint.
All applicable values are interpolated: position, altitude, time, speed & course.
'Extended' properties such as number of sats & HDOP are left at defaults.
This method works for newly created tracks, as well as real tracks from a GPS.

13 years agoAdd license notice to new file
Guilhem Bonnefille [Thu, 25 Nov 2010 20:33:15 +0000 (21:33 +0100)]
Add license notice to new file

GPL license validated with Rob Noris by email.

13 years agoReplace macros by enum
Guilhem Bonnefille [Wed, 24 Nov 2010 22:03:49 +0000 (23:03 +0100)]
Replace macros by enum

An enum informs the compiler about the idea of related values.

Signed-off-by: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
13 years agoSimplify previous commit
Guilhem Bonnefille [Wed, 24 Nov 2010 21:56:47 +0000 (22:56 +0100)]
Simplify previous commit

I feel that this new change helps to keep code as simple as possible.

There's no need to give VikTrack in argument as VikTrack can be
retrieve from VikTrwLayer with trackname.
Furthermore, deciding to export track as GPX without new file type
value.

Signed-off-by: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
13 years agoEnable individual track to GPX export via the Track sublayer menu.
Rob Norris [Sun, 12 Sep 2010 09:34:19 +0000 (10:34 +0100)]
Enable individual track to GPX export via the Track sublayer menu.

Internally gpx.[ch] supports writing a track to the specified file, so make this available in the GUI.
Expand export definitions in file.h, use the gpx.h interface as necessary routing via a_file_export function.
Filename used is automatically generated from the track name with a '.gpx' appended if appropriate.
Restructure trw_layer_export function to support passing track information.
Add the new sublayer menu entry to use this feature.

13 years agoSet 'OK' default for autogenerated dialogs.
Rob Norris [Sun, 25 Jul 2010 23:44:35 +0000 (00:44 +0100)]
Set 'OK' default for autogenerated dialogs.

13 years agoSet 'OK' default for find waypoint dialog.
Rob Norris [Sun, 25 Jul 2010 23:44:12 +0000 (00:44 +0100)]
Set 'OK' default for find waypoint dialog.

13 years agoSet 'OK' default for download along track dialog.
Rob Norris [Sun, 25 Jul 2010 23:34:35 +0000 (00:34 +0100)]
Set 'OK' default for download along track dialog.

13 years agoSet 'OK' defaults for new track, custom zoom & split time dialogs.
Rob Norris [Sun, 25 Jul 2010 23:33:36 +0000 (00:33 +0100)]
Set 'OK' defaults for new track, custom zoom & split time dialogs.

13 years agoSet 'Cancel' default for merge track dialog. User needs to select items first.
Rob Norris [Sun, 25 Jul 2010 23:32:24 +0000 (00:32 +0100)]
Set 'Cancel' default for merge track dialog. User needs to select items first.

13 years agoSet 'OK' default for the new waypoint dialog.
Rob Norris [Sun, 25 Jul 2010 23:29:52 +0000 (00:29 +0100)]
Set 'OK' default for the new waypoint dialog.

13 years agoSet 'OK' default for goto dialogs.
Rob Norris [Sun, 25 Jul 2010 23:28:30 +0000 (00:28 +0100)]
Set 'OK' default for goto dialogs.

13 years agoSet 'OK' default for the Save to Image dialog.
Rob Norris [Sun, 25 Jul 2010 23:26:38 +0000 (00:26 +0100)]
Set 'OK' default for the Save to Image dialog.

13 years agoSet 'OK' default for the track properties dialog.
Rob Norris [Sun, 25 Jul 2010 23:19:33 +0000 (00:19 +0100)]
Set 'OK' default for the track properties dialog.

13 years agoSet 'OK' default for the GPS layer dialog.
Rob Norris [Sun, 25 Jul 2010 23:17:59 +0000 (00:17 +0100)]
Set 'OK' default for the GPS layer dialog.

13 years agoSet 'OK' defaults for goto dialogs.
Rob Norris [Sun, 25 Jul 2010 23:12:53 +0000 (00:12 +0100)]
Set 'OK' defaults for goto dialogs.

13 years agoSet 'Cancel' default for the Geo Ref dialog, as user should really specify a map...
Rob Norris [Sun, 25 Jul 2010 22:41:41 +0000 (23:41 +0100)]
Set 'Cancel' default for the Geo Ref dialog, as user should really specify a map file first.

13 years agoSet 'Cancel' default for the OSM upload dialog.
Rob Norris [Sun, 25 Jul 2010 22:38:47 +0000 (23:38 +0100)]
Set 'Cancel' default for the OSM upload dialog.

13 years agoSet defaults for geonamesearch dialogs.
Rob Norris [Sun, 25 Jul 2010 22:31:18 +0000 (23:31 +0100)]
Set defaults for geonamesearch dialogs.

13 years agoSet 'OK' default for the background jobs dialog.
Rob Norris [Sun, 25 Jul 2010 21:02:06 +0000 (22:02 +0100)]
Set 'OK' default for the background jobs dialog.

13 years agoSet 'OK' defaults for acquire dialogs.
Rob Norris [Sun, 25 Jul 2010 20:59:36 +0000 (21:59 +0100)]
Set 'OK' defaults for acquire dialogs.

13 years agoAdd a perl script to auto generate basic Viking .vik files for directories containing...
Rob Norris [Mon, 5 Jul 2010 23:10:30 +0000 (00:10 +0100)]
Add a perl script to auto generate basic Viking .vik files for directories containing images.

Simply recursively search down the directory tree (from the current location) for suitable image files
 [normally jpg|JPG (probably photographs)] and then extract any location data from the EXIF part.

For each directory this info is output to a file into either Viking (default) or GPX data file formats.
Output filename is waypoints.vik (or waypoints.gpx in GPX mode) unless the -o option is specified.

13 years agoEnable control of the visibility of the menubar [including keyboard shortcut - F4].
Rob Norris [Thu, 18 Nov 2010 23:18:46 +0000 (23:18 +0000)]
Enable control of the visibility of the menubar [including keyboard shortcut - F4].
Also enable panic key 'Escape' to restore menubar if hidden and no tool uses it.

13 years agoEnable control of the visibility of the toolbar [including keyboard shortcut - F3].
Rob Norris [Thu, 18 Nov 2010 22:32:37 +0000 (22:32 +0000)]
Enable control of the visibility of the toolbar [including keyboard shortcut - F3].

13 years agoMake use of the vikwindow toolbar variable.
Rob Norris [Thu, 18 Nov 2010 22:22:01 +0000 (22:22 +0000)]
Make use of the vikwindow toolbar variable.

13 years agoEnable control of the visibility of the statusbar [including keyboard shortcut -...
Rob Norris [Thu, 18 Nov 2010 22:12:00 +0000 (22:12 +0000)]
Enable control of the visibility of the statusbar [including keyboard shortcut - F12].

13 years agoReleasing viking 1.0
Guilhem Bonnefille [Wed, 17 Nov 2010 22:13:12 +0000 (23:13 +0100)]
Releasing viking 1.0

Releasing viking 1.0.

Signed-off-by: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
13 years agoRemove duplicates msgid
Guilhem Bonnefille [Wed, 17 Nov 2010 20:36:34 +0000 (21:36 +0100)]
Remove duplicates msgid

This seems to disturb Launchpad.

13 years agoMerge branch 'i18n-launchpad' into master
Guilhem Bonnefille [Wed, 17 Nov 2010 21:35:01 +0000 (22:35 +0100)]
Merge branch 'i18n-launchpad' into master

13 years agoAuto-update PO translation files
Guilhem Bonnefille [Wed, 17 Nov 2010 21:31:45 +0000 (22:31 +0100)]
Auto-update PO translation files

13 years agoDocument previous translation updates
Guilhem Bonnefille [Sun, 14 Nov 2010 21:58:21 +0000 (22:58 +0100)]
Document previous translation updates

13 years agoImport Launchpad updates
Guilhem Bonnefille [Sun, 14 Nov 2010 21:56:01 +0000 (22:56 +0100)]
Import Launchpad updates

13 years agoAdd minimal translator-credits in About dialog
Guilhem Bonnefille [Thu, 11 Nov 2010 22:15:07 +0000 (23:15 +0100)]
Add minimal translator-credits in About dialog

13 years agoUse $(top_srcdir) to locate AUTHORS file
Guilhem Bonnefille [Thu, 11 Nov 2010 22:03:51 +0000 (23:03 +0100)]
Use $(top_srcdir) to locate AUTHORS file

Seems more conventional.

13 years agoAdd documenters to About dialog
Guilhem Bonnefille [Thu, 11 Nov 2010 21:56:39 +0000 (22:56 +0100)]
Add documenters to About dialog

Documenters list is extracted from help. The extraction if made with
xsltproc. If this tool is not available, the documenters list is generated
empty.

13 years agoAdd copyright notice to maintainer's scripts
Guilhem Bonnefille [Wed, 10 Nov 2010 20:42:38 +0000 (21:42 +0100)]
Add copyright notice to maintainer's scripts

13 years agoImprove copyright holders
Guilhem Bonnefille [Tue, 9 Nov 2010 22:48:33 +0000 (23:48 +0100)]
Improve copyright holders

I tried to explore Git in order to identify copyright related issues.
The result is quite incomplete or incoherent: the changes I made does
not use strict rules. So, I hope I did not irritate anybody.

If you think your name should be listed somewhere, or should be removed,
send the patch.

13 years agoAdd copyright to srtm_continent.c
Guilhem Bonnefille [Sun, 7 Nov 2010 22:24:53 +0000 (23:24 +0100)]
Add copyright to srtm_continent.c

13 years agoAdd origin comment
Guilhem Bonnefille [Sun, 7 Nov 2010 22:20:06 +0000 (23:20 +0100)]
Add origin comment

13 years agoAdd copyright for geonamessearch.h and correct for geonamessearch.c
Rob Norris [Sun, 10 Oct 2010 20:03:43 +0000 (21:03 +0100)]
Add copyright for geonamessearch.h and correct for geonamessearch.c

git log confirms original author as Hein Ragas.
Thus also remove incorrect Created by statement.

13 years agoAdd copyright for files vikgoto.h & vikgotoxmltool.h
Rob Norris [Sun, 10 Oct 2010 20:01:01 +0000 (21:01 +0100)]
Add copyright for files vikgoto.h & vikgotoxmltool.h

git log confirms original author as Guilhem Bonnefille
Thus also amend the corresponding .c files to remove incorrect Created by statement.

13 years agoFix copyright for googlesearch.[ch]
Guilhem Bonnefille [Sun, 7 Nov 2010 22:03:17 +0000 (23:03 +0100)]
Fix copyright for googlesearch.[ch]

13 years agoAdd copyright for files preferences.c & preferences.h
Rob Norris [Sun, 10 Oct 2010 19:49:24 +0000 (20:49 +0100)]
Add copyright for files preferences.c & preferences.h

git blame confirms original author as Evan Battaglia
Statement used is standard boilerplate with suitable date.

13 years agoAdd copyright for dems.c & dems.h
Rob Norris [Sun, 10 Oct 2010 19:45:00 +0000 (20:45 +0100)]
Add copyright for dems.c & dems.h

git blame confirms original author is Evan Battaglia.
Use copyright as in related files dem.c & dem.h.

13 years agoAdd copyright for datasources.h.
Rob Norris [Sun, 10 Oct 2010 19:43:27 +0000 (20:43 +0100)]
Add copyright for datasources.h.

git blame confirms original author is Evan Battaglia.
Used copyright from similar file datasource_gps.c

13 years agoCorrect DocBook usage
Guilhem Bonnefille [Sun, 7 Nov 2010 18:29:39 +0000 (19:29 +0100)]
Correct DocBook usage

The procedure element is used for enumerating different steps in a procedure.
Simple enumeration is done with itemizedlist element.

13 years agoVarious improvements and tidy ups.
Rob Norris [Fri, 15 Oct 2010 19:19:17 +0000 (20:19 +0100)]
Various improvements and tidy ups.

Improve concepts:
. Add what is a Layer
. Mention Statusbar
Better use of 'appname'
Move verbose/debug mode to bottom + add example for a map download
General GUI reference improvements.
Add Begin Track Icon.
Other misc bits as I went along...

13 years agoDeprecated: only include gtk/gtk.h
Guilhem Bonnefille [Wed, 3 Nov 2010 21:45:08 +0000 (22:45 +0100)]
Deprecated: only include gtk/gtk.h

13 years agoImprove depreaction options
Guilhem Bonnefille [Wed, 3 Nov 2010 21:41:53 +0000 (22:41 +0100)]
Improve depreaction options

* Add options
* Add a cached value

13 years agoAdd built-in map sources in example file
Guilhem Bonnefille [Tue, 2 Nov 2010 13:38:31 +0000 (14:38 +0100)]
Add built-in map sources in example file

13 years agoFix extend track using magic scissors.
Rob Norris [Sun, 31 Oct 2010 20:11:44 +0000 (20:11 +0000)]
Fix extend track using magic scissors.

Should only need to click once to select the next point to extend the current track, hence need to mark that the first point is known (via the 'magic scissors started' variable).

13 years agoMerge branch 'master' into i18n-launchpad
Guilhem Bonnefille [Mon, 1 Nov 2010 19:30:48 +0000 (20:30 +0100)]
Merge branch 'master' into i18n-launchpad

13 years agoDocument previous translation updates
Guilhem Bonnefille [Mon, 1 Nov 2010 19:29:35 +0000 (20:29 +0100)]
Document previous translation updates

13 years agoImport Launchpad updates
Guilhem Bonnefille [Sat, 23 Oct 2010 21:36:28 +0000 (23:36 +0200)]
Import Launchpad updates

13 years agoFix autodownloading while panning
Sven Wegener [Thu, 14 Oct 2010 19:46:11 +0000 (21:46 +0200)]
Fix autodownloading while panning

Since commit 1c6a6010 ("Disable autodownloading when dragging the map")
we only trigger an autodownload when starting to pan and not on stop,
which is pretty bad. Also pan_move is never reset, resulting in no
update when panning with keyboard shortcuts after panning with the
mouse.

Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
13 years agoPrevent crashes when downloading Expedia Maps.
Rob Norris [Mon, 18 Oct 2010 19:25:51 +0000 (20:25 +0100)]
Prevent crashes when downloading Expedia Maps.

Fix expedia code to use updated vikmapslayer_compat.h, which was modified for:
'Allow reuse of curl connection objects'
SHA: 825413bac81e7234ed27a8ff3343a8295cc393e2

Signed-off-by: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
13 years agoFix Debian #599048: Segmentation fault when using gpsbabel
Rob Norris [Fri, 15 Oct 2010 19:06:40 +0000 (20:06 +0100)]
Fix Debian #599048: Segmentation fault when using gpsbabel

Ensure cmd_off & extra_off are initialized before use.

Signed-off-by: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
13 years agoFix dem_gradient_colors allocation.
Rob Norris [Thu, 14 Oct 2010 20:20:06 +0000 (21:20 +0100)]
Fix dem_gradient_colors allocation.

A comma was missing - giving an unparsable colour.

13 years agoFix commit 1c6a6010661da96fd105ec42ad2f048df79fabbd
Guilhem Bonnefille [Wed, 13 Oct 2010 19:56:42 +0000 (21:56 +0200)]
Fix commit 1c6a6010661da96fd105ec42ad2f048df79fabbd

I simply did test in the wrong way.
I added documentation.

13 years agoFix compiler warnings in preferences.c
Rob Norris [Mon, 11 Oct 2010 23:54:28 +0000 (00:54 +0100)]
Fix compiler warnings in preferences.c

13 years agoFix: enforce defensive code
Guilhem Bonnefille [Tue, 12 Oct 2010 20:04:56 +0000 (22:04 +0200)]
Fix: enforce defensive code

13 years agoReleasing viking 0.9.96
Guilhem Bonnefille [Mon, 11 Oct 2010 22:04:32 +0000 (00:04 +0200)]
Releasing viking 0.9.96

13 years agoFix unecessary change in string
Guilhem Bonnefille [Mon, 11 Oct 2010 21:08:57 +0000 (23:08 +0200)]
Fix unecessary change in string

Simply play with length.
Furthermore, this character belongs to a string owned
by other part of software.

13 years agoFree memory
Guilhem Bonnefille [Sun, 26 Sep 2010 14:36:42 +0000 (16:36 +0200)]
Free memory

13 years agoAdd defensive code
Guilhem Bonnefille [Sun, 26 Sep 2010 14:35:06 +0000 (16:35 +0200)]
Add defensive code

13 years agoIncrease buffer length
Guilhem Bonnefille [Sun, 26 Sep 2010 14:31:44 +0000 (16:31 +0200)]
Increase buffer length

I think 50 is too small as etag contains 36 characters
and header contains 15 characters.

13 years agoFix memcheck error
Jon Burgess [Sun, 26 Sep 2010 14:25:28 +0000 (16:25 +0200)]
Fix memcheck error

What I think happens is:
1) We first do a request for a tile with an ETag and apply a custom
header, this gets set into the conn->data->set.headers pointer
2) The header gets freed, but the set.headers pointer is left as a
dangling reference to the memory
3) A subsequent request is generated for a tile without an etag so we do
not overwrite the set.headers pointer and it keeps the old, invalid
value and the HTTP request code tries to reference it.

I believe the associated change should fix it by ensuring the dangling
pointer gets cleared during step (2).

13 years agoMerge remote branch 'jocelyn/etag'
Guilhem Bonnefille [Mon, 11 Oct 2010 21:04:07 +0000 (23:04 +0200)]
Merge remote branch 'jocelyn/etag'

13 years agoDisable autodownloading when dragging the map
Guilhem Bonnefille [Mon, 11 Oct 2010 20:44:17 +0000 (22:44 +0200)]
Disable autodownloading when dragging the map

I recently discovered that a recent commit introduce a significant
change on CPU usage.
The commit is 71eff775d86be02173e28421cea7f7d3f5a8344. It offers a
smooth pan when drag&drop, but it introduces a huge amount of tile
requests.

For exemple, when I drag the map, I quickly observe around 600
requests on local tile cache while around 10 requests would be enough.

The matter is, in order to keep a smooth dragging, the viewport is
requested to redraw completly. While doing this, all displayed maps
need to check their local cache. And this, for each X event.

This fix is a temporary one.
A better solution implies certainly a significant refactoring
of display/download.

Signed-off-by: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
13 years agoFix: Uninitialized color value being used
Robert Norris [Sun, 10 Oct 2010 16:18:05 +0000 (18:18 +0200)]
Fix: Uninitialized color value being used

13 years agoAvoid uninitialized color value usage
Guilhem Bonnefille [Sun, 10 Oct 2010 16:17:23 +0000 (18:17 +0200)]
Avoid uninitialized color value usage

Spotted-by: Jon Burgess <jburgess777@gmail.com>
13 years agoDefensive code
Guilhem Bonnefille [Sun, 10 Oct 2010 16:01:21 +0000 (18:01 +0200)]
Defensive code

13 years agoAdd new menu entry in GPS Layer to delete the realtime information.
Rob Norris [Fri, 8 Oct 2010 18:54:49 +0000 (19:54 +0100)]
Add new menu entry in GPS Layer to delete the realtime information.

Same method as deleting the upload and download GPS layer information.

13 years agoEnsure GPS realtime information deleted when GPS Layer -->Empty All is called.
Rob Norris [Fri, 8 Oct 2010 18:54:27 +0000 (19:54 +0100)]
Ensure GPS realtime information deleted when GPS Layer -->Empty All is called.

13 years agoFix SF#3009431: Prevent Crash in Real Time Tracking GPS Mode & Autodownload Maps.
Rob Norris [Fri, 8 Oct 2010 18:54:02 +0000 (19:54 +0100)]
Fix SF#3009431: Prevent Crash in Real Time Tracking GPS Mode & Autodownload Maps.

Protect the GPS layer initiated map drawing update in the same way as the Map layer background download maps draw update works.

13 years agoFix display of rounded speed units scale markers in the speed profile.
Rob Norris [Thu, 7 Oct 2010 19:44:47 +0000 (20:44 +0100)]
Fix display of rounded speed units scale markers in the speed profile.

The integer method only works when the speed unit is in m/s; thus for others show the value to 1 decimal place.

13 years agoRevert "Make more portable .vik file, as don't save the map cache directory if it...
Guilhem Bonnefille [Fri, 8 Oct 2010 20:08:28 +0000 (22:08 +0200)]
Revert "Make more portable .vik file, as don't save the map cache directory if it's the map cache default directory."

This reverts commit 39aec6c6b87a324981a6e1d028ba345320a444ad.

This commit introduced a behaviour quite confusing: a saved .vik file
cannot be reopened after a change on prefered cache directory.
At least the old way is deterministic.

13 years agoMerge remote branch 'rnorris/LayerMenuKeyboardAccelerators'
Guilhem Bonnefille [Fri, 8 Oct 2010 20:04:58 +0000 (22:04 +0200)]
Merge remote branch 'rnorris/LayerMenuKeyboardAccelerators'

13 years agoMake more portable .vik file, as don't save the map cache directory if it's the map...
Rob Norris [Thu, 30 Sep 2010 20:51:32 +0000 (21:51 +0100)]
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.

Signed-off-by: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>