]> git.street.me.uk Git - andy/viking.git/log
andy/viking.git
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>
13 years agoRemove specific user's map cache directory from test Terraserver.vik file, so that...
Rob Norris [Thu, 30 Sep 2010 20:49:29 +0000 (21:49 +0100)]
Remove specific user's map cache directory from test Terraserver.vik file, so that anyone can use it.

Signed-off-by: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
13 years agoPrevent zoom factor string displaying unnecessary .0s when it's a whole number.
Rob Norris [Thu, 30 Sep 2010 20:48:58 +0000 (21:48 +0100)]
Prevent zoom factor string displaying unnecessary .0s when it's a whole number.

13 years agoPrevent access to undefined data when fgets() returns NULL
Jon Burgess [Sun, 26 Sep 2010 18:51:43 +0000 (19:51 +0100)]
Prevent access to undefined data when fgets() returns NULL

If viking.prefs is empty this triggers the following warning at startup in valgrind:

==21725== Conditional jump or move depends on uninitialised value(s)
==21725==    at 0x447354: preferences_load_from_file (preferences.c:147)
==21725==    by 0x447444: a_preferences_get (preferences.c:318)
==21725==    by 0x41019D: a_vik_get_default_lat (globals.c:133)
==21725==    by 0x42B6F3: viewport_init (vikviewport.c:167)
...

This occurs when fgets() returns NULL but the code still tries to
interpret the uninitialized contents of buf.

  Jon

13 years agoImprove Track Properties speed profile display for low speed difference (e.g. walking...
Rob Norris [Sun, 26 Sep 2010 18:25:03 +0000 (19:25 +0100)]
Improve Track Properties speed profile display for low speed difference (e.g. walking) tracks.

The minimum speed difference is far too great so reduce from 20m/s to 5m/s, otherwise the values shown can be very small compared to the overall graph maximum. For tracks with a bigger difference it automatically uses a sensible difference.

13 years agoUse speed units in display of Track/Waypoint layer draw by velocity config values...
Rob Norris [Sun, 26 Sep 2010 18:15:49 +0000 (19:15 +0100)]
Use speed units in display of Track/Waypoint layer draw by velocity config values, but maintain units as metres per second when read from/saved to files.

13 years agoFix arithmetic macro definition
Guilhem Bonnefille [Sun, 26 Sep 2010 20:40:39 +0000 (22:40 +0200)]
Fix arithmetic macro definition

cpp macro are only text substitutions.
We have to ensure expansion will do what coder expect.

13 years agoAdd and use defines for conversion of speed units.
Rob Norris [Sun, 26 Sep 2010 18:12:44 +0000 (19:12 +0100)]
Add and use defines for conversion of speed units.

Also add and use a feet to meters conversion.

13 years agoFix arithmetic macro definition
Guilhem Bonnefille [Tue, 28 Sep 2010 20:46:20 +0000 (22:46 +0200)]
Fix arithmetic macro definition

13 years agoAdd keyboard accelerators for as many as possible View Menu entries.
Rob Norris [Mon, 27 Sep 2010 00:07:01 +0000 (01:07 +0100)]
Add keyboard accelerators for as many as possible View Menu entries.

13 years agoRemove duplicated line of code in trackpoint drawing.
Rob Norris [Mon, 27 Sep 2010 20:09:37 +0000 (21:09 +0100)]
Remove duplicated line of code in trackpoint drawing.

13 years agoFix small memory leak when downloading DEM data via the tool method.
Rob Norris [Wed, 29 Sep 2010 07:35:08 +0000 (08:35 +0100)]
Fix small memory leak when downloading DEM data via the tool method.

13 years agoDEM layer properties tidy up.
Rob Norris [Thu, 23 Sep 2010 23:00:46 +0000 (00:00 +0100)]
DEM layer properties tidy up.

Remove unused line thickness property (although 'used' in setting up GCs, no actual line drawing takes place so the value is irrelevant).
Change the colour property from a string to a proper GdkGC, so one can use the colour picker to choose the colour. The default is blue.
Use this colour for height's less than then the minimum elevation property (as well as specifically for zero).
Remove the unused single GC.

13 years agoAdd a new debug message
Guilhem Bonnefille [Sat, 25 Sep 2010 15:15:52 +0000 (17:15 +0200)]
Add a new debug message

13 years agoSimplify zoom status when xmpp and ympp are equal
Guilhem Bonnefille [Sat, 25 Sep 2010 15:13:27 +0000 (17:13 +0200)]
Simplify zoom status when xmpp and ympp are equal

Most of the time xmpp==ympp. So, there is no need to display both factors.

13 years agoFix minor source code typo
Guilhem Bonnefille [Sat, 25 Sep 2010 15:09:37 +0000 (17:09 +0200)]
Fix minor source code typo

13 years agoFix arithmetic macro definition
Guilhem Bonnefille [Sat, 25 Sep 2010 11:47:41 +0000 (13:47 +0200)]
Fix arithmetic macro definition

cpp macro are only text substitutions.
We have to ensure VIK_METERS_TO_FEET(3+1) will do what coder expect.

13 years agoImprove grammar/usage for conversion macro function to convert meters into feet....
Rob Norris [Thu, 23 Sep 2010 21:57:25 +0000 (22:57 +0100)]
Improve grammar/usage for conversion macro function to convert meters into feet. Also prepend these macros with VIK_ as better practice.

14 years agoUse constant for 'feet in meter'
Guilhem Bonnefille [Sun, 19 Sep 2010 21:19:47 +0000 (23:19 +0200)]
Use constant for 'feet in meter'

It's always better to use constant when a value is used more than once.

14 years agoUse height units in the altitude readout for the cursor position on the status bar.
Rob Norris [Sun, 5 Sep 2010 11:05:32 +0000 (12:05 +0100)]
Use height units in the altitude readout for the cursor position on the status bar.

NB The altitude is only shown for valid DEM layer positions.

14 years agoUse height units in display of DEM min / max elevation values, but maintain units...
Rob Norris [Sun, 5 Sep 2010 11:05:00 +0000 (12:05 +0100)]
Use height units in display of DEM min / max elevation values, but maintain units as metres when read from/saved to files.

14 years agoExtend set/get param interface to have knowledge of what type of operation it is...
Rob Norris [Sun, 5 Sep 2010 10:44:24 +0000 (11:44 +0100)]
Extend set/get param interface to have knowledge of what type of operation it is - i.e. is it related to file i/o or display/cut/copy usage.

This means differing actions can be taken dependent on the usage, such as in determining if conversion operations are required.
Thus when called from file.c the parameter is set to true, and elsewhere it is set to false.

14 years agoFix cycle map URL
Guilhem Bonnefille [Sun, 19 Sep 2010 17:07:32 +0000 (19:07 +0200)]
Fix cycle map URL

Uses the OpenCycleMap service
http://www.opencyclemap.org/

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