]> git.itanic.dy.fi Git - maemo-mapper/log
maemo-mapper
14 years agoVersion 3.0+alpha8 fremantle/3.0+alpha8
Alberto Mardegan [Sat, 27 Feb 2010 11:26:31 +0000 (13:26 +0200)]
Version 3.0+alpha8

14 years agoMerge branch 'autoroute' into fremantle
Alberto Mardegan [Sat, 27 Feb 2010 11:05:25 +0000 (13:05 +0200)]
Merge branch 'autoroute' into fremantle

14 years agoRemove word "Maemo" from desktop link
Alberto Mardegan [Sat, 27 Feb 2010 11:04:32 +0000 (13:04 +0200)]
Remove word "Maemo" from desktop link

14 years agoNo need for different world sizes
Alberto Mardegan [Sat, 27 Feb 2010 08:56:32 +0000 (10:56 +0200)]
No need for different world sizes

14 years agoRemove zoom delta
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.

14 years agoIncrease cache size.
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.

14 years agoYandex coordinate system support.
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.

14 years agoChange printf() with DEBUG()
Alberto Mardegan [Sat, 27 Feb 2010 08:10:45 +0000 (10:10 +0200)]
Change printf() with DEBUG()

14 years agoRecalculate the route if we are late
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.

14 years agoMerge commit 'origin/shmuma' into fremantle
Alberto Mardegan [Fri, 26 Feb 2010 17:19:32 +0000 (19:19 +0200)]
Merge commit 'origin/shmuma' into fremantle

14 years agoRouter API to save plugin settings.
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.

14 years agoDon't crash when parsing invalid repositories
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.

14 years agoFix compilation
Alberto Mardegan [Fri, 26 Feb 2010 16:36:37 +0000 (18:36 +0200)]
Fix compilation

Should have tied to compile before committing...

14 years agoYandex router option to use traffic information.
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.

14 years agoRemove usage of old DEBUG macros
Alberto Mardegan [Thu, 25 Feb 2010 19:43:33 +0000 (21:43 +0200)]
Remove usage of old DEBUG macros

14 years agoTurn printf into DEBUG
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

14 years agoRemove all traces about leaving functions
Alberto Mardegan [Wed, 24 Feb 2010 20:19:55 +0000 (22:19 +0200)]
Remove all traces about leaving functions

14 years agoChange g_debug() into DEBUG()
Alberto Mardegan [Wed, 24 Feb 2010 20:10:26 +0000 (22:10 +0200)]
Change g_debug() into DEBUG()

14 years agoCreate debug functions and build options
Alberto Mardegan [Wed, 24 Feb 2010 20:06:36 +0000 (22:06 +0200)]
Create debug functions and build options

14 years agoFix downloading maps by route
Alberto Mardegan [Wed, 24 Feb 2010 17:43:48 +0000 (19:43 +0200)]
Fix downloading maps by route

14 years agoFix downloading of maps by area
Alberto Mardegan [Wed, 24 Feb 2010 17:34:35 +0000 (19:34 +0200)]
Fix downloading of maps by area

14 years agoMerge branch 'more_reittiopas' into fremantle
Alberto Mardegan [Wed, 24 Feb 2010 16:42:01 +0000 (18:42 +0200)]
Merge branch 'more_reittiopas' into fremantle

14 years agoDon't show any dialog if we don't have a parent window.
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.

14 years agoAllow router engines to show UI elements
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.

14 years agoImplement selection of routes
Alberto Mardegan [Sun, 21 Feb 2010 17:41:13 +0000 (19:41 +0200)]
Implement selection of routes

14 years agoAdd error code MAP_ERROR_USER_CANCELED
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.

14 years agoAdd icons for reittiopas.fi
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 :-)

14 years agoMerge branch 'shmuma' into fremantle
Alberto Mardegan [Wed, 24 Feb 2010 16:09:22 +0000 (18:09 +0200)]
Merge branch 'shmuma' into fremantle

14 years agoSimplify Repository's layers dialog.
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.

14 years agoAdd cast to suppress a compilation warning.
Alberto Mardegan [Mon, 22 Feb 2010 19:38:24 +0000 (21:38 +0200)]
Add cast to suppress a compilation warning.

14 years agoFix memory leak on repository XML parse.
Max Lapan [Wed, 24 Feb 2010 13:00:53 +0000 (16:00 +0300)]
Fix memory leak on repository XML parse.

14 years agoMove visible field out of TileSource.
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.

14 years agoAllow parsing up to 5 routes
Alberto Mardegan [Sat, 20 Feb 2010 16:47:51 +0000 (18:47 +0200)]
Allow parsing up to 5 routes

14 years agoReittiopas: add optimize, margin, walkspeed options
Alberto Mardegan [Sat, 20 Feb 2010 16:46:08 +0000 (18:46 +0200)]
Reittiopas: add optimize, margin, walkspeed options

