libchamplain:potyl-perl.git
8 years agoReset the update prepared statement before each execution master
Emmanuel Rodriguez [Sun, 21 Feb 2010 17:30:43 +0000 (18:30 +0100)]
Reset the update prepared statement before each execution

8 years agoMerge branch 'libchamplain-0-4'
Pierre-Luc Beaudoin [Tue, 16 Feb 2010 21:34:55 +0000 (16:34 -0500)]
Merge branch 'libchamplain-0-4'

8 years agoFix cache initialization
Jiří Techet [Sun, 14 Feb 2010 23:59:57 +0000 (00:59 +0100)]
Fix cache initialization

init_cache() should be called only when all properties are set (that is
inside the _constructed() method)

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoFix asynchronous tile loading
Jiří Techet [Sun, 14 Feb 2010 12:21:46 +0000 (13:21 +0100)]
Fix asynchronous tile loading

When loading textures asynchronously, we have to check whether the
tile was loaded successfully in the callback.

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoMake it possible to manually chain chains.
Jiří Techet [Mon, 1 Feb 2010 23:08:47 +0000 (00:08 +0100)]
Make it possible to manually chain chains.

Chains should behave as other map sources so it should be possible
to create chains of chains. For now, chains of chains have to be
created manually - i.e. the outer chain cannot be ChamplainMapSourceChain
but has to be created by _set_next_source(). The reason is that
a chain has to know about each of its elements whether it is a map
source or a cache (if this feature is desirable, we can add a virtual
method of map sources that determines whether it behaves as a map source
or cache so even if the map source is a chain, it could have this
information attached).

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoUse default cache path when not specified.
Jiří Techet [Sat, 30 Jan 2010 20:40:50 +0000 (21:40 +0100)]
Use default cache path when not specified.

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoFix view destruction upon shutdown.
Jiří Techet [Sat, 30 Jan 2010 19:42:43 +0000 (20:42 +0100)]
Fix view destruction upon shutdown.

View (and indirectly map sources) were not destroyed because
gtk_champlain_embed
* didn't chain dispose

Also the view has to be destroyed manually when inserted into stage
obtained from clutter_stage_get_default() - it appears that it isn't
destroyed upon application shutdown.

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoUse cached source when switching map sources.
Jiří Techet [Thu, 28 Jan 2010 23:21:26 +0000 (00:21 +0100)]
Use cached source when switching map sources.

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoview: Remove the need to explicitly set the size on the actor
Rob Bradford [Tue, 16 Feb 2010 16:46:05 +0000 (16:46 +0000)]
view: Remove the need to explicitly set the size on the actor

Firstly we need to report a size for the map using the ClutterActor
_get_preferred_width/_height virtual functions. For both the minimum and
natural dimensions we use the tile size which is the smallest sensible size
for the map.

We also need to save the dimensions of the allocation box for the actor and
save that into the private structure. We then used that in an idle to update
the content to show.

8 years agobuild: Add memphis-1.0 to .pc file requirements
Rob Bradford [Tue, 16 Feb 2010 16:01:20 +0000 (16:01 +0000)]
build: Add memphis-1.0 to .pc file requirements

8 years agobuild: Remove spurious entry from libchamplain_include_HEADERS
Rob Bradford [Tue, 16 Feb 2010 16:00:19 +0000 (16:00 +0000)]
build: Remove spurious entry from libchamplain_include_HEADERS

This had the side effect of not installing all the headers.

8 years agoProperly get rid of previous image
Pierre-Luc Beaudoin [Sat, 6 Feb 2010 06:18:53 +0000 (01:18 -0500)]
Properly get rid of previous image

When changing the image using set_image, the old image would still
be visible in behind the new image.

8 years agoUnref the info only if it was valid
Pierre-Luc Beaudoin [Tue, 2 Feb 2010 22:19:29 +0000 (17:19 -0500)]
Unref the info only if it was valid

8 years agoRemove the code from champlain_file_cache_new
Pierre-Luc Beaudoin [Tue, 2 Feb 2010 22:05:41 +0000 (17:05 -0500)]
Remove the code from champlain_file_cache_new

