]> git.street.me.uk Git - andy/viking.git/log
andy/viking.git
16 years agoTrack Properties Dialog no longer blocks interaction of the main window.
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.

Signed-off-by: Quy Tonthat <qtonthat@gmail.com>
16 years agoMinor bugfix (one_zone is 0 for non-UTM projections)
Evan Battaglia [Wed, 17 Oct 2007 22:39:28 +0000 (22:39 +0000)]
Minor bugfix (one_zone is 0 for non-UTM projections)

16 years agoFix Google parsing. Should probably change default number to "2.61" too.
Evan Battaglia [Tue, 16 Oct 2007 18:30:24 +0000 (18:30 +0000)]
Fix Google parsing. Should probably change default number to "2.61" too.

16 years agoCosmetic changes and cleanup
Quy Tonthat [Mon, 15 Oct 2007 15:54:40 +0000 (15:54 +0000)]
Cosmetic changes and cleanup

Signed-off-by: Quy Tonthat <qtonthat@gmail.com>
16 years agoInterpolating DEM data.
Quy Tonthat [Mon, 15 Oct 2007 15:16:24 +0000 (15:16 +0000)]
Interpolating DEM data.

Stuff missing from the last commit.

Signed-off-by: Quy Tonthat <qtonthat@gmail.com>
16 years agoInterpolating DEM data.
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.

Signed-off-by: Quy Tonthat <qtonthat@gmail.com>
16 years agoAdd more room to the top of altitude-distance graph.
Quy Tonthat [Mon, 15 Oct 2007 04:53:40 +0000 (04:53 +0000)]
Add more room to the top of altitude-distance graph.

Signed-off-by: Quy Tonthat <qtonthat@gmail.com>
16 years agofix plotting of DEM data on elevation graph
Evan Battaglia [Mon, 15 Oct 2007 01:58:25 +0000 (01:58 +0000)]
fix plotting of DEM data on elevation graph

16 years agoFix tool keypresses to work only when Viewport has focus.
Evan Battaglia [Fri, 12 Oct 2007 16:17:00 +0000 (16:17 +0000)]
Fix tool keypresses to work only when Viewport has focus.

16 years agoMake use of DEM elevation data and GPS speed data for track graphs.
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.

Signed-off-by: Quy Tonthat <qtonthat@gmail.com>
16 years agokeypress framework for tools, Esc & Backspace
Evan Battaglia [Fri, 12 Oct 2007 03:30:26 +0000 (03:30 +0000)]
keypress framework for tools, Esc & Backspace

16 years agoUpgrading to API 0.5 of OSM
Guilhem Bonnefille [Thu, 11 Oct 2007 20:39:08 +0000 (20:39 +0000)]
Upgrading to API 0.5 of OSM

Recently, OpenStreetMap upgrade its API (0.4->0.5).
No change on the uploading part (except the version number).

16 years agoAdded new fields to trackpoints for data from GPS in realtime mode.
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.

Signed-off-by: Quy Tonthat <qtonthat@gmail.com>
16 years agoMake Realtime Tracking a feature that can be disabled at configure time.
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

Signed-off-by: Quy Tonthat <qtonthat@gmail.com>
16 years agoUse $BROWSER environment variable (for viewing geocache pages)
Evan Battaglia [Wed, 10 Oct 2007 03:13:37 +0000 (03:13 +0000)]
Use $BROWSER environment variable (for viewing geocache pages)

16 years agolibgps is no more mandatory
Guilhem Bonnefille [Tue, 9 Oct 2007 20:57:30 +0000 (20:57 +0000)]
libgps is no more mandatory

16 years agoImplement g_hash_table_remove_all in file.c too (for early glib versions)
Evan Battaglia [Tue, 9 Oct 2007 20:53:01 +0000 (20:53 +0000)]
Implement g_hash_table_remove_all in file.c too (for early glib versions)

16 years agoPreview adding a trackpoint by drawing a line when moving mouse
Evan Battaglia [Tue, 9 Oct 2007 20:50:18 +0000 (20:50 +0000)]
Preview adding a trackpoint by drawing a line when moving mouse

16 years agoRelax dependencies about glib
Guilhem Bonnefille [Tue, 9 Oct 2007 20:40:17 +0000 (20:40 +0000)]
Relax dependencies about glib

