JUN
29
2011
|
Season of KDE: Kexi Web WidgetKexi Web Browser Widget is a form element that lets the user to put full-featured web browser's box onto the Kexi Form surface using single drag and drop and then load the address from the database. The challenge has been accepted by Shreya Pandit within the Season of KDE program for the Calligra project. As someone relatively new to Qt/KDE Shreya shows really nice progress, so below I will explain one of the use cases that is already possible with her new form widget. The use case User wants to store a set of bookmarked web sites (links) with descriptive names. Then she expects to have easy way to browse through the bookmarks and see the web sites previewed. Browsing capabilities within the same window (without opening new one) would be a plus. Modular approach All this is now possible in Kexi. For more modular design, Shreya inserted the widget implementation into a separate Form Plugin which is compiled and loaded only when Qt WebKit is available on the system. Kexi already provides API for such plugins. Naturally, the API simplified the process of binding the form widget to a database field. Step 1: Define data
Step 2: Design the form
The result
Where from here? In the long term, the it could be possible to provide KDE web bookmarks system as dedicated data source for Kexi, so the bookmarks would be easy to bound to the form as a special type of database table (view). Other idea is to store snapshots of web pages in the database for either for archiving needs or for offline use. Moreover, in addition to forms, there are plans for implementing web boxes support in Kexi Reports (printouts) and ODF documents. For discussing many more details we have set up dedicated Season of Kexi group. Conclusion The code The code is not present in Kexi 2.4 snapshot but in kexi-web-shreya branch of the Calligra repository. community.kde.org offers article on how to compile Calligra applications. |
![]() |