This is bindings unfriendly.

8 years agoMerge branch 'libchamplain-0-4'
Pierre-Luc Beaudoin [Tue, 2 Feb 2010 21:40:56 +0000 (16:40 -0500)]
Merge branch 'libchamplain-0-4'

Conflicts:
NEWS
champlain/champlain-cache.c
champlain/champlain-map-source-factory.h
champlain/champlain-network-map-source.c
champlain/champlain-view.c
configure.ac

8 years agoDocumentation of the new loading chain.
Jiří Techet [Mon, 25 Jan 2010 23:06:54 +0000 (00:06 +0100)]
Documentation of the new loading chain.

Added documentation comments for the new classes and functions. Some
minor function renames and moving around.

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agodo not emit a notify for lat and lon if the change is too small
Pierre-Luc Beaudoin [Fri, 29 Jan 2010 01:09:35 +0000 (20:09 -0500)]
do not emit a notify for lat and lon if the change is too small

8 years agoAdjust path name on Maemo to match Maep
Pierre-Luc Beaudoin [Fri, 29 Jan 2010 01:08:20 +0000 (20:08 -0500)]
Adjust path name on Maemo to match Maep

8 years agoUpdate NEWS and bump libtool version
Pierre-Luc Beaudoin [Thu, 28 Jan 2010 21:02:56 +0000 (16:02 -0500)]
Update NEWS and bump libtool version

8 years agoLoad tiles near the middle first
Jason Woofenden [Thu, 28 Jan 2010 13:58:41 +0000 (08:58 -0500)]
Load tiles near the middle first

It starts just up/left of center, and loads tiles in concentric squares. Going
clockwise (right, down, left, up).

8 years agoAlso change path of cache db
Pierre-Luc Beaudoin [Mon, 25 Jan 2010 20:15:55 +0000 (15:15 -0500)]
Also change path of cache db

8 years agoUpdate NEWS and bump to 0.5.1
Pierre-Luc Beaudoin [Mon, 25 Jan 2010 16:36:22 +0000 (11:36 -0500)]
Update NEWS and bump to 0.5.1

8 years agoDisable Python and Introspection
Pierre-Luc Beaudoin [Mon, 25 Jan 2010 16:29:13 +0000 (11:29 -0500)]
Disable Python and Introspection

Until libmemphis has bindings

8 years agoShip header files in tarball
Pierre-Luc Beaudoin [Mon, 25 Jan 2010 16:28:49 +0000 (11:28 -0500)]
Ship header files in tarball

8 years agoRemove generated headers from build
Götz Waschk [Mon, 25 Jan 2010 14:40:14 +0000 (09:40 -0500)]
Remove generated headers from build

8 years agoUpdate NEWS
Pierre-Luc Beaudoin [Mon, 25 Jan 2010 03:07:46 +0000 (22:07 -0500)]
Update NEWS

8 years agoAdd Jiří Techet to AUTHORS
Pierre-Luc Beaudoin [Mon, 25 Jan 2010 02:46:36 +0000 (21:46 -0500)]
Add Jiří Techet to AUTHORS

8 years agoFix API documentation generation
Pierre-Luc Beaudoin [Sun, 24 Jan 2010 21:21:01 +0000 (16:21 -0500)]
Fix API documentation generation

Also fixes make dist

8 years agoCorrect coding style
Jiří Techet [Thu, 21 Jan 2010 23:57:00 +0000 (00:57 +0100)]
Correct coding style

Correct coding style of mine, in fact, quite automatically:

sed -i 's/\([a-z0-9]\)(/\1 (/g' *.h *.c

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoSimplify use of cache for ordinary applications
Jiří Techet [Wed, 20 Jan 2010 23:13:24 +0000 (00:13 +0100)]
Simplify use of cache for ordinary applications

* Create default constructor for caches

* Create a factory function for creation of
cache->tile source->error tile source chain

