Quy Tonthat [Fri, 18 Jan 2008 04:36:12 +0000 (04:36 +0000)]
Added mutex to protect map pixbuf cache from being corrupted.
Since the ring list and the hash and other house keeping data for the
pixbuf cache are modified by (map download) threads, there are potentional
problems of data corruption. A mutex was added to address the problem.
Oddgeir Kvien [Thu, 27 Dec 2007 15:49:45 +0000 (15:49 +0000)]
Add GpxWritingOptions to control GPX file writing
It's a complement to the patch submitted by Oddgeir Kvien in order to
ensure that only GPX files wroten for OSM upload have "ele" and "time" fields
forced.
Fix: if libgps is missing, Realtime GPS Tracking is disabled
It is very annoying to have to specify "--disable-realtime-gps-tracking"
option when your system does not offer libgps.
The script configure should automatically detect available features.
Remind:
- _("..."): in dynamic context
- N_("..."): in static context,
corresponding dynamic context must be tagged with _(var)
(where var contains the static string)
More details at http://developer.gimp.org/api/2.0/glib/glib-I18N.html
and in gettext manual http://www.gnu.org/software/gettext/manual/gettext.html
Quy Tonthat [Mon, 19 Nov 2007 13:20:30 +0000 (13:20 +0000)]
Fix a bug that can potentially cause segfault.
Hopefully this may fix a crash reported by Tim. I could not reproduce the crash
so I would not be able to verify whether it did fix it. It's still a fix for
potential problems otherwise.
Quy Tonthat [Wed, 24 Oct 2007 07:47:10 +0000 (07:47 +0000)]
Make elev graph show better graph for low altitude tracks.
The old method of using a fixed value (100m above the lowest) to calculate
the max of graph make tracks at low altitudes look flat.
It now uses 25% of the highest as the max of graph.
Quy Tonthat [Sat, 20 Oct 2007 05:52:07 +0000 (05:52 +0000)]
Track Properties Dialog no longer blocks interaction of the main window.
- Before this change, bringing up a track dialog would stop users from
doing anything else with viking. The restriction is mow removed.
- The dialog is no longer in modal mode.
- Multiple dialogs for different tracks can be up at the same time.
- Users can only start one dialog for each track. Once its dialog is on,
its "Properties" menu item will be disabled.
- When a track is deleted, its dialog (if on) will also be destroyed.
Quy Tonthat [Mon, 15 Oct 2007 15:04:26 +0000 (15:04 +0000)]
Interpolating DEM data.
- DEM data can now be interpolated using ione of 3 methods:
o no_interpolation: Take the nearest south-west data.
o simple_interpolation: Interpolated using a simple method.
o best_interpolation: Interpolated using Shepard method.
- "Apply DEM data" for a track now uses "best_interpolation".
- Elevation-distance graph now uses "best_interpolation".
- Elevation information displayed on status bar now uses most suitable
interpolation methods according to the current zoom level.
Not much testing has been made to justify performance/accuracy trade-off
of the interpolating methods.
Quy Tonthat [Fri, 12 Oct 2007 15:17:16 +0000 (15:17 +0000)]
Make use of DEM elevation data and GPS speed data for track graphs.
- elevation-distance graph: change non-data elevation color from red to yellow.
- elevation-distance graph: plot altitudes from DEM and speeds from GPS where
available.
- speed-time: plot speeds from GPS where available.
Quy Tonthat [Thu, 11 Oct 2007 08:53:11 +0000 (08:53 +0000)]
Added new fields to trackpoints for data from GPS in realtime mode.
- Speed, course, fix mode and number of satellites are now stored in trackpoint
when received from GPS in realtime mode.
- There should be no backward compatibility problem. FIles saved by earlier
version of viking can still be used.
- New data from files saved by viking from this change onward won't be
recognised by earlier version of viking and will generate (lots of) warnings
when read.
Quy Tonthat [Wed, 10 Oct 2007 15:46:59 +0000 (15:46 +0000)]
Make Realtime Tracking a feature that can be disabled at configure time.
- Configure no longer quietly disables Realtime Tracking in the absence of
libgps. The user will make decision whether she wants the feature or not.
This is especially important when she is a package maintainer for her distro.
- If Realtime Tracking is enabled (infact, not disabled) and libgps is not
found, make it an error to remind user that she has to make her choice.
- Display summary of status of features (enable/disable) at the end of
configure. Some features were left out by intention.
- Clean up codes to minimise ifdef/endif