14 years agoAdd cast to suppress a compilation warning.
Alberto Mardegan [Mon, 22 Feb 2010 19:38:24 +0000 (21:38 +0200)]
Add cast to suppress a compilation warning.

14 years agoUse GtkListStore interface to clear touch selector for repository layers.
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.

14 years agoUse HILDON_UI_MODE_NORMAL in tile source list.
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.

14 years agoDon't hide delete button for active repo, just disable it.
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.

14 years agoIn repository touch selector use HILDON_UI_MODE_NORMAL.
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).

14 years agoChange tile sources list dialog behaviour.
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.

14 years agoDon't show delete button for new repository.
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.

14 years agoChange Repository list dialog behaviour.
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.

14 years agoDon't forget to remove the weak pointer
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!

14 years agoRemove obsolete dependencies
Alberto Mardegan [Sat, 20 Feb 2010 11:31:42 +0000 (13:31 +0200)]
Remove obsolete dependencies

14 years agoImplement selection of transport types
Alberto Mardegan [Thu, 18 Feb 2010 21:46:01 +0000 (23:46 +0200)]
Implement selection of transport types

14 years agoReittiopas: declare support for geocode method
Alberto Mardegan [Thu, 18 Feb 2010 16:45:11 +0000 (18:45 +0200)]
Reittiopas: declare support for geocode method

14 years agoRouter: add geocode() method to interface
Alberto Mardegan [Thu, 18 Feb 2010 16:44:35 +0000 (18:44 +0200)]
Router: add geocode() method to interface

14 years agoInitial implementation of Reittiopas.fi router
Alberto Mardegan [Mon, 15 Feb 2010 14:40:51 +0000 (16:40 +0200)]
Initial implementation of Reittiopas.fi router

14 years agoMove plugin initialization to Controller
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.

14 years agoAlways draw waypoints
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.

14 years agoReimplement autoroute
Alberto Mardegan [Thu, 11 Feb 2010 14:24:05 +0000 (16:24 +0200)]
Reimplement autoroute

14 years agoRemove traces of the old routing system
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.

14 years agoAdd the H_() macro to get translations from Hildon libs
Alberto Mardegan [Thu, 11 Feb 2010 10:33:20 +0000 (12:33 +0200)]
Add the H_() macro to get translations from Hildon libs

14 years agoImplement the "Go to address" feature by using MapRouter
Alberto Mardegan [Thu, 11 Feb 2010 10:32:06 +0000 (12:32 +0200)]
Implement the "Go to address" feature by using MapRouter

14 years agoRewrite the routing dialog to make use of 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.

14 years agoAdd Google and Yandex routing plugins
Alberto Mardegan [Thu, 11 Feb 2010 10:27:04 +0000 (12:27 +0200)]
Add Google and Yandex routing plugins

14 years agoSettings: save/load default router setting
Alberto Mardegan [Thu, 11 Feb 2010 10:25:09 +0000 (12:25 +0200)]
Settings: save/load default router setting

14 years agoAdd map_controller_{get,set}_default_router()
Alberto Mardegan [Thu, 11 Feb 2010 10:22:49 +0000 (12:22 +0200)]
Add map_controller_{get,set}_default_router()

14 years agoAdd MapRouter interface
Alberto Mardegan [Sun, 7 Feb 2010 12:38:45 +0000 (14:38 +0200)]
Add MapRouter interface

14 years agoAdd some debug info, remove useless one
Alberto Mardegan [Wed, 10 Feb 2010 16:27:35 +0000 (18:27 +0200)]
Add some debug info, remove useless one

14 years agoAdd a class for handling errors as GError
Alberto Mardegan [Wed, 10 Feb 2010 16:26:01 +0000 (18:26 +0200)]
Add a class for handling errors as GError

14 years agoAdd support for plugins
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.

14 years agoFactor out path merging code into map_path_merge()
Alberto Mardegan [Tue, 9 Feb 2010 19:43:37 +0000 (21:43 +0200)]
Factor out path merging code into map_path_merge()

14 years agoProhibit to delete active tile source.
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.

14 years agoFix compiler warnings.
Max Lapan [Tue, 16 Feb 2010 11:40:40 +0000 (14:40 +0300)]
Fix compiler warnings.

14 years agoEliminate check for return value of g_slice_new
Max Lapan [Tue, 16 Feb 2010 11:38:50 +0000 (14:38 +0300)]
Eliminate check for return value of g_slice_new

14 years agoIndent code to max 80 columns.
Max Lapan [Tue, 16 Feb 2010 11:37:17 +0000 (14:37 +0300)]
Indent code to max 80 columns.

14 years agoDisable or enable timeout routine when device changes it's activity state.
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.