By implementing g_hash_table_remove_all ourselves we can relax
the glib dependency (no more need about glib 2.12).
Evan's patch.

16 years agoColor current track red with dashed lines. (Better feedback)
Evan Battaglia [Tue, 9 Oct 2007 18:32:14 +0000 (18:32 +0000)]
Color current track red with dashed lines. (Better feedback)

16 years agoCtrl-shift-scroll to zoom like google, scroll to zoom w/o changing
Evan Battaglia [Tue, 9 Oct 2007 17:19:12 +0000 (17:19 +0000)]
Ctrl-shift-scroll to zoom like google, scroll to zoom w/o changing
center

16 years agoFix a crash bug caused by operation on variable inside a macro.
Quy Tonthat [Tue, 9 Oct 2007 00:52:02 +0000 (00:52 +0000)]
Fix a crash bug caused by operation on variable inside a macro.

Crashes was reported on system with x86_64/gcc 4.2 but seems OK on i386/gcc 4.1
On gcc 4.2, a compiler warning was always given.
On gcc 4.1 the flag O2 suppressed the warning.

Signed-off-by: Quy Tonthat <qtonthat@gmail.com>
16 years agoFix compiling breakage caused by missing icon file from the list.
Quy Tonthat [Mon, 8 Oct 2007 01:38:40 +0000 (01:38 +0000)]
Fix compiling breakage caused by missing icon file from the list.

Signed-off-by: Quy Tonthat <qtonthat@gmail.com>
16 years agoExperimental "begin track" tool
Evan Battaglia [Sun, 7 Oct 2007 23:21:17 +0000 (23:21 +0000)]
Experimental "begin track" tool

16 years agoExtend track
Evan Battaglia [Sun, 7 Oct 2007 23:00:30 +0000 (23:00 +0000)]
Extend track

16 years agoUndo Magic Scissors by right clicking.
Evan Battaglia [Sun, 7 Oct 2007 22:25:04 +0000 (22:25 +0000)]
Undo Magic Scissors by right clicking.

16 years agoRemove debug line from last commit
Evan Battaglia [Sun, 7 Oct 2007 21:03:14 +0000 (21:03 +0000)]
Remove debug line from last commit

16 years agoCursors!
Evan Battaglia [Sun, 7 Oct 2007 21:01:58 +0000 (21:01 +0000)]
Cursors!

16 years agoScroll zoom keeps cursor over same spot on map
Evan Battaglia [Sun, 7 Oct 2007 17:16:06 +0000 (17:16 +0000)]
Scroll zoom keeps cursor over same spot on map

16 years agoTrack Properties: now displays track distance/time instead of "Selected Time".
Quy Tonthat [Sun, 7 Oct 2007 02:34:28 +0000 (02:34 +0000)]
Track Properties: now displays track distance/time instead of "Selected Time".

On the altitude-distance graph, display distance of mouse position from
the beginning of the track. On the speed-time graph display, display elapsed
time (from start of the track).

Signed-off-by: Quy Tonthat <qtonthat@gmail.com>
16 years agoThe "Selected Time" on track properties dialog is now correct.
Quy Tonthat [Sat, 6 Oct 2007 23:29:46 +0000 (23:29 +0000)]
The "Selected Time" on track properties dialog is now correct.

It was calculated based on distance, not time.

Signed-off-by: Quy Tonthat <qtonthat@gmail.com>
16 years agoCorrectly calculate position when click on speed-time graph.
Quy Tonthat [Sat, 6 Oct 2007 22:18:21 +0000 (22:18 +0000)]
Correctly calculate position when click on speed-time graph.

- Clicking on speed-time graph jumped to wrong location on map. It was
  calculated based on distance, not time. Problem is now fixed.
- Display km/h for speed entries on track properties dialog.
- Tidy up entries display on track properties.

Signed-off-by: Quy Tonthat <qtonthat@gmail.com>
16 years agoPop a message when failed to connect to gpsd.
Quy Tonthat [Sat, 6 Oct 2007 06:48:59 +0000 (06:48 +0000)]
Pop a message when failed to connect to gpsd.

Signed-off-by: Quy Tonthat <qtonthat@gmail.com>
16 years agoFix bugs that caused odd display of date/time on track properties dialog.
Quy Tonthat [Sat, 6 Oct 2007 00:31:00 +0000 (00:31 +0000)]
Fix bugs that caused odd display of date/time on track properties dialog.

Signed-off-by: Quy Tonthat <qtonthat@gmail.com>
16 years agoBe more selective in collecting realtime trackpoints.
Quy Tonthat [Fri, 5 Oct 2007 13:06:17 +0000 (13:06 +0000)]
Be more selective in collecting realtime trackpoints.

Signed-off-by: Quy Tonthat <qtonthat@gmail.com>
16 years agoFix a segfault caused by (mistakenly) adding a new layer to gps layer.
Quy Tonthat [Fri, 5 Oct 2007 00:04:20 +0000 (00:04 +0000)]
Fix a segfault caused by (mistakenly) adding a new layer to gps layer.

Adding a new layer while one of "Tracks" or "Waypoints" in gpslayer is
selected would cause segfaults. The problem is now fixed.

Signed-off-by: Quy Tonthat <qtonthat@gmail.com>
16 years agoImprovements for GPS layer's "Realtime tracking".
Quy Tonthat [Thu, 4 Oct 2007 13:53:49 +0000 (13:53 +0000)]
Improvements for GPS layer's "Realtime tracking".

- Optimisation to be more preferable  data from 3D fixes to 2D fixes
  when recording realtime tracks.
- Tracking data are now stored in a separate layer of gps layer.
- Be more precise in selecting center when in moving map mode.
- The tracking cursor now has blinking light that reflects the
  GPS status (red when 2D, green when 3D).
- libgps is now checked by configure.

Signed-off-by: Quy Tonthat <qtonthat@gmail.com>
16 years agoRemoving GPSDLayer (functionality now in gpslayer)
Evan Battaglia [Wed, 3 Oct 2007 03:40:10 +0000 (03:40 +0000)]
Removing GPSDLayer (functionality now in gpslayer)

16 years agoCleanup and cosmetic changes.
Quy Tonthat [Tue, 2 Oct 2007 13:47:59 +0000 (13:47 +0000)]
Cleanup and cosmetic changes.

Signed-off-by: Quy Tonthat <qtonthat@gmail.com>
16 years agoFix half-drawn problem for gps layer
Quy Tonthat [Tue, 2 Oct 2007 13:36:03 +0000 (13:36 +0000)]
Fix half-drawn problem for gps layer

Problem was that the viewport would go blank if clicking on visibility
of the same gps layer's layer more than once. The problem is now fixed.

Signed-off-by: Quy Tonthat <qtonthat@gmail.com>
16 years agoAdd realtime tracking to GPS layer.
Quy Tonthat [Tue, 2 Oct 2007 07:12:14 +0000 (07:12 +0000)]
Add realtime tracking to GPS layer.

New features included:

- Show real time position from GPS.
- New layer menu item to start/stop realtime tracking.
- Using gpsd. Host and port can be set in the layer properties dialog.
- Enable/disable track recording (in peroperties dialog). Tracks are
  recorded in "GPS Download" folder.
- Jump to the first position on start (enable/disable in properties dialog).
- Moving maps to keep current tracking position at the center (enable/disable
  in properties dialog)

Signed-off-by: Quy Tonthat <qtonthat@gmail.com>
16 years agoFix crashes caused by emitting update too early at layer creation.
Quy Tonthat [Mon, 1 Oct 2007 22:17:44 +0000 (22:17 +0000)]
Fix crashes caused by emitting update too early at layer creation.

It's not necessary to emit update signal at this time and it can cause
segfault for the new half-drawn update method.

Signed-off-by: Quy Tonthat <qtonthat@gmail.com>
16 years agoDisable half-drawn update mode when the center is moved.
Quy Tonthat [Mon, 1 Oct 2007 14:10:26 +0000 (14:10 +0000)]
Disable half-drawn update mode when the center is moved.

- When the center of the viewport is moved, all layers need to be redrawn.
- Data for half-drawn are now in VikWindow where they belong. Having had
  "trigger" as a static variable in viklayer would cause problems when
  viking has more than one windows.

Signed-off-by: Quy Tonthat <qtonthat@gmail.com>
16 years agoChangeLog entry
Quy Tonthat [Fri, 28 Sep 2007 13:41:12 +0000 (13:41 +0000)]
ChangeLog entry

Signed-off-by: Quy Tonthat <qtonthat@gmail.com>
16 years agoFix a long lasting bug that causes track property not working properly.
Quy Tonthat [Fri, 28 Sep 2007 13:36:01 +0000 (13:36 +0000)]
Fix a long lasting bug that causes track property not working properly.

Elevation graph did not work properly for tracks that start with trackpoints
without altitude values followed by trackpoints that do have alt. This
can also cause segfault in some case (more track points without than ones
with)

Signed-off-by: Quy Tonthat <qtonthat@gmail.com>
16 years agoHalf-drawn hack
Evan Battaglia [Fri, 28 Sep 2007 00:57:07 +0000 (00:57 +0000)]
Half-drawn hack

16 years agoDraw arrow in Gpsdlayer
Evan Battaglia [Fri, 28 Sep 2007 00:33:13 +0000 (00:33 +0000)]
Draw arrow in Gpsdlayer
DEM Layer -- minimum elevation

16 years agogpsdlayer -- gps_close() the connection.
Evan Battaglia [Wed, 26 Sep 2007 19:14:37 +0000 (19:14 +0000)]
gpsdlayer -- gps_close() the connection.

16 years agoSRTM download now works for regions outside North_America too.
Quy Tonthat [Tue, 25 Sep 2007 05:42:20 +0000 (05:42 +0000)]
SRTM download now works for regions outside North_America too.

Hash table is used to look up directory name where the files are stored
on the server. The hash table is generated from directory listing of
the server.

Signed-off-by: Quy Tonthat <qtonthat@gmail.com>
17 years agoExperimental VikGpsdLayer
Evan Battaglia [Mon, 24 Sep 2007 02:49:36 +0000 (02:49 +0000)]
Experimental VikGpsdLayer

17 years agoMagic Scissors goodies
Evan Battaglia [Sun, 23 Sep 2007 21:59:21 +0000 (21:59 +0000)]
Magic Scissors goodies

17 years agoAdd Magic Scissors icon (from GIMP)
Evan Battaglia [Sun, 23 Sep 2007 19:39:17 +0000 (19:39 +0000)]
Add Magic Scissors icon (from GIMP)

17 years agoRemove unused vik_layer_copy code
Evan Battaglia [Sun, 23 Sep 2007 19:08:26 +0000 (19:08 +0000)]
Remove unused vik_layer_copy code

17 years agoFix crashes on using wrong tools
Evan Battaglia [Sun, 23 Sep 2007 18:27:29 +0000 (18:27 +0000)]
Fix crashes on using wrong tools

17 years agoSerialize string lists / fix DEM Layer copy/paste
Evan Battaglia [Sun, 23 Sep 2007 18:04:41 +0000 (18:04 +0000)]
Serialize string lists / fix DEM Layer copy/paste

17 years ago * Pan Accelerators (Ctrl+Left, etc)
Evan Battaglia [Sun, 23 Sep 2007 06:30:41 +0000 (06:30 +0000)]
    * Pan Accelerators (Ctrl+Left, etc)
        * Ctrl-Scroll and Ctrl-Shift-Scroll to pan, kind of like Gimp.
        * Add a RADIOGROUP_STATIC properties factory type to make it easy
                for new layers. Uses an array list (like before)
                instead of a GList.
        * DEM US 10m (dem24k) source! Option in DEM Layer & ./configure
        * (copying & pasting DEM layers is broken, will fix later)

17 years agoDownload&import SRTM 90m data (more work needed)
Evan Battaglia [Sun, 23 Sep 2007 01:35:22 +0000 (01:35 +0000)]
Download&import SRTM 90m data (more work needed)
Fix right-click geocache->goto geocaching.com web page

17 years agoRefactoring: really minor change
Guilhem Bonnefille [Tue, 18 Sep 2007 19:41:17 +0000 (19:41 +0000)]
Refactoring: really minor change

17 years agoRefactoring: minor changes
Guilhem Bonnefille [Tue, 18 Sep 2007 19:41:10 +0000 (19:41 +0000)]
Refactoring: minor changes

17 years agoSaner vikfilelist.c -- allow multiple selections when adding DEM files
Evan Battaglia [Tue, 18 Sep 2007 01:58:16 +0000 (01:58 +0000)]
Saner vikfilelist.c -- allow multiple selections when adding DEM files

17 years agoFix optional geocaching -- include config.h to compile
Evan Battaglia [Tue, 18 Sep 2007 01:34:17 +0000 (01:34 +0000)]
Fix optional geocaching -- include config.h to compile

17 years agoUpdate ChangeLog
Evan Battaglia [Tue, 18 Sep 2007 01:10:27 +0000 (01:10 +0000)]
Update ChangeLog

17 years agoDraw lines for file existence at very-zoomed out levels
Evan Battaglia [Tue, 18 Sep 2007 01:08:58 +0000 (01:08 +0000)]
Draw lines for file existence at very-zoomed out levels

17 years agoRemoving unused files (*.png.h).
Guilhem Bonnefille [Sun, 9 Sep 2007 09:04:08 +0000 (09:04 +0000)]
Removing unused files (*.png.h).

17 years agoFix #1789550: define MAX macro if not defined on ALL systems
Guilhem Bonnefille [Sun, 9 Sep 2007 09:03:56 +0000 (09:03 +0000)]
Fix #1789550: define MAX macro if not defined on ALL systems

17 years agog_*ify a path building
Guilhem Bonnefille [Sun, 9 Sep 2007 09:03:47 +0000 (09:03 +0000)]
g_*ify a path building

17 years agoAutomatically fetching google version numbers.
Quy Tonthat [Sat, 8 Sep 2007 07:21:59 +0000 (07:21 +0000)]
Automatically fetching google version numbers.

Downloading maps from gogle requires a number embeded in the request uri.
These numbers are known to be changed by google over time.
Viking now tries to work out the current numbers instead of using the hardcoded.
This is done once right before the first google map download request, in a
viking session.

Signed-off-by: Quy Tonthat <qtonthat@gmail.com>
17 years agoFix #1789550: mkdtemp usage is conditioned
Guilhem Bonnefille [Fri, 7 Sep 2007 20:48:23 +0000 (20:48 +0000)]
Fix #1789550: mkdtemp usage is conditioned

So it is possible to build viking on system not offering such feature.
By this way, viking will only fail on system without $HOME, nor functional
g_get_home_dir, nor mkdtemp function.

17 years agoQA: remove a warning
Guilhem Bonnefille [Fri, 7 Sep 2007 20:48:14 +0000 (20:48 +0000)]
QA: remove a warning

17 years agog_*ify maps_layer_default_dir function and code related to maps cache
Guilhem Bonnefille [Fri, 7 Sep 2007 20:48:06 +0000 (20:48 +0000)]
g_*ify maps_layer_default_dir function and code related to maps cache

17 years agog_*ify a_get_viking_dir function
Guilhem Bonnefille [Fri, 7 Sep 2007 20:47:58 +0000 (20:47 +0000)]
g_*ify a_get_viking_dir function

- Use g_build_filename to concat path elements
- Use g_get_home_dir as fallback
Glib offers a function to retrieve the home directory of the current user.
As it is not based on $HOME, we use it as a fallback function.
See http://library.gnome.org/devel/glib/stable/glib-Miscellaneous-Utility-Functions.html#g-get-home-dir

17 years agoAdding command line option framework.
Guilhem Bonnefille [Thu, 6 Sep 2007 10:06:37 +0000 (10:06 +0000)]
Adding command line option framework.

This modification will enable the add of options.
Actually, the only improvment is "--help" support.

17 years agoFix a bug that causes crashes when using "Maps Download" tool.
Quy Tonthat [Wed, 5 Sep 2007 15:07:32 +0000 (15:07 +0000)]
Fix a bug that causes crashes when using "Maps Download" tool.

The crash can be reproduced consistently using the followings:

1. start viking without argument
2. create a map layer, using default settings.
3. select the map layer.
4. select "Maps Download" tool on toolbar.
5. click anywhere on the map (the viewport)

This problem was due to the mode of the center coord was not initialised.
THe problem is now fixed.

Signed-off-by: Quy Tonthat <qtonthat@gmail.com>
17 years agoMake viking's default start location somewhere more likely has maps.
Quy Tonthat [Wed, 5 Sep 2007 14:39:16 +0000 (14:39 +0000)]
Make viking's default start location somewhere more likely has maps.

The location before this fix was virtually nowhere in the sea which
has no maps from most popular sources. This can be quite confusing
for first time users who don't even know how to navigate to a location
that has maps.

Viking now starts in New York City. Not because it is my most favourite
place on earth (which is Sydney BTW), but it is because we more likely
find maps there.

Signed-off-by: Quy Tonthat <qtonthat@gmail.com>
17 years agoReleasing 0.9.2
Guilhem Bonnefille [Tue, 4 Sep 2007 20:41:35 +0000 (20:41 +0000)]
Releasing 0.9.2

17 years agoQA: removing warning
Guilhem Bonnefille [Tue, 4 Sep 2007 20:41:27 +0000 (20:41 +0000)]
QA: removing warning

17 years agoHide Expedia view mode when expedia is not built in.
Guilhem Bonnefille [Mon, 3 Sep 2007 20:42:22 +0000 (20:42 +0000)]
Hide Expedia view mode when expedia is not built in.

17 years agoDo not warn about drawmode inconsistency while reading file.
Guilhem Bonnefille [Mon, 3 Sep 2007 20:34:10 +0000 (20:34 +0000)]
Do not warn about drawmode inconsistency while reading file.

17 years agoDo not warn about drawmode inconsistency while reading file.
Guilhem Bonnefille [Mon, 3 Sep 2007 20:32:07 +0000 (20:32 +0000)]
Do not warn about drawmode inconsistency while reading file.

17 years agoUse $EMAIL to initialise email field for OSM upload.
Guilhem Bonnefille [Mon, 3 Sep 2007 20:31:53 +0000 (20:31 +0000)]
Use $EMAIL to initialise email field for OSM upload.

It is quite annoying to fill in the "email" field each time.
Viking now use the "standard" EMAIL varenv to preset this field.

17 years agoRefactoring: retrieve the VikWindow from the VikViewport via its GtkWidget nature
Guilhem Bonnefille [Mon, 3 Sep 2007 16:58:41 +0000 (16:58 +0000)]
Refactoring: retrieve the VikWindow from the VikViewport via its GtkWidget nature

Instead of storing one more reference in the VikVewport structure,
we use the fact that VikWindow is the top level window. So, it is possible
to retrieve it from any of its children. And, hopefully, VikViewport
is also a GtkWidget, child of the main window.

17 years agoPreset filename when exporting a TrwLayer.
Guilhem Bonnefille [Mon, 3 Sep 2007 16:58:28 +0000 (16:58 +0000)]
Preset filename when exporting a TrwLayer.

17 years agoQA: strong type the second argument of the *_post_read functions.
Guilhem Bonnefille [Mon, 3 Sep 2007 16:58:20 +0000 (16:58 +0000)]
QA: strong type the second argument of the *_post_read functions.

17 years agoFix: crash when "applying" a map layer property dialog
Guilhem Bonnefille [Mon, 3 Sep 2007 10:09:44 +0000 (10:09 +0000)]
Fix: crash when "applying" a map layer property dialog

Bug reported by Ã˜yvind Ottestad
1) Add a map layer
2) Right-click the map-layer and change one of the settings (in my case,
unchecking auto-download maps)
3) Program crashes

17 years agoReleasing 0.9.1
Guilhem Bonnefille [Sun, 2 Sep 2007 15:36:16 +0000 (15:36 +0000)]
Releasing 0.9.1

17 years agoDisable Expedia map layer by default (as it is not working)
Guilhem Bonnefille [Sat, 1 Sep 2007 13:31:33 +0000 (13:31 +0000)]
Disable Expedia map layer by default (as it is not working)

The Expedia map layer is not working since long time (see issue #1211389).
No need to activate a bogus stuff. Interested users can use
--enable-expedia

17 years agoAdd redirect support (for Expedia map layer)
Bernd Zeimetz [Thu, 30 Aug 2007 20:05:41 +0000 (20:05 +0000)]
Add redirect support (for Expedia map layer)

Patch submitted by Bernd Zeimetz.

17 years agoAdd ability to upload a single track
Guilhem Bonnefille [Thu, 30 Aug 2007 13:08:35 +0000 (13:08 +0000)]
Add ability to upload a single track

It is possible to upload a single track by right-clicking on a track.

17 years agoQA: Remove warnings
Guilhem Bonnefille [Thu, 30 Aug 2007 13:08:20 +0000 (13:08 +0000)]
QA: Remove warnings

17 years agoCheck current drawmode after creating a new MapsLayer
Guilhem Bonnefille [Tue, 28 Aug 2007 13:45:26 +0000 (13:45 +0000)]
Check current drawmode after creating a new MapsLayer

When a new map layer is created, Viking check the current drawmode.
If it is not the drawmode requested by the new layer, it warn the user.

17 years agoQA: testing NULL before *free is not necessary
Guilhem Bonnefille [Tue, 28 Aug 2007 13:45:15 +0000 (13:45 +0000)]
QA: testing NULL before *free is not necessary

It is better to fill freed pointers with NULL in order to "easily" detect
future usage of this freed memory.

17 years agoRefactoring: compute drawmode name by getting menu entry label
Guilhem Bonnefille [Tue, 28 Aug 2007 13:45:03 +0000 (13:45 +0000)]
Refactoring: compute drawmode name by getting menu entry label

As Viking will be internationalized, it seems better to avoid duplication
of labels.

17 years agoAllow to retrieve VikWindow from VikViewport
Guilhem Bonnefille [Tue, 28 Aug 2007 13:44:52 +0000 (13:44 +0000)]
Allow to retrieve VikWindow from VikViewport

17 years agoGive more instructive message for attempting to download maps in wrong mapmode
Quy Tonthat [Fri, 24 Aug 2007 15:46:28 +0000 (15:46 +0000)]
Give more instructive message for attempting to download maps in wrong mapmode

Point users to View menu and suggest what mode to select.

Signed-off-by: Quy Tonthat <qtonthat@gmail.com>
17 years agoBetter checking to detect downloaded text instead of images
Quy Tonthat [Fri, 24 Aug 2007 14:29:07 +0000 (14:29 +0000)]
Better checking to detect downloaded text instead of images

Signed-off-by: Quy Tonthat <qtonthat@gmail.com>
17 years agoNew google version number
Quy Tonthat [Fri, 24 Aug 2007 14:07:43 +0000 (14:07 +0000)]
New google version number

Signed-off-by: Quy Tonthat <qtonthat@gmail.com>
17 years agoAdding the ability to upload to OSM.
Guilhem Bonnefille [Wed, 22 Aug 2007 20:33:25 +0000 (20:33 +0000)]
Adding the ability to upload to OSM.

A new menu entry allows to upload the data of a TrwLayer to OpenStreetMap
as a GPX data file.

Technics:
The button opens a dialog to request the needed parameters:
- authentification informations (email and password)
- a filename (initially built with the name of the TrwLayer)
- the descriptios, tags and visibility of the trace
Then, a background thread is activated.

TODO:
- Check the parameter (not empty, syntactically correct tags)
- Error handling: as the upload is threaded, the error is not displayed
- Allow to upload a simple track (not a whole TrwLayer)

17 years agoSmall target to easy multi-branch developer's work
Guilhem Bonnefille [Mon, 20 Aug 2007 21:17:26 +0000 (21:17 +0000)]
Small target to easy multi-branch developer's work

17 years agolibcurl is a requirement
Guilhem Bonnefille [Mon, 20 Aug 2007 21:17:21 +0000 (21:17 +0000)]
libcurl is a requirement

It is no more a optional feature, but an "hard" requirement.
The main reason is that it is time consuming to maintain code
to work with and without libcurl. Furthermore, libcurl is available
in a lot of distributions now.

17 years agoFix bug in Google search that caused viking jump to wrong location when
Quy Tonthat [Mon, 20 Aug 2007 08:40:27 +0000 (08:40 +0000)]
Fix bug in Google search that caused viking jump to wrong location when
Google can not find the match.

Signed-off-by: Quy Tonthat <qtonthat@gmail.com>