* Rename champlain_map_source_chain_push_map_source to
champlain_map_source_chain_push

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoSet CHAMPLAIN_STATE_DONE only if the tile has some content
Jiří Techet [Wed, 20 Jan 2010 21:25:36 +0000 (22:25 +0100)]
Set CHAMPLAIN_STATE_DONE only if the tile has some content

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoRemove incorrect comment in memphis
Jiří Techet [Wed, 20 Jan 2010 20:57:23 +0000 (21:57 +0100)]
Remove incorrect comment in memphis

Remove incorrect comment of mine (this is a read lock so multiple
threads can use memphis in parallel)

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoAdd special paths for Maemo
Pierre-Luc Beaudoin [Mon, 18 Jan 2010 15:11:15 +0000 (10:11 -0500)]
Add special paths for Maemo

All tile using apps on Maemo agreed to use the same paths

8 years agoRename MemphisMapSource to MemphisTileSource
Jiří Techet [Mon, 18 Jan 2010 00:28:28 +0000 (01:28 +0100)]
Rename MemphisMapSource to MemphisTileSource

Rename MemphisMapSource to MemphisTileSource to follow the new naming
conventions of map sources

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoNew map and cache loading infrastructure
Jiří Techet [Sun, 17 Jan 2010 23:51:10 +0000 (00:51 +0100)]
New map and cache loading infrastructure

New infrastructure for mutually cooperating and exchangeable caches
and map sources.

Signed-off-by: Jiří Techet <techet@gmail.com>
8 years agoLoad tiles async from hard drive
Pierre-Luc Beaudoin [Sun, 17 Jan 2010 04:14:14 +0000 (23:14 -0500)]
Load tiles async from hard drive

8 years agoUpdate scale and license on realize (once the map is available)
Pierre-Luc Beaudoin [Sat, 16 Jan 2010 21:31:58 +0000 (16:31 -0500)]
Update scale and license on realize (once the map is available)

8 years agoMake sure the licence and scale actors are on top
Pierre-Luc Beaudoin [Sat, 16 Jan 2010 20:40:11 +0000 (15:40 -0500)]
Make sure the licence and scale actors are on top

8 years agoUpdate python bindings not to use deprecated code
Pierre-Luc Beaudoin [Fri, 15 Jan 2010 16:10:06 +0000 (11:10 -0500)]
Update python bindings not to use deprecated code

8 years agoDon't do everything everytime the user moves
Pierre-Luc Beaudoin [Fri, 15 Jan 2010 15:28:46 +0000 (10:28 -0500)]
Don't do everything everytime the user moves

Instead, do it only when there's a 100px difference
or when he stops moving. Things that are delayed:
- Loading of tiles
- Redrawing of polygons
- Updating of the scale

8 years agoDon't redraw the scale so often
Pierre-Luc Beaudoin [Sat, 16 Jan 2010 20:35:01 +0000 (15:35 -0500)]
Don't redraw the scale so often

8 years agoRemove deprecated function call in urlmarker demo
Pierre-Luc Beaudoin [Fri, 15 Jan 2010 15:54:52 +0000 (10:54 -0500)]
Remove deprecated function call in urlmarker demo

8 years agoRemove the loading of the ETAG from the file system
Pierre-Luc Beaudoin [Fri, 15 Jan 2010 15:29:38 +0000 (10:29 -0500)]
Remove the loading of the ETAG from the file system

This ETag isn't being used.

8 years agoRethink the init process
Pierre-Luc Beaudoin [Fri, 15 Jan 2010 01:58:57 +0000 (20:58 -0500)]
Rethink the init process

Move the init to actor's realize, this way the tiles are
only loaded once GL is initiated, and once the
host app has had time to set zoom, lat and lon.  Saves
loading 13 tiles on demos/launcher-gtk.

8 years agoMake the licence code work as the scale code
Pierre-Luc Beaudoin [Thu, 14 Jan 2010 21:06:32 +0000 (16:06 -0500)]
Make the licence code work as the scale code

8 years agocenter on ealier in the demo
Pierre-Luc Beaudoin [Thu, 14 Jan 2010 20:52:02 +0000 (15:52 -0500)]
center on ealier in the demo