14 years agoAdditional check for active repository deletion.
Max Lapan [Tue, 16 Feb 2010 05:40:38 +0000 (08:40 +0300)]
Additional check for active repository deletion.

14 years agoUse popup_error from utils.c instead on hildon_note_new_information.
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.

14 years agoOSM ID change
Max Lapan [Mon, 15 Feb 2010 19:31:19 +0000 (22:31 +0300)]
OSM ID change

14 years agoFix usage of MUT's source pointer before it initialized.
Max Lapan [Sun, 14 Feb 2010 16:41:39 +0000 (19:41 +0300)]
Fix usage of MUT's source pointer before it initialized.

14 years agoDerive TileSource cache directory from TS's ID.
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.

14 years agoRoutine which refreshes map with all displayed objects.
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.

14 years agoFix bug with tile sources list.
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.

14 years agoUI for TileSource format editing.
Max Lapan [Thu, 11 Feb 2010 19:05:45 +0000 (22:05 +0300)]
UI for TileSource format editing.

14 years agoFormat of tiles in TileSource structure.
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.

14 years agoAdd trainling newlines in debug messages.
Max Lapan [Thu, 11 Feb 2010 15:31:20 +0000 (18:31 +0300)]
Add trainling newlines in debug messages.

14 years agoMerge branch 'new_repos' into merge
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.

14 years agoSeparate handling of Repository and TileSource structures into two source files.
Max Lapan [Wed, 10 Feb 2010 14:38:07 +0000 (17:38 +0300)]
Separate handling of Repository and TileSource structures into two source files.

14 years agoTrack device lock status to perform layers refresh only when device is active.
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.

14 years agoAnother obsoleted variable in OSSO HW status callback
Max Lapan [Wed, 10 Feb 2010 13:31:25 +0000 (16:31 +0300)]
Another obsoleted variable in OSSO HW status callback

14 years agoObsolete structure in settings.c
Max Lapan [Wed, 10 Feb 2010 13:24:35 +0000 (16:24 +0300)]
Obsolete structure in settings.c

14 years agoAlphabetical order of include files.
Max Lapan [Tue, 9 Feb 2010 18:48:24 +0000 (21:48 +0300)]
Alphabetical order of include files.

14 years agoUse implicit comparision with zero in string compare operations.
Max Lapan [Tue, 9 Feb 2010 18:34:41 +0000 (21:34 +0300)]
Use implicit comparision with zero in string compare operations.

14 years agoSync message when repositories are the same
Max Lapan [Tue, 9 Feb 2010 18:30:02 +0000 (21:30 +0300)]
Sync message when repositories are the same

14 years agoUse configurations branch and vcs.maemo.org for sync URLs.
Max Lapan [Tue, 9 Feb 2010 18:27:37 +0000 (21:27 +0300)]
Use configurations branch and vcs.maemo.org for sync URLs.

14 years agoDo not store configuration files in code branch
Max Lapan [Tue, 9 Feb 2010 18:23:46 +0000 (21:23 +0300)]
Do not store configuration files in code branch

14 years agoRename repo.[hc] to repository.[hc]
Max Lapan [Tue, 9 Feb 2010 18:15:17 +0000 (21:15 +0300)]
Rename repo.[hc] to repository.[hc]

14 years agoDo not allow to delete active repository.
Max Lapan [Tue, 9 Feb 2010 18:07:47 +0000 (21:07 +0300)]
Do not allow to delete active repository.

14 years agoUse GtkTreeModel to manipulate items in tile sources dialog.
Max Lapan [Tue, 9 Feb 2010 18:04:05 +0000 (21:04 +0300)]
Use GtkTreeModel to manipulate items in tile sources dialog.

14 years agoUse GtkTreeModel to manipulate with hildon_touch_selector in repositories 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.

14 years agoPrevent of adding repositories without a primary layer.
Max Lapan [Mon, 8 Feb 2010 12:51:45 +0000 (15:51 +0300)]
Prevent of adding repositories without a primary layer.

14 years agoDon't use g_idle_add to show banner.
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.

14 years agoFix bug with incorrect priority tree compare function.
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.

14 years agoAdd debian/optify file
Alberto Mardegan [Sat, 6 Feb 2010 09:36:52 +0000 (11:36 +0200)]
Add debian/optify file

14 years agoRename application to Mapper
Alberto Mardegan [Sat, 6 Feb 2010 09:27:07 +0000 (11:27 +0200)]
Rename application to Mapper

14 years agoAdd bug tracker info to debian package
Alberto Mardegan [Sat, 6 Feb 2010 08:51:57 +0000 (10:51 +0200)]
Add bug tracker info to debian package

14 years agoFix drawing of paths
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
:-)

14 years agoUnify debug messages in mapper.
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.