libchamplain:rugginoso-clone.git
7 years agoRemoved gtk as champlain dependency and added champlain-memphis to the exported packages.
Lorenzo Masini [Wed, 23 Mar 2011 00:01:29 +0000 (01:01 +0100)]
Removed gtk as champlain dependency and added champlain-memphis to the exported packages.

7 years agoFixed library name in GIRs export packages.
Lorenzo Masini [Sun, 13 Mar 2011 15:50:05 +0000 (16:50 +0100)]
Fixed library name in GIRs export packages.

7 years agoGenerate good GIRs (See https://bugzilla.gnome.org/show_bug.cgi?id=635330)
Lorenzo Masini [Sun, 13 Mar 2011 03:09:21 +0000 (04:09 +0100)]
Generate good GIRs (See https://bugzilla.gnome.org/show_bug.cgi?id=635330)

7 years agoAdd version number to .pc files during configure
Jiří Techet [Fri, 18 Mar 2011 00:31:52 +0000 (01:31 +0100)]
Add version number to .pc files during configure

7 years agoFlag redraw as non-scheduled at the beginning of redraw_path()
Jiří Techet [Sat, 26 Feb 2011 13:39:06 +0000 (14:39 +0100)]
Flag redraw as non-scheduled at the beginning of redraw_path()

7 years agoAs redraw_scale() is a callback, it should return boolean
Jiří Techet [Sat, 26 Feb 2011 13:38:22 +0000 (14:38 +0100)]
As redraw_scale() is a callback, it should return boolean

7 years agoLower the non-scroll threshold
Jiří Techet [Sat, 26 Feb 2011 00:51:29 +0000 (01:51 +0100)]
Lower the non-scroll threshold

Drag of viewport is performed only when the mouse drag is larger
than some threshold so minor mouse movements are not treated as
drags. Use 4 pixels for this threshold instead of 8.

7 years agoRemove some unnecessary queue_redraw()s
Jiří Techet [Sat, 26 Feb 2011 00:40:19 +0000 (01:40 +0100)]
Remove some unnecessary queue_redraw()s

7 years agoRemove some unnecessary queue_relayout()s
Jiří Techet [Sat, 26 Feb 2011 00:33:34 +0000 (01:33 +0100)]
Remove some unnecessary queue_relayout()s

7 years agoPerform tile animations on content actor as it works now
Jiří Techet [Sat, 26 Feb 2011 00:23:37 +0000 (01:23 +0100)]
Perform tile animations on content actor as it works now

7 years agoRemove nonsense motion event enable/disable for markers
Jiří Techet [Sat, 26 Feb 2011 00:17:51 +0000 (01:17 +0100)]
Remove nonsense motion event enable/disable for markers

7 years agoImplement events handling of kinetic scroll view the same way as in Mx
Jiří Techet [Sat, 26 Feb 2011 00:17:11 +0000 (01:17 +0100)]
Implement events handling of kinetic scroll view the same way as in Mx

The implementation in Mx is superior to the tidy implementation
(which tends to do strange things with the mouse events) so let's use it.

7 years agoRename FingerScroll to KineticScrollView
Jiří Techet [Fri, 25 Feb 2011 22:29:18 +0000 (23:29 +0100)]
Rename FingerScroll to KineticScrollView

This name is used by Mx and is a bit clearer

7 years agoFinally fix our redrawing problem
Jiří Techet [Fri, 25 Feb 2011 21:49:16 +0000 (22:49 +0100)]
Finally fix our redrawing problem

This one fixes our hard-to-find redrawing problem. What happened:
in the paint method of the viewport the coordinates were transformed
only for painting but clutter clips the images based on real coordinates
of the actors. Therefore clutter eliminated all the actors because it
thought they weren't displayed.

Instead of using low level cogl operations, use standard clutter actor
positioning to move the viewport - this fixes the problem completely.

7 years agoRename tidy to champlain and move to the champlain directory
Jiří Techet [Thu, 24 Feb 2011 21:54:14 +0000 (22:54 +0100)]
Rename tidy to champlain and move to the champlain directory

Now as we have only three classes from tidy, it reduces quite some makefile
and boilerplate code when we move them directly to the champlain directory.

7 years agoRemove some unnecessary code from tidy
Jiří Techet [Thu, 24 Feb 2011 21:29:30 +0000 (22:29 +0100)]
Remove some unnecessary code from tidy

7 years agoEliminate TidyScrollable
Jiří Techet [Thu, 24 Feb 2011 21:09:01 +0000 (22:09 +0100)]
Eliminate TidyScrollable

As TidyViewport is the only class implementing it, having an extra
interface is not necessary.

7 years agoMerge FingerScroll and ScrollView
Jiří Techet [Thu, 24 Feb 2011 20:38:21 +0000 (21:38 +0100)]
Merge FingerScroll and ScrollView

7 years agoRemove tidy-debug.h
Jiří Techet [Thu, 24 Feb 2011 19:59:02 +0000 (20:59 +0100)]
Remove tidy-debug.h

7 years agoBack to tidy
Jiří Techet [Thu, 24 Feb 2011 19:57:55 +0000 (20:57 +0100)]
Back to tidy

Using Mx instead of tidy added too much extra stuff we don't need
at all. It will be easier to continue using tidy and backport the
fixes from Mx.

7 years agoFix header collisions between clutter-gtk-0.10 and clutter-gtk-1.0
Nirbheek Chauhan [Wed, 23 Feb 2011 15:21:37 +0000 (20:51 +0530)]
Fix header collisions between clutter-gtk-0.10 and clutter-gtk-1.0

Always include clutter-gtk-1.0 first to avoid header-include-path problems

https://bugzilla.gnome.org/show_bug.cgi?id=643077

7 years ago0.9.0 LIBCHAMPLAIN_0_9_0
Jiří Techet [Sun, 20 Feb 2011 21:13:31 +0000 (22:13 +0100)]
0.9.0

7 years agoDisable vala demo generation
Jiří Techet [Sun, 20 Feb 2011 20:15:48 +0000 (21:15 +0100)]
Disable vala demo generation

There's some problem during make distcheck. Vala bindings aren't
regenerated yet anyway so let's postpone the fix till later releases.

7 years agoAdd memphis renderer to doc types
Jiří Techet [Sun, 20 Feb 2011 20:14:29 +0000 (21:14 +0100)]
Add memphis renderer to doc types

7 years agoSkip introspection for champlain_memphis_renderer_get_rule()
Jiří Techet [Sun, 20 Feb 2011 18:29:10 +0000 (19:29 +0100)]
Skip introspection for champlain_memphis_renderer_get_rule()

7 years agoFix layer ensure visible
Jiří Techet [Sun, 20 Feb 2011 18:16:31 +0000 (19:16 +0100)]
Fix layer ensure visible

We change zoom levels in the ensure visible function and cannot make
any assumption on the conversion between pixels and latitude/longitude.

7 years agoSome changes of gdouble to gint and vice versa
Jiří Techet [Sun, 20 Feb 2011 16:21:46 +0000 (17:21 +0100)]
Some changes of gdouble to gint and vice versa

In some cases we need better precision even for pixels (when
we need to perform some further calculations), in other cases
we need ints to have the contents pixel-aligned.

7 years agoAdd champlain_marker_layer_get_selected() to retrieve selected markers
Jiří Techet [Sat, 19 Feb 2011 21:30:59 +0000 (22:30 +0100)]
Add champlain_marker_layer_get_selected() to retrieve selected markers

7 years agoAdd champlain_marker_layer_new() constructor
Jiří Techet [Sat, 19 Feb 2011 21:27:01 +0000 (22:27 +0100)]
Add champlain_marker_layer_new() constructor

7 years agoRename decel_rate to deceleration to be consistent with mx
Jiří Techet [Fri, 18 Feb 2011 16:09:18 +0000 (17:09 +0100)]
Rename decel_rate to deceleration to be consistent with mx

7 years agoRedraw the scale on idle
Jiří Techet [Fri, 18 Feb 2011 15:55:16 +0000 (16:55 +0100)]
Redraw the scale on idle

7 years agoClear textures before drawing
Jiří Techet [Fri, 18 Feb 2011 15:40:32 +0000 (16:40 +0100)]
Clear textures before drawing

7 years agoWhen calculating bounding box of a layer, add some margin
Jiří Techet [Thu, 17 Feb 2011 22:48:54 +0000 (23:48 +0100)]
When calculating bounding box of a layer, add some margin

7 years agoDon't expose the layout manager in ChamplainView
Jiří Techet [Thu, 17 Feb 2011 22:30:44 +0000 (23:30 +0100)]
Don't expose the layout manager in ChamplainView

Use dedicated function for actor layout instead.

7 years agoDon't fire drag-finish when not dragging
Jiří Techet [Thu, 17 Feb 2011 22:00:18 +0000 (23:00 +0100)]
Don't fire drag-finish when not dragging

7 years agoRemove const in champlain_map_source_desc_get_constructor()
Jiří Techet [Thu, 17 Feb 2011 21:44:03 +0000 (22:44 +0100)]
Remove const in champlain_map_source_desc_get_constructor()

Thanks to Guillaume Desmottes

7 years agoSkip functions with pointers to functions from introspection
Jiří Techet [Thu, 17 Feb 2011 21:35:34 +0000 (22:35 +0100)]
Skip functions with pointers to functions from introspection

7 years agoRename champlain_location_set_position to champlain_location_set_location()
Jiří Techet [Thu, 17 Feb 2011 21:34:55 +0000 (22:34 +0100)]
Rename champlain_location_set_position to champlain_location_set_location()

There's a clash of clutter_actor_set_position() and this
function in bindings because the prefix of both functions gets
removed and they appear to be identical.

7 years agoVersion control the .types file
Jiří Techet [Thu, 17 Feb 2011 21:32:59 +0000 (22:32 +0100)]
Version control the .types file

It's autogenerated after second pass so it may happen that the
documentation is not complete after the first pass.

7 years agoSome changes in doc generation to generate doc of interfaces properly
Jiří Techet [Thu, 17 Feb 2011 01:04:28 +0000 (02:04 +0100)]
Some changes in doc generation to generate doc of interfaces properly

7 years agoAdd clutter_actor_queue_relayout/redraw where necessary
Jiří Techet [Thu, 17 Feb 2011 01:03:37 +0000 (02:03 +0100)]
Add clutter_actor_queue_relayout/redraw where necessary

Some calls are still missing

7 years agoUpdate libchamplain-sections.txt
Jiří Techet [Wed, 16 Feb 2011 00:29:41 +0000 (01:29 +0100)]
Update libchamplain-sections.txt

7 years agoUse selection color based on GTK colors again and use it for all markers
Jiří Techet [Wed, 16 Feb 2011 00:15:20 +0000 (01:15 +0100)]
Use selection color based on GTK colors again and use it for all markers

7 years agoUse new macros for defining interfaces
Jiří Techet [Tue, 15 Feb 2011 23:46:34 +0000 (00:46 +0100)]
Use new macros for defining interfaces

7 years agoChange events emitted by ChamplainMarkers to include more info
Jiří Techet [Tue, 15 Feb 2011 22:59:23 +0000 (23:59 +0100)]
Change events emitted by ChamplainMarkers to include more info

7 years agoRedraw paths on idle
Jiří Techet [Tue, 15 Feb 2011 20:19:24 +0000 (21:19 +0100)]
Redraw paths on idle

7 years agoAdjust demos to show "dynamic" path
Jiří Techet [Mon, 14 Feb 2011 23:20:39 +0000 (00:20 +0100)]
Adjust demos to show "dynamic" path

7 years agoImprove bounding box use
Jiří Techet [Mon, 14 Feb 2011 23:15:03 +0000 (00:15 +0100)]
Improve bounding box use

Add an ensure_visible function for layers in view, make bounding
box query a virtual function of layers and add some extra utility
functions to bounding box.

7 years agoUpdate documentation
Jiří Techet [Mon, 14 Feb 2011 21:54:30 +0000 (22:54 +0100)]
Update documentation

7 years agoRemove functions from ChamplainMarkerLayer present in ChamplainPathLayer
Jiří Techet [Mon, 14 Feb 2011 01:00:42 +0000 (02:00 +0100)]
Remove functions from ChamplainMarkerLayer present in ChamplainPathLayer

7 years agoIntroduce ChamplainLocation interface
Jiří Techet [Mon, 14 Feb 2011 00:13:42 +0000 (01:13 +0100)]
Introduce ChamplainLocation interface

Used to define common behavior of classes having latitude and
longitude. ChamplainMarker implements this interface.

7 years agoCorrectly define abstract types
Jiří Techet [Sun, 13 Feb 2011 11:01:25 +0000 (12:01 +0100)]
Correctly define abstract types

7 years agoFix crash on shutdown
Jiří Techet [Sun, 13 Feb 2011 01:31:32 +0000 (02:31 +0100)]
Fix crash on shutdown

7 years agoInherit ChamplainView from ClutterActor
Jiří Techet [Sun, 13 Feb 2011 01:29:49 +0000 (02:29 +0100)]
Inherit ChamplainView from ClutterActor

7 years agoRelayout actor when parenting
Jiří Techet [Sun, 13 Feb 2011 00:16:38 +0000 (01:16 +0100)]
Relayout actor when parenting

7 years agoCall clutter_actor_queue_redraw() after drawing marker
Jiří Techet [Sat, 12 Feb 2011 19:04:10 +0000 (20:04 +0100)]
Call clutter_actor_queue_redraw() after drawing marker

So the whole actor is redrawn when calling from an idle function.

7 years agoImprove performance when drawing path
Jiří Techet [Sat, 12 Feb 2011 18:17:47 +0000 (19:17 +0100)]
Improve performance when drawing path

7 years agoRemove depth checks from ChamplainGroup
Jiří Techet [Sat, 12 Feb 2011 15:06:42 +0000 (16:06 +0100)]
Remove depth checks from ChamplainGroup

7 years agoPerform fade-in animation on ChamplainTile and not the containing actor
Jiří Techet [Sat, 12 Feb 2011 14:39:33 +0000 (15:39 +0100)]
Perform fade-in animation on ChamplainTile and not the containing actor

Under GTK 3 if we perform the animation on the content actor,
the animation doesn't work properly. For now it remains mystery
why this happens. At the moment we are fine with this solution
but if we implement some better zoom-in/out animation that
fades-in the loaded tile into the scaled tile from the previous
zoom level, we may need to animate the new content actor on top
of the old content actor inside the tile.

7 years agoRename stage to view_box to avoid confusion
Jiří Techet [Sat, 12 Feb 2011 12:22:05 +0000 (13:22 +0100)]
Rename stage to view_box to avoid confusion

7 years agoRename finger_scroll to kinetic_scroll
Jiří Techet [Sat, 12 Feb 2011 12:15:54 +0000 (13:15 +0100)]
Rename finger_scroll to kinetic_scroll

7 years agoFire signals after the view state is updated
Jiří Techet [Sat, 12 Feb 2011 10:18:49 +0000 (11:18 +0100)]
Fire signals after the view state is updated

7 years agoUse our own copy of ClutterGroup
Jiří Techet [Sat, 12 Feb 2011 10:18:02 +0000 (11:18 +0100)]
Use our own copy of ClutterGroup

ChamplainGroup is in principle ClutterGroup which doesn't sort
actors by depth. This speeds up addition and removal of
markers in libchamplain considerably.

7 years agoWhen centering on map, don't convert to/from different coordinates
Jiří Techet [Fri, 11 Feb 2011 22:40:45 +0000 (23:40 +0100)]
When centering on map, don't convert to/from different coordinates

7 years agoUpdate documentation
Jiří Techet [Thu, 10 Feb 2011 21:46:37 +0000 (22:46 +0100)]
Update documentation

7 years agochamplain_marker_layer_get_markers() should return a copy of the list
Jiří Techet [Thu, 10 Feb 2011 21:15:41 +0000 (22:15 +0100)]
champlain_marker_layer_get_markers() should return a copy of the list

7 years agoRename *movable* to *draggable*
Jiří Techet [Thu, 10 Feb 2011 21:08:56 +0000 (22:08 +0100)]
Rename *movable* to *draggable*

To make it clear the movement is made by mouse.

7 years agoSome property and method renames in marker layer
Jiří Techet [Thu, 10 Feb 2011 21:06:41 +0000 (22:06 +0100)]
Some property and method renames in marker layer

7 years agoIntroduce more drag signals
Jiří Techet [Wed, 9 Feb 2011 22:16:56 +0000 (23:16 +0100)]
Introduce more drag signals

As suggested by Pierre-Luc in #577910, I've also added drag begin
and drag end signals and renamed the moved signal to match the other
signal names

7 years agoReplace gtk_widget_hide_all() with gtk_widget_hide()
Jiří Techet [Wed, 9 Feb 2011 21:56:25 +0000 (22:56 +0100)]
Replace gtk_widget_hide_all() with gtk_widget_hide()

Thanks to Frederic Crozat

7 years agoRemove virtual methods of ChamplainLabel
Jiří Techet [Wed, 9 Feb 2011 08:28:16 +0000 (09:28 +0100)]
Remove virtual methods of ChamplainLabel

Users can implement custom markers using CustomMarker so this should not
be necessary

7 years agoIntroduce ChamplainCustomMarker implementing ClutterContainer interface
Jiří Techet [Wed, 9 Feb 2011 08:27:08 +0000 (09:27 +0100)]
Introduce ChamplainCustomMarker implementing ClutterContainer interface

7 years agoRemove unnecessary member variable
Jiří Techet [Tue, 8 Feb 2011 21:26:26 +0000 (22:26 +0100)]
Remove unnecessary member variable

7 years agoAdd champlain_bounding_box_compose() method
Jiří Techet [Tue, 8 Feb 2011 21:18:20 +0000 (22:18 +0100)]
Add champlain_bounding_box_compose() method

7 years agoAdd some missing annotations
Jiří Techet [Mon, 7 Feb 2011 23:32:58 +0000 (00:32 +0100)]
Add some missing annotations

7 years agoUpdate documentation
Jiří Techet [Mon, 7 Feb 2011 22:23:03 +0000 (23:23 +0100)]
Update documentation

7 years agoAdd additional marker manipulation functions to MarkerLayer
Jiří Techet [Sun, 6 Feb 2011 16:38:42 +0000 (17:38 +0100)]
Add additional marker manipulation functions to MarkerLayer

7 years agoRename select to highlight to make wording consistent
Jiří Techet [Sun, 6 Feb 2011 15:55:16 +0000 (16:55 +0100)]
Rename select to highlight to make wording consistent

7 years agoMove marker on top when selected
Jiří Techet [Sun, 6 Feb 2011 15:44:57 +0000 (16:44 +0100)]
Move marker on top when selected

7 years agoRequire at least clutter 1.2
Jiří Techet [Sun, 6 Feb 2011 14:09:16 +0000 (15:09 +0100)]
Require at least clutter 1.2

Needed for layout manager

7 years agolabel, layer, license, marker, scale should inherit from ClutterActor
Jiří Techet [Sun, 6 Feb 2011 14:01:41 +0000 (15:01 +0100)]
label, layer, license, marker, scale should inherit from ClutterActor

Inheriting from ClutterGroup exposes their inner structure outside
which breaks encapsulation.

7 years agoEncapsulate ChamplainMapSourceDesc into a class
Jiří Techet [Fri, 4 Feb 2011 22:36:07 +0000 (23:36 +0100)]
Encapsulate ChamplainMapSourceDesc into a class

The factory can provide a list of ChamplainMapSourceDesc structures,
which is a bit dangerous because the user code can easily modify
their contents, which is illegal. Convert the structure to class with
construct-only writable properties to avoid this problem.

Thanks to Emmanuel Rodriguez for pointing out this problem.

7 years agoMake kinetic mode boolean property and add it to mx as well
Jiří Techet [Thu, 3 Feb 2011 22:11:06 +0000 (23:11 +0100)]
Make kinetic mode boolean property and add it to mx as well

7 years agoUse bounding box where appropriate
Jiří Techet [Thu, 3 Feb 2011 21:23:56 +0000 (22:23 +0100)]
Use bounding box where appropriate

7 years agoSwap elements in the BoundingBox structure and fix center computation
Jiří Techet [Wed, 2 Feb 2011 23:17:09 +0000 (00:17 +0100)]
Swap elements in the BoundingBox structure and fix center computation

7 years agoRename polygon to path
Jiří Techet [Wed, 2 Feb 2011 22:26:28 +0000 (23:26 +0100)]
Rename polygon to path

Polygon is a closed shape which is just a special case of what ChamplainPolygon
was used for. Path is probably a better name in this case.

7 years agoCosmetic fix
Jiří Techet [Wed, 2 Feb 2011 22:18:00 +0000 (23:18 +0100)]
Cosmetic fix

7 years agoRemove the unnecessary ChamplainRenderCallbackData structure
Jiří Techet [Wed, 2 Feb 2011 21:10:48 +0000 (22:10 +0100)]
Remove the unnecessary ChamplainRenderCallbackData structure

7 years agoChange int type to uint in several fields of ChamplainTile
Jiří Techet [Wed, 2 Feb 2011 19:32:37 +0000 (20:32 +0100)]
Change int type to uint in several fields of ChamplainTile

7 years agoRemove some unnecesssary data types
Jiří Techet [Wed, 2 Feb 2011 19:01:35 +0000 (20:01 +0100)]
Remove some unnecesssary data types

7 years agoSome minor renames
Jiří Techet [Tue, 1 Feb 2011 23:47:01 +0000 (00:47 +0100)]
Some minor renames

7 years agoChange the precision of marker move to double
Jiří Techet [Tue, 1 Feb 2011 23:07:37 +0000 (00:07 +0100)]
Change the precision of marker move to double

7 years agoRename move-by signal to moved
Jiří Techet [Tue, 1 Feb 2011 22:48:02 +0000 (23:48 +0100)]
Rename move-by signal to moved

7 years agoRename the scale-unit property to unit
Jiří Techet [Tue, 1 Feb 2011 22:27:21 +0000 (23:27 +0100)]
Rename the scale-unit property to unit

7 years agoRename license-text property to extra-text
Jiří Techet [Tue, 1 Feb 2011 22:26:55 +0000 (23:26 +0100)]
Rename license-text property to extra-text

7 years agoUse guint for zoom level
Jiří Techet [Tue, 1 Feb 2011 22:18:21 +0000 (23:18 +0100)]
Use guint for zoom level

7 years agoGet viewport origin in a single function instead of two
Jiří Techet [Tue, 1 Feb 2011 21:58:31 +0000 (22:58 +0100)]
Get viewport origin in a single function instead of two

7 years agoMove license and scale actors out of the view
Jiří Techet [Tue, 1 Feb 2011 21:52:14 +0000 (22:52 +0100)]
Move license and scale actors out of the view

7 years agoIntroduce ChamplainLayer - a base class of all layers
Jiří Techet [Sun, 30 Jan 2011 13:52:14 +0000 (14:52 +0100)]
Introduce ChamplainLayer - a base class of all layers

7 years agoReduce the set of coordinate conversion functions
Jiří Techet [Sun, 30 Jan 2011 12:41:01 +0000 (13:41 +0100)]
Reduce the set of coordinate conversion functions