Prevents unnecessary loading of tiles on show

8 years agoUpdate gitignore for demos
Pierre-Luc Beaudoin [Thu, 14 Jan 2010 20:20:49 +0000 (15:20 -0500)]
Update gitignore for demos

8 years ago580372: Get rid of champlain_view_set_size
Pierre-Luc Beaudoin [Thu, 14 Jan 2010 20:20:33 +0000 (15:20 -0500)]
580372: Get rid of champlain_view_set_size

champlain_view_set_size is now deprecated, the size
of ChamplainView should be set with
clutter_actor_set_size.  champlain_view_set_size just
calls it.

8 years agoShip all the python .defs files in tar balls
Lorenzo Masini [Thu, 14 Jan 2010 00:09:34 +0000 (19:09 -0500)]
Ship all the python .defs files in tar balls

8 years agoFix Python demos to use ChamplainEmbed
Lorenzo Masini [Thu, 14 Jan 2010 00:04:52 +0000 (19:04 -0500)]
Fix Python demos to use ChamplainEmbed

8 years agofix coding style at random places
Simon Wenner [Tue, 10 Nov 2009 22:25:36 +0000 (23:25 +0100)]
fix coding style at random places

8 years agolocal-rendering-demo: update las_palmas.osm data
Simon Wenner [Tue, 10 Nov 2009 22:13:55 +0000 (23:13 +0100)]
local-rendering-demo: update las_palmas.osm data

8 years agoFix crasher if invalid map or rules paths are used
Simon Wenner [Tue, 10 Nov 2009 21:30:55 +0000 (22:30 +0100)]
Fix crasher if invalid map or rules paths are used

This patch is a temporary solution. The next release of memphis will have a proper error handling.

8 years agolocal-rendering demo: replace GtkViewport by GtkFrame
Simon Wenner [Tue, 10 Nov 2009 20:24:07 +0000 (21:24 +0100)]
local-rendering demo: replace GtkViewport by GtkFrame

8 years agoAdapt champlain to the latest changes in libmemphis.
Simon Wenner [Sat, 24 Oct 2009 23:29:28 +0000 (01:29 +0200)]
Adapt champlain to the latest changes in libmemphis.

The debug level properties of memphis have been removed. This should speedup rendering and parsing too.

8 years agoBugfix: Link all demos against libchamplain-0.5
Simon Wenner [Sun, 27 Sep 2009 19:31:14 +0000 (21:31 +0200)]
Bugfix: Link all demos against libchamplain-0.5

8 years agoNew implementation of view_reload_tiles_cb
Simon Wenner [Mon, 14 Sep 2009 13:44:20 +0000 (15:44 +0200)]
New implementation of view_reload_tiles_cb

Deletes all tiles of the previous zoom level and redraws the current zoom level.
The redrawing of the current level is buggy. In certain cases, depending on the tile number, only part of the tiles are refreshed.

8 years agouse the new version of memphis_rule_set_[gs]et_bg_color
Simon Wenner [Fri, 11 Sep 2009 18:01:42 +0000 (20:01 +0200)]
use the new version of memphis_rule_set_[gs]et_bg_color

8 years agoUse the new MemphisRule implementation
Simon Wenner [Fri, 11 Sep 2009 17:28:56 +0000 (19:28 +0200)]
Use the new MemphisRule implementation

8 years agoCode formatting
Simon Wenner [Fri, 11 Sep 2009 17:28:21 +0000 (19:28 +0200)]
Code formatting

8 years agochamplain gtk widget needs an explicit memphis dependency
Simon Wenner [Fri, 11 Sep 2009 17:25:00 +0000 (19:25 +0200)]
champlain gtk widget needs an explicit memphis dependency

8 years agoAdd missing return
Simon Wenner [Thu, 10 Sep 2009 17:28:35 +0000 (19:28 +0200)]
Add missing return

8 years agoRemove all Memphis build condition checks
Simon Wenner [Sat, 5 Sep 2009 18:43:55 +0000 (20:43 +0200)]
Remove all Memphis build condition checks

