Tarptaeya's Blog

Seventh week of coding phase, GSoC'18

2 min read

Published: 2018-07-01 22:00:00

By Anmol Gautam

Tags: GSoC Falkon KDE

The following work is done in the seveth week:

Events API

The Events API exposes the Key, Mouse and Wheel events. The properties like mousePress, mouseDoubleClick, keyPress, etc are added to QmlPluginInterface class which on set to a JavaScript function will register the plugin for that event & will call the function with proper arguments (containing event & object on which the event is triggered) when the event is triggered.

WebPage methods in Tabs API

Implementing acceptNavigationRequest for QML Plugins requires to expose some methods of WebPage class to QML. Now since the standard WebExtensions API doesnt differentiate WebView/WebPage from Tabs API - so the required methods are added to QmlTab class (similar to the WebExtensions Tabs API).

I18n API

The I18n API exposes the methods i18n and i18np to the QML Plugins and uses gettext C API (similar to Python plugins, unlike C++ plugins). Since this uses libintl.h, it will probably not work under windows unless there is some way to make it available with MSVC. Also this API took most of my time, as I misunderstood gettext similar to python extensions as exposing the gettext module of python to QML.

All responses (0)

Copyright © 2017 - 2018 Anmol Gautam