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.
Use motion hints to make map motion more responsive in slow environment.
Problems:
GTK+ motion hint implementation is incorrect. This patch uses deprecated
way to get the best results. See
http://bugzilla.gnome.org/show_bug.cgi?id=587714 for more.
The patch makes a bit more visible some redrawing races (original image is
sometimes redrawn after the just-moved tile).
Previous model was based on file: an existing *.tmp file signify a thread is downloading.
This model is not error prone: when viking failed to remove such a file (core dump?),
it won't be able to download this tile in the future.
Now, the concurrency between threads is handle internally: a list contains
all tmp files currently in use. By this way, thread exclude each other and
locks are clean at start.
Drawback: this model does not allow concurrency between multiple instance
of viking.
* Finish support on uploading traces via new OSM API.
* Make use of new "visibility" trace property instead of the deprecated "public" boolean.
* Simplify the code a little bit and moves
default focus to the trace title, because in most cases there is no need to edit login credentials, they are stored.