]>
git.itanic.dy.fi Git - maemo-mapper/log
Alberto Mardegan [Sat, 27 Feb 2010 11:26:31 +0000 (13:26 +0200)]
Version 3.0+alpha8
Alberto Mardegan [Sat, 27 Feb 2010 11:05:25 +0000 (13:05 +0200)]
Merge branch 'autoroute' into fremantle
Alberto Mardegan [Sat, 27 Feb 2010 11:04:32 +0000 (13:04 +0200)]
Remove word "Maemo" from desktop link
Alberto Mardegan [Sat, 27 Feb 2010 08:56:32 +0000 (10:56 +0200)]
No need for different world sizes
Alberto Mardegan [Sat, 27 Feb 2010 08:44:14 +0000 (10:44 +0200)]
Remove zoom delta
With this change, there's no more need for adjusting the zoom level when
switching to different map types.
Max Lapan [Sun, 14 Feb 2010 15:10:24 +0000 (18:10 +0300)]
Increase cache size.
When layers are on, cache misses cause some tiles not displayed correctly.
Max Lapan [Sun, 14 Feb 2010 12:49:04 +0000 (15:49 +0300)]
Yandex coordinate system support.
This patch adds support of Yandex.Maps coordinate system to mapper. This CS is incompatible with
Google, as it supposes Earth has a ellipsoid shape (Google CS is sperical).
To implement this, we add two routines to perform latlon <-> units transformation to TileSourceType
structure and call apropopriate routine from latlon2unit/unit2latlon macroses.
Alberto Mardegan [Sat, 27 Feb 2010 08:10:45 +0000 (10:10 +0200)]
Change printf() with DEBUG()
Alberto Mardegan [Sat, 27 Feb 2010 07:37:48 +0000 (09:37 +0200)]
Recalculate the route if we are late
Some routers (reittiopas) provide time information along with the route nodes;
if we are late to the next point, we must recalculate the route.
Alberto Mardegan [Fri, 26 Feb 2010 17:19:32 +0000 (19:19 +0200)]
Merge commit 'origin/shmuma' into fremantle
Max Lapan [Thu, 25 Feb 2010 12:37:59 +0000 (15:37 +0300)]
Router API to save plugin settings.
Two routines, one to load plugin settings, one to save. They are called when we
load and save main applications settings, so, to be properly initialized, plugin
must be registered on controller creation.
Alberto Mardegan [Fri, 26 Feb 2010 16:59:11 +0000 (18:59 +0200)]
Don't crash when parsing invalid repositories
Do not add to the TileSource/Repository list invalid elements.
Alberto Mardegan [Fri, 26 Feb 2010 16:36:37 +0000 (18:36 +0200)]
Fix compilation
Should have tied to compile before committing...
Max Lapan [Wed, 24 Feb 2010 19:20:31 +0000 (22:20 +0300)]
Yandex router option to use traffic information.
If it is on, Yandex.router proxy will use traffic information to make route.
Alberto Mardegan [Thu, 25 Feb 2010 19:43:33 +0000 (21:43 +0200)]
Remove usage of old DEBUG macros
Alberto Mardegan [Thu, 25 Feb 2010 19:41:21 +0000 (21:41 +0200)]
Turn printf into DEBUG
And remove many which are probably not useful
Alberto Mardegan [Wed, 24 Feb 2010 20:19:55 +0000 (22:19 +0200)]
Remove all traces about leaving functions
Alberto Mardegan [Wed, 24 Feb 2010 20:10:26 +0000 (22:10 +0200)]
Change g_debug() into DEBUG()
Alberto Mardegan [Wed, 24 Feb 2010 20:06:36 +0000 (22:06 +0200)]
Create debug functions and build options
Alberto Mardegan [Wed, 24 Feb 2010 17:43:48 +0000 (19:43 +0200)]
Fix downloading maps by route
Alberto Mardegan [Wed, 24 Feb 2010 17:34:35 +0000 (19:34 +0200)]
Fix downloading of maps by area
Alberto Mardegan [Wed, 24 Feb 2010 16:42:01 +0000 (18:42 +0200)]
Merge branch 'more_reittiopas' into fremantle
Alberto Mardegan [Mon, 22 Feb 2010 19:36:59 +0000 (21:36 +0200)]
Don't show any dialog if we don't have a parent window.
Alberto Mardegan [Mon, 22 Feb 2010 19:35:34 +0000 (21:35 +0200)]
Allow router engines to show UI elements
Add a pointer to the parent GtkWindow, to be used in case we want to allow the
router to show some dialogs of its own.
Alberto Mardegan [Sun, 21 Feb 2010 17:41:13 +0000 (19:41 +0200)]
Implement selection of routes
Alberto Mardegan [Sun, 21 Feb 2010 17:37:21 +0000 (19:37 +0200)]
Add error code MAP_ERROR_USER_CANCELED
Handle it by suppressing the error message.
Alberto Mardegan [Sun, 21 Feb 2010 17:33:58 +0000 (19:33 +0200)]
Add icons for reittiopas.fi
Contributed by Salvatore Iovene, with many thanks from me :-)
Alberto Mardegan [Wed, 24 Feb 2010 16:09:22 +0000 (18:09 +0200)]
Merge branch 'shmuma' into fremantle
Max Lapan [Wed, 24 Feb 2010 14:10:08 +0000 (17:10 +0300)]
Simplify Repository's layers dialog.
Replace list of layers added to repository with list of all existing layers with
checkboxes.
Alberto Mardegan [Mon, 22 Feb 2010 19:38:24 +0000 (21:38 +0200)]
Add cast to suppress a compilation warning.
Max Lapan [Wed, 24 Feb 2010 13:00:53 +0000 (16:00 +0300)]
Fix memory leak on repository XML parse.
Max Lapan [Wed, 24 Feb 2010 12:54:15 +0000 (15:54 +0300)]
Move visible field out of TileSource.
It wasn't a smart ide to put visible attribute inside TileSource structure,
because we can easily have one TileSource added to several repsitories which can
have different visiblity state.
This patch fixes that, by moving visible from TileSource to new structure which
represents link between TileSource and Repository.
Alberto Mardegan [Sat, 20 Feb 2010 16:47:51 +0000 (18:47 +0200)]
Allow parsing up to 5 routes
Alberto Mardegan [Sat, 20 Feb 2010 16:46:08 +0000 (18:46 +0200)]
Reittiopas: add optimize, margin, walkspeed options
Alberto Mardegan [Mon, 22 Feb 2010 19:38:24 +0000 (21:38 +0200)]
Add cast to suppress a compilation warning.
Max Lapan [Sun, 21 Feb 2010 11:54:25 +0000 (14:54 +0300)]
Use GtkListStore interface to clear touch selector for repository layers.
It is much better than destroy touch selector widget.
Max Lapan [Sat, 20 Feb 2010 13:51:02 +0000 (16:51 +0300)]
Use HILDON_UI_MODE_NORMAL in tile source list.
This allows us simplify code and get rid of useless selection in tile source list.
Max Lapan [Sat, 20 Feb 2010 13:40:42 +0000 (16:40 +0300)]
Don't hide delete button for active repo, just disable it.
IMHO, it is more consistent for user when button is always in repository properties dialog, but
sometimes it cannot be pressed.
Max Lapan [Sat, 20 Feb 2010 13:37:03 +0000 (16:37 +0300)]
In repository touch selector use HILDON_UI_MODE_NORMAL.
This allows as to eliminate context structure (there are no selected item anymore).
Max Lapan [Fri, 19 Feb 2010 16:58:49 +0000 (19:58 +0300)]
Change tile sources list dialog behaviour.
Use the same logic as for repository list. Remove Edit and Delete buttons, edit
on item click, and remove via button in TileSource edit dialog.
Max Lapan [Thu, 18 Feb 2010 12:52:25 +0000 (15:52 +0300)]
Don't show delete button for new repository.
If we create new repository, don't show delete button (because it's nothing to
delete so far). We also move repository_edit_dialog from exported routines.
Max Lapan [Thu, 18 Feb 2010 12:29:23 +0000 (15:29 +0300)]
Change Repository list dialog behaviour.
Remove 'Edit' and 'Delete' buttons from repository list dialog. Open repository
edit dialog when repository clicked in selector. Delete button moved to
repository properties dialog.
Alberto Mardegan [Sat, 20 Feb 2010 11:31:54 +0000 (13:31 +0200)]
Don't forget to remove the weak pointer
Without this, some random memory location was being overwritten!
Alberto Mardegan [Sat, 20 Feb 2010 11:31:42 +0000 (13:31 +0200)]
Remove obsolete dependencies
Alberto Mardegan [Thu, 18 Feb 2010 21:46:01 +0000 (23:46 +0200)]
Implement selection of transport types
Alberto Mardegan [Thu, 18 Feb 2010 16:45:11 +0000 (18:45 +0200)]
Reittiopas: declare support for geocode method
Alberto Mardegan [Thu, 18 Feb 2010 16:44:35 +0000 (18:44 +0200)]
Router: add geocode() method to interface
Alberto Mardegan [Mon, 15 Feb 2010 14:40:51 +0000 (16:40 +0200)]
Initial implementation of Reittiopas.fi router
Alberto Mardegan [Mon, 15 Feb 2010 14:37:10 +0000 (16:37 +0200)]
Move plugin initialization to Controller
The plugins must be loaded before the settings.
Alberto Mardegan [Mon, 15 Feb 2010 14:34:03 +0000 (16:34 +0200)]
Always draw waypoints
Waypoints need to be visible even if a point very close to them is already visible.
Alberto Mardegan [Thu, 11 Feb 2010 14:24:05 +0000 (16:24 +0200)]
Reimplement autoroute
Alberto Mardegan [Thu, 11 Feb 2010 10:36:53 +0000 (12:36 +0200)]
Remove traces of the old routing system
Also, disable the locate_address() function which no longer works. It is now
used only in download/browse POIs, which will need to be fixed to use the new
routing API.
Alberto Mardegan [Thu, 11 Feb 2010 10:33:20 +0000 (12:33 +0200)]
Add the H_() macro to get translations from Hildon libs
Alberto Mardegan [Thu, 11 Feb 2010 10:32:06 +0000 (12:32 +0200)]
Implement the "Go to address" feature by using MapRouter
Alberto Mardegan [Thu, 11 Feb 2010 10:29:52 +0000 (12:29 +0200)]
Rewrite the routing dialog to make use of MapRouter
The "Avoid highways" button is removed, because it's now an option in the
Google router plugin.
This patch breaks the automatic route recalculation. Will be fixed in a later
commit.
Alberto Mardegan [Thu, 11 Feb 2010 10:27:04 +0000 (12:27 +0200)]
Add Google and Yandex routing plugins
Alberto Mardegan [Thu, 11 Feb 2010 10:25:09 +0000 (12:25 +0200)]
Settings: save/load default router setting
Alberto Mardegan [Thu, 11 Feb 2010 10:22:49 +0000 (12:22 +0200)]
Add map_controller_{get,set}_default_router()
Alberto Mardegan [Sun, 7 Feb 2010 12:38:45 +0000 (14:38 +0200)]
Add MapRouter interface
Alberto Mardegan [Wed, 10 Feb 2010 16:27:35 +0000 (18:27 +0200)]
Add some debug info, remove useless one
Alberto Mardegan [Wed, 10 Feb 2010 16:26:01 +0000 (18:26 +0200)]
Add a class for handling errors as GError
Alberto Mardegan [Wed, 10 Feb 2010 16:23:39 +0000 (18:23 +0200)]
Add support for plugins
Plugins still need to be compiled in at the moment, but at least we get some
conceptual separation.
Alberto Mardegan [Tue, 9 Feb 2010 19:43:37 +0000 (21:43 +0200)]
Factor out path merging code into map_path_merge()
Max Lapan [Tue, 16 Feb 2010 11:51:59 +0000 (14:51 +0300)]
Prohibit to delete active tile source.
When we are going to delete tile source, check that it belongs to active
repository.
Max Lapan [Tue, 16 Feb 2010 11:40:40 +0000 (14:40 +0300)]
Fix compiler warnings.
Max Lapan [Tue, 16 Feb 2010 11:38:50 +0000 (14:38 +0300)]
Eliminate check for return value of g_slice_new
Max Lapan [Tue, 16 Feb 2010 11:37:17 +0000 (14:37 +0300)]
Indent code to max 80 columns.
Max Lapan [Tue, 16 Feb 2010 09:22:12 +0000 (12:22 +0300)]
Disable or enable timeout routine when device changes it's activity state.
Max Lapan [Tue, 16 Feb 2010 05:40:38 +0000 (08:40 +0300)]
Additional check for active repository deletion.
Max Lapan [Tue, 16 Feb 2010 05:40:09 +0000 (08:40 +0300)]
Use popup_error from utils.c instead on hildon_note_new_information.
Max Lapan [Mon, 15 Feb 2010 19:31:19 +0000 (22:31 +0300)]
OSM ID change
Max Lapan [Sun, 14 Feb 2010 16:41:39 +0000 (19:41 +0300)]
Fix usage of MUT's source pointer before it initialized.
Max Lapan [Sun, 14 Feb 2010 16:00:31 +0000 (19:00 +0300)]
Derive TileSource cache directory from TS's ID.
If cache directory not found in XML file, use TileSource ID as directory name.
Max Lapan [Sun, 14 Feb 2010 15:53:50 +0000 (18:53 +0300)]
Routine which refreshes map with all displayed objects.
When we toggle layer's visibility, we must redraw all map's object and reload tiles into it. It's
quite expensive operation, but it is rare and initiated by user, so, it's ok.
Max Lapan [Fri, 12 Feb 2010 14:10:17 +0000 (17:10 +0300)]
Fix bug with tile sources list.
When we fill touch selector with tile sources, we specify one tile source as active. Previous
version contains bug when index incremented not only for filtered items, but for all items, so, we
can get impossible active item index.
Max Lapan [Thu, 11 Feb 2010 19:05:45 +0000 (22:05 +0300)]
UI for TileSource format editing.
Max Lapan [Thu, 11 Feb 2010 18:47:39 +0000 (21:47 +0300)]
Format of tiles in TileSource structure.
To save tiles in cache with correct extensions, new parameter of TileSource have added. It specify
format of tiles: PNG or JPG.
Max Lapan [Thu, 11 Feb 2010 15:31:20 +0000 (18:31 +0300)]
Add trainling newlines in debug messages.
Max Lapan [Wed, 10 Feb 2010 17:40:24 +0000 (20:40 +0300)]
Merge branch 'new_repos' into merge
Conflicts:
src/cmenu.c
src/controller.c
src/controller.h
src/main.c
src/maps.c
src/menu.c
src/screen.c
src/screen.h
src/settings.c
src/types.h
Moved RepoType structure and it's map into tile_source.c, and merged it with existing map.
Max Lapan [Wed, 10 Feb 2010 14:38:07 +0000 (17:38 +0300)]
Separate handling of Repository and TileSource structures into two source files.
Max Lapan [Wed, 10 Feb 2010 13:42:54 +0000 (16:42 +0300)]
Track device lock status to perform layers refresh only when device is active.
Max Lapan [Wed, 10 Feb 2010 13:31:25 +0000 (16:31 +0300)]
Another obsoleted variable in OSSO HW status callback
Max Lapan [Wed, 10 Feb 2010 13:24:35 +0000 (16:24 +0300)]
Obsolete structure in settings.c
Max Lapan [Tue, 9 Feb 2010 18:48:24 +0000 (21:48 +0300)]
Alphabetical order of include files.
Max Lapan [Tue, 9 Feb 2010 18:34:41 +0000 (21:34 +0300)]
Use implicit comparision with zero in string compare operations.
Max Lapan [Tue, 9 Feb 2010 18:30:02 +0000 (21:30 +0300)]
Sync message when repositories are the same
Max Lapan [Tue, 9 Feb 2010 18:27:37 +0000 (21:27 +0300)]
Use configurations branch and vcs.maemo.org for sync URLs.
Max Lapan [Tue, 9 Feb 2010 18:23:46 +0000 (21:23 +0300)]
Do not store configuration files in code branch
Max Lapan [Tue, 9 Feb 2010 18:15:17 +0000 (21:15 +0300)]
Rename repo.[hc] to repository.[hc]
Max Lapan [Tue, 9 Feb 2010 18:07:47 +0000 (21:07 +0300)]
Do not allow to delete active repository.
Max Lapan [Tue, 9 Feb 2010 18:04:05 +0000 (21:04 +0300)]
Use GtkTreeModel to manipulate items in tile sources dialog.
Max Lapan [Mon, 8 Feb 2010 12:53:08 +0000 (15:53 +0300)]
Use GtkTreeModel to manipulate with hildon_touch_selector in repositories dialog.
Max Lapan [Mon, 8 Feb 2010 12:51:45 +0000 (15:51 +0300)]
Prevent of adding repositories without a primary layer.
Max Lapan [Sun, 7 Feb 2010 20:30:31 +0000 (23:30 +0300)]
Don't use g_idle_add to show banner.
This small patch fixes a long-standing bug with 'Processing maps' banner spinning forever in some
cases. This is caused by a race condition between MUT enqueue code and idle routine enqueued, when
we schedule call to initiate_update_banner_idle several times. Then, if connection is quite fast, we
can finish download (and destroy banner) BEFORE all idle routines called. In that case, banner will
be created again and spin forever.
Max Lapan [Sun, 7 Feb 2010 20:28:44 +0000 (23:28 +0300)]
Fix bug with incorrect priority tree compare function.
This bug causes 'Processing maps' banner spin forever when we download both layer and map tile.
Alberto Mardegan [Sat, 6 Feb 2010 09:36:52 +0000 (11:36 +0200)]
Add debian/optify file
Alberto Mardegan [Sat, 6 Feb 2010 09:27:07 +0000 (11:27 +0200)]
Rename application to Mapper
Alberto Mardegan [Sat, 6 Feb 2010 08:51:57 +0000 (10:51 +0200)]
Add bug tracker info to debian package
Alberto Mardegan [Fri, 5 Feb 2010 21:15:46 +0000 (23:15 +0200)]
Fix drawing of paths
Waypoints were not drawn correctly, and paths themselves could disappear easily
:-)
Max Lapan [Fri, 5 Feb 2010 16:16:41 +0000 (19:16 +0300)]
Unify debug messages in mapper.
There was lots of g_debug which makes a lot of noise. Patch replaces them with printf/vprintf pair
which turned off when DEBUG is undefined.