Replace map source when new one is registered with same id.
Such feature allows user to change properties of built-in sources.
Furthermore, this allows to imagine loading sources
from multiple configureation files (/usr/share/, /etc/, $HOME).
Rob Norris [Tue, 23 Mar 2010 00:17:34 +0000 (00:17 +0000)]
Make GPS layer cut/copy available from popup menu.
There's no reason why GPS layer cut/copy should be disabled from the popup menu, since one can access it in three other ways (ctrl+c/x, main edit menu & cut/copy buttons at bottom of treeview.)
Rob Norris [Mon, 22 Mar 2010 23:53:26 +0000 (23:53 +0000)]
Fix GPS layer copy.
For GPS layer copy always use viewport so it will have the correct GTK Window references (otherwise crashes on Linux).
For copied GPS layer deletes, do not abort if number of signal handlers removed is not 1. (All systems inc Windows)
Rob Norris [Thu, 18 Mar 2010 16:07:55 +0000 (17:07 +0100)]
Fix: First Track not Black in Draw All Tracks Black Mode.
In fact it is green!
This is due to using the GC before setting it to Black when in this mode.
NB Also make use of the VIK_TRW_LAYER_TRACK_GC_BLACK define.
Fix #2958601: Support for non ascii characters in "Go-to" search
When escaping value, we have to enforce that a single byte is encoded. Previous implementation produced a 8 digits hexa value due to negative char value.
Rob Norris [Sun, 7 Mar 2010 23:03:26 +0000 (23:03 +0000)]
Add and use preference for height units.
Add height unit options of metres or feet into preferences.
Base the method on the Degrees format option.
Update all revelant displays to show correct information including:
.Track Properties - Stats & Elev/Dist tabs.
.Track Point Properties
.Waypoint Properties
Rob Norris [Sun, 7 Mar 2010 20:49:04 +0000 (20:49 +0000)]
Add and use preference for speed units.
Add speed unit options of kilometres per hour, miles per hour or meters per second into preferences
Base the method on the Degrees format option.
Update all revelant displays to show correct information including:
.Track Properties - Stats & Speed/Time tabs.
.Track Point Properties
Remove the METRIC define from viktrwlayer_propwin.c and the unnecessary conversion of all speeds (Instead just convert the few in the generation for the scale marks text strings)
Rob Norris [Sun, 7 Mar 2010 19:37:35 +0000 (19:37 +0000)]
Add and use preference for distance units.
Add distance unit options of Kilometres or Miles into preferences
Base the method on the Degrees format option.
Update all displays to show correct information including:
.Scale Mark
.Ruler
.Track Properties - Stats & Elev/Dist tabs.
.Track Point Properties
[NB For track point differences use metres or yards rather than the larger units]
- the old version just draws fixed-size boxes in any zoom. in high zoom
modes, this results in sparse boxes all over the screen. the new
version scales these boxes so they fill the area completely. this
works for both absolute and height gradient
- change of DEM source path from /srtm/version2_1/SRTM3/OLD/ to
/srtm/version2_1/SRTM3/. again, yes. that's because the first is not
working but the second is.
recent files are stored as a URI. in our case, this is ALWAYS a file:// URI.
the file reading code expects an ordinary filename, so if the filename begins
with file://, this portion of the filename is dropped.
a more proper (and much larger) fix will involve converting file.c to use GFile.
Signed-off-by: Mike Ryan <mikeryan@lacklustre.net>
Sven Wegener [Wed, 20 Jan 2010 21:08:59 +0000 (22:08 +0100)]
Update mtime of up-to-date tiles
When the server reported that there is no newer version available,
update the mtime of our local copy. This avoids having to recheck the
tile over and over again, when scrolling over an area multiple times.
Signed-off-by: Sven Wegener <sven.wegener@stealer.net> Signed-off-by: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
Sven Wegener [Sat, 16 Jan 2010 12:31:35 +0000 (13:31 +0100)]
Allow reuse of curl connection objects
This is quite a huge speed gain when downloading a lot of maps, because it
allows curl to use http keep-alive and avoid the handshake for every
connection.
Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
Since recent changes, it is now possible for the user to add some map types.
So, the list of available map type can become really important.
The previous UI, based on a radio group, became less appropriate than a
combobox menu.
This is particularly true on devices with small screen.
This (long lived) branch hosted a feature to allow automatic download
after a HTTP header check.
The merge is complex as Map_Type evolved to a GObject MapSource.
VikSlippyMapSource now has a new property to set the minimum age
before checking tiles.
Sven Wegener [Sun, 10 Jan 2010 20:44:25 +0000 (21:44 +0100)]
Fix "Moving Map Method" cannot be disabled
Currently selecting "Disabled" for the "Moving Map Method" results in
"Keep vehicle on screen" behaviour. Add missing check so that the
feature is actually disabled.
Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
In libgpsd 2.90, the logic of gps_open silently changed:
the returned data is no more allocated, but directly points to a static structure.
So, we use gps_open_r instead.
Futhermore, it is better to not mix libc and glib allocator functions.
g_realloc is replaced by native realloc and memory freed by free.