8 years agoFollow the new tile management policy
Simon Wenner [Thu, 20 Aug 2009 10:28:01 +0000 (12:28 +0200)]
Follow the new tile management policy

8 years agoClutter 1.0 migration (no more clutter-cairo)
Simon Wenner [Thu, 20 Aug 2009 10:25:36 +0000 (12:25 +0200)]
Clutter 1.0 migration (no more clutter-cairo)

8 years agoRemove unused includes
Simon Wenner [Sat, 15 Aug 2009 13:24:49 +0000 (15:24 +0200)]
Remove unused includes

8 years agoUpdate description of ChamplainMemphisMapSource
Simon Wenner [Sat, 15 Aug 2009 13:13:24 +0000 (15:13 +0200)]
Update description of ChamplainMemphisMapSource

8 years agoRemove the dependency on a default rules file.
Simon Wenner [Sat, 15 Aug 2009 12:55:52 +0000 (14:55 +0200)]
Remove the dependency on a default rules file.

The default rule is now hardcoded. All highway types are drawn as thin black lines.

8 years agoUse ClutterColor for memphis_map_source_{g,s}et_background_color
Simon Wenner [Mon, 10 Aug 2009 20:35:48 +0000 (22:35 +0200)]
Use ClutterColor for memphis_map_source_{g,s}et_background_color

8 years agoRemove champlain_map_data_source_new
Simon Wenner [Mon, 10 Aug 2009 19:26:55 +0000 (21:26 +0200)]
Remove champlain_map_data_source_new

An instance of this class is not useful for anybody. It provides only an interface.

8 years agoset all priv vars to NULL after unref in dispose
Simon Wenner [Mon, 10 Aug 2009 19:20:33 +0000 (21:20 +0200)]
set all priv vars to NULL after unref in dispose

8 years agoDocu: *_set_* always before *_get_*
Simon Wenner [Mon, 10 Aug 2009 19:16:16 +0000 (21:16 +0200)]
Docu: *_set_* always before *_get_*

8 years agofix a typo in libmemphis
Simon Wenner [Sat, 8 Aug 2009 20:11:19 +0000 (22:11 +0200)]
fix a typo in libmemphis

8 years agoAdd champlain_memphis_map_source_remove_rule
Simon Wenner [Sat, 8 Aug 2009 19:58:22 +0000 (21:58 +0200)]
Add champlain_memphis_map_source_remove_rule

8 years agoAdd all new symbols to the documentation index
Simon Wenner [Sat, 1 Aug 2009 22:07:10 +0000 (00:07 +0200)]
Add all new symbols to the documentation index

8 years agoUpdate documentation of all MapDataSources
Simon Wenner [Sat, 1 Aug 2009 22:06:00 +0000 (00:06 +0200)]
Update documentation of all MapDataSources

8 years agoDocument ChamplainMemphisMapSource
Simon Wenner [Sat, 1 Aug 2009 21:57:09 +0000 (23:57 +0200)]
Document ChamplainMemphisMapSource

8 years agoUpdate BoundingBox documentation
Simon Wenner [Sat, 1 Aug 2009 13:51:24 +0000 (15:51 +0200)]
Update BoundingBox documentation

8 years agoUpdate documentation of ChamplainCache
Simon Wenner [Sat, 1 Aug 2009 13:36:17 +0000 (15:36 +0200)]
Update documentation of ChamplainCache

8 years agoDocument all ChamplainMapDataSources
Simon Wenner [Fri, 31 Jul 2009 18:33:51 +0000 (20:33 +0200)]
Document all ChamplainMapDataSources

8 years agoUse memhis_map_get_bounding_box
Simon Wenner [Thu, 30 Jul 2009 21:36:38 +0000 (23:36 +0200)]
Use memhis_map_get_bounding_box

8 years agoFix typo
Simon Wenner [Thu, 30 Jul 2009 16:21:23 +0000 (18:21 +0200)]
Fix typo

8 years agoDocument ChamplainNetworkMapDataSource
Simon Wenner [Thu, 30 Jul 2009 16:16:58 +0000 (18:16 +0200)]
Document ChamplainNetworkMapDataSource

8 years agolocal-rendering-demo: Make use of the non-persistent cash
Simon Wenner [Thu, 30 Jul 2009 15:25:40 +0000 (17:25 +0200)]
local-rendering-demo: Make use of the non-persistent cash

8 years agoAdd 'persistent-cache' property to MemhisMapSource
Simon Wenner [Thu, 30 Jul 2009 15:23:17 +0000 (17:23 +0200)]
Add 'persistent-cache' property to MemhisMapSource

This property allows to choose between a managed and an unmanaged session cache.

8 years agoRemove the 'map-data-changed' signal from MapDataSource
Simon Wenner [Thu, 30 Jul 2009 14:36:15 +0000 (16:36 +0200)]
Remove the 'map-data-changed' signal from MapDataSource

The 'notify::state' signal makes this signal redundant.

8 years agolocal-rendering-demo: Add dialogue to edit a rule
Simon Wenner [Thu, 30 Jul 2009 14:07:45 +0000 (16:07 +0200)]
local-rendering-demo: Add dialogue to edit a rule

8 years agolocal-rendering-demo: Add loading icon for the NetworkMapDataSource
Simon Wenner [Mon, 27 Jul 2009 21:00:48 +0000 (23:00 +0200)]
local-rendering-demo: Add loading icon for the NetworkMapDataSource

8 years agoAdd state property to ChamplainMapDataSource
Simon Wenner [Mon, 27 Jul 2009 20:58:29 +0000 (22:58 +0200)]
Add state property to ChamplainMapDataSource

This allows a client to know if new data is currently loading

8 years agolocal-rendering-demo: Use the bounding box to center the view
Simon Wenner [Sun, 26 Jul 2009 21:31:31 +0000 (23:31 +0200)]
local-rendering-demo: Use the bounding box to center the view

8 years agoAdd champlain_bounding_box_get_center
Simon Wenner [Sun, 26 Jul 2009 21:30:20 +0000 (23:30 +0200)]
Add champlain_bounding_box_get_center

8 years agoAdd ChamplainBoundingBox to champlain.h
Simon Wenner [Sun, 26 Jul 2009 21:29:29 +0000 (23:29 +0200)]
Add ChamplainBoundingBox to champlain.h

8 years agoAdd ChamplainBoundingBox (a boxed struct), add bounding-box property
Simon Wenner [Sun, 26 Jul 2009 20:56:35 +0000 (22:56 +0200)]
Add ChamplainBoundingBox (a boxed struct), add bounding-box property

8 years agoNetworkMapSource: Use champlain_cache_get_filename
Simon Wenner [Sat, 25 Jul 2009 21:13:49 +0000 (23:13 +0200)]
NetworkMapSource: Use champlain_cache_get_filename

8 years agoShare the error tile drawing between all map sources
Simon Wenner [Sat, 25 Jul 2009 21:05:27 +0000 (23:05 +0200)]
Share the error tile drawing between all map sources

Moved to champlain-map-source.c

8 years agoAdd bounding box size check
Simon Wenner [Sat, 25 Jul 2009 20:42:07 +0000 (22:42 +0200)]
Add bounding box size check

8 years agolocal-rendering-demo: Hide unrelated widgets, add background editing
Simon Wenner [Sat, 25 Jul 2009 17:21:17 +0000 (19:21 +0200)]
local-rendering-demo: Hide unrelated widgets, add background editing

8 years agoAdd functions to edit the background and rules
Simon Wenner [Sat, 25 Jul 2009 17:09:44 +0000 (19:09 +0200)]
Add functions to edit the background and rules

8 years agoFix GFileInfo leak in delete_dir_recursive
Simon Wenner [Mon, 20 Jul 2009 17:22:27 +0000 (19:22 +0200)]
Fix GFileInfo leak in delete_dir_recursive

8 years agoDraw error-tiles if no map data is available
Simon Wenner [Wed, 15 Jul 2009 22:09:06 +0000 (00:09 +0200)]
Draw error-tiles if no map data is available