środa, 17 sierpnia 2011

Marble in Calligra

Hello Readers,
I would like to share with You some news about my work in GSoC and that is adding Marble maps to Kexi and as a Flake shape to other Calligra suite applications.

In my previous blog entry I've shown a little video showing working maps with Kexi Forms, but that was only a beginning. Since then lots has changed.
First of all I've connected Forms to database. We can not only display the map but also store position (and zoom level) in database and then restore this information later, and even display maps in reports.

This short video shows working forms:

As You may notice there's only one column for Marble data and we need three variables - latitude, longitude and zoom - in current version of Kexi one element/widget can be connected to only one column, so needed data are combined serialized and then stored as special string.

Another new thing is 'Marble Map Flake Shape', so now all Calligra Suit applications may add Map to created document, next video shows how to add and manipulate Marble maps in "Words", than already existing document is opened and shape is still editable.

We are using odt so this document can be loaded in LibreOffice - of course in LibreOffice you can't change displayed map - you will get just a preview picture.

Those of you that played with Marble, may notice that for map editing we are using standard Marble widget, so anything Marble Team add/change to it, it will be shown.

Of course there are still few things that could/have to be done like choosing some stable marble and marge with current Calligra Suite code.

As usually code is already available at Calligra repository in branch 'kexi-maps-wicik' [3]

[1] video 1 - http://www.youtube.com/watch?v=i6UHPOtJdLY
[2] video 2 - http://www.youtube.com/watch?v=KufdVe4ajAI
[3] https://projects.kde.org/projects/calligra/repository/show?rev=kexi-maps-wicik