This m4 module is necessary, at least to detect that libcurl is not available.
Sort of chicken/egg problem. Looking at gettextize, it seems that the
correct solution is to copy the m4 script of optional modules in a m4 directory
ensuring they will be found everywhere.
Quy Tonthat [Mon, 18 Jun 2007 14:24:40 +0000 (14:24 +0000)]
Added cookies to google requests.
Cookies are retrieved on the first request and stored in ~/.viking/cookies.txt.
The file is recreated (if needed) everytime viking starts.
Currently only google cookies are used. Others may be added if needed.
cookie, user-agent and referer are now added to the request header.
file.c:a_get_viking_dir() was added and should be used for others to query
(and creating if not existed) location of viking directory (~/.viking).
Quy Tonthat [Fri, 1 Jun 2007 11:22:55 +0000 (11:22 +0000)]
Bacported Evan's magic scissors from DEM branch.
To use it, select a TrackWaypoint layer, click on Magic Scissors tool,
then click 2 points on the map, viking will draw the route between the
two point using data from google maps.
Quy Tonthat [Thu, 31 May 2007 12:01:22 +0000 (12:01 +0000)]
Use google maps search string as comment for new immediately created waypoint.
After a successful search, before any operation that moves the map area,
a waypoint can be created for the resulted location by using "New Waypoint"
from the context menu of a TrackWaypoint layer. The "New Waypoint" dialog
will then use the search string as default "Comment".
Quy Tonthat [Sat, 26 May 2007 11:16:39 +0000 (11:16 +0000)]
Fix intermittent problem of map redraw.
The type mismatching (gint vs guint16) in the cache removing function can
cause coords truncated which leads to pixmaps not removed from the cache,
hence they are not updated on screen.
This only happens for coords with values larger than what a 16-bit number
can hold (> 65535). This is why the problem seems intermittent.
Quy Tonthat [Thu, 24 May 2007 08:26:40 +0000 (08:26 +0000)]
Small touches on the look.
- Ajust field width and alignment of treeview columns.
- Bring dimension constants to the top to make them easier to be found and
changed (Until we implement something more flexible for users to change
them)
Quy Tonthat [Thu, 24 May 2007 05:18:47 +0000 (05:18 +0000)]
Maps layer: Improve performance for map autodownload.
Autodownload is now only triggered when there are changes in zoom scale
or view location.
Map autodownload caused poor performance because it was triggered unnecessarily
by every update event. Most of these events are caused by interactions
that do not require map downloading. Autodownload itself is among the worst
sources of triggers. Autodownload threads generate update event for each
downloaded map tile. These events in turn create other threads
which generates more events and so on. Most of these threads will die out
quickly but the performance still suffers.
Quy Tonthat [Wed, 23 May 2007 14:03:34 +0000 (14:03 +0000)]
Google Directions now remembers previous query (from/to entries).
The from/to dialog will now display the previous query so that users can edit
or finetune the search.
(It was frustating mistyping a query just to get blank entriess back for
mistyping again, and again).
Note that this only works for one lifetime. Viking will forget the queries
once restarted.
Quy Tonthat [Wed, 23 May 2007 07:20:54 +0000 (07:20 +0000)]
Gpslayer: New menu items to remove all tracks and waypoints in GPS folders.
Data in Gps folders are likely short lived. Old data are often removed
before upload/download operation. The new menu items
(empty upload, empty download, empty all) are to make the task of
cleaning up the folders less painful (now that gps data are saved
and there is multiple selection is not yet implemented).
Quy Tonthat [Tue, 22 May 2007 01:50:19 +0000 (01:50 +0000)]
Disable temporarily prompt for saving on exit.
Except some changes made through the top window menu, "modified" status is not
recorded for the rest of the codes. This inconsistent behaviour is misleading
especially to new users. Until someone has time to go through the whole codes
and set "modified" flags accordingly, the prompt is temporarily disable.
ALl changes are wrapped with "ifdef VIKING_PROMPT_IF_MODIFIED" for easily
restoring the feature later.
Quy Tonthat [Sat, 19 May 2007 16:14:10 +0000 (16:14 +0000)]
Stop autodownload from running forever on map downloading errors.
The error status from low level of map download was not passed on.
Therefore update emits (to refrsh display) are generated even when
downloading got errors and no map tile needs to be redisplayed.
This caused serious problems when "Autodownload" is turned on.
The update emits also trigger autodownload to start new download thread
which in turn generates update emit for failed downloading of the
same tiles. And on and on.
This commit allow the download error status to be passed on and limit
update emits to successful download only.
Only google module was changed to use the new method. Other modules
will follow in the next commits.
Quy Tonthat [Thu, 17 May 2007 16:46:20 +0000 (16:46 +0000)]
Check for non-displayable data after downloading map.
Some servers, eg google, give an html file when a map tile does not exist.
Those files are not displayabled by viking. They should not be stored in
the disk cache.
Quy Tonthat [Thu, 17 May 2007 16:22:11 +0000 (16:22 +0000)]
Map tool: Left click can now refresh display of map tiles.
Currently, left click a blank tile will download map tile for that area.
With this changes, left click on a map tile will refresh display of the
tile by clearing its memory cache and reload its on-disk map file.
Quy Tonthat [Mon, 14 May 2007 14:17:34 +0000 (14:17 +0000)]
Fix bug that causes crash on viking exit.
In some situations, for examples, when there is no map file to download,
the weak_ref is never unref'ed. This will lead to an unexpected call to
the unref callback (weak_ref_cb()) when the map layer is destroyed
(viking is terminated or the layer is removed).
Evan Battaglia [Sun, 13 May 2007 18:10:25 +0000 (18:10 +0000)]
Fix "corrupted tile" problem -- was really just that incomplete tiles were being drawn & subsequently taken into memory cache. We should really add a "clear memory cache" menu item too.