1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-24 04:36:34 +01:00

PyFalkon: Wrap more classes

This commit is contained in:
David Rosca 2018-02-26 08:35:09 +01:00
parent 6dff236e07
commit 3f1d37ab69
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8
3 changed files with 102 additions and 2 deletions

View File

@ -93,8 +93,28 @@ set(SHIBOKEN_OPTIONS --generator-set=shiboken --enable-parent-ctor-heuristic
# Specify which sources will be generated by shiboken, and their dependencies.
set(GENERATED_SOURCES
${CMAKE_CURRENT_BINARY_DIR}/PyFalkon/pyfalkon_module_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/PyFalkon/webview_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/PyFalkon/tabbedwebview_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/PyFalkon/webpage_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/PyFalkon/webhittestresult_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/PyFalkon/desktopfile_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/PyFalkon/plugininterface_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/PyFalkon/loadrequest_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/PyFalkon/popupwebview_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/PyFalkon/qz_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/PyFalkon/desktopnotificationsfactory_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/PyFalkon/externaljsobject_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/PyFalkon/pluginproxy_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/PyFalkon/plugins_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/PyFalkon/plugins_plugin_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/PyFalkon/pluginspec_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/PyFalkon/qtsingleapplication_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/PyFalkon/squeezelabelv1_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/PyFalkon/squeezelabelv2_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/PyFalkon/lineedit_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/PyFalkon/sidewidget_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/PyFalkon/webtab_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/PyFalkon/mainapplication_wrapper.cpp
)
set(GENERATED_SOURCES_DEPENDENCIES
${WRAPPED_HEADER}

View File

@ -6,10 +6,62 @@
#include <pythonplugin.h>
</inject-code>
<namespace-type name="Qz">
<enum-type name="BrowserWindowType"/>
<enum-type name="CommandLineAction"/>
<enum-type name="ObjectName"/>
<enum-type name="NewTabPositionFlag" flags="NewTabPositionFlags"/>
</namespace-type>
<object-type name="LineEdit">
<enum-type name="WidgetPosition"/>
<enum-type name="EditAction"/>
</object-type>
<object-type name="SideWidget"/>
<object-type name="SqueezeLabelV1"/>
<object-type name="SqueezeLabelV2"/>
<object-type name="QtSingleApplication">
<include file-name="qtsingleapplication/qtsingleapplication.h" location="global"/>
<modify-function signature="QtSingleApplication(int&amp;,char**,bool)" remove="all"/>
<modify-function signature="QtSingleApplication(QString,int&amp;,char**)" remove="all"/>
</object-type>
<value-type name="LoadRequest">
<enum-type name="Operation"/>
</value-type>
<object-type name="WebPage">
<enum-type name="JsWorld"/>
<modify-function signature="execJavaScript(QString,quint32,int)" remove="all"/>
</object-type>
<object-type name="WebView"/>
<object-type name="PopupWebView"/>
<object-type name="TabbedWebView"/>
<value-type name="WebHitTestResult"/>
<object-type name="WebTab">
<enum-type name="AddChildBehavior"/>
</object-type>
<value-type name="DesktopFile"/>
<object-type name="PluginInterface">
<enum-type name="InitState"/>
</object-type>
<object-type name="ExternalJsObject">
<include file-name="javascript/externaljsobject.h" location="global"/>
</object-type>
<object-type name="Plugins">
<value-type name="Plugin">
<enum-type name="Type"/>
</value-type>
</object-type>
<value-type name="PluginSpec"/>
<object-type name="PluginProxy">
<enum-type name="EventHandlerType"/>
</object-type>
<object-type name="DesktopNotificationsFactory">
<enum-type name="Type"/>
</object-type>
<object-type name="MainApplication">
<enum-type name="AfterLaunch"/>
<modify-function signature="MainApplication(int&amp;,char**)" remove="all"/>
</object-type>
<add-function signature="registerPlugin(PluginInterface*)">
<inject-code class="target" position="beginning">

View File

@ -16,6 +16,34 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* ============================================================ */
#include "webview.h"
#include "desktopfile.h"
// 3rdparty
#include "lineedit.h"
#include "squeezelabelv1.h"
#include "squeezelabelv2.h"
#include "qtsingleapplication/qtsingleapplication.h"
// app
#include "mainapplication.h"
// notifications
#include "desktopnotificationsfactory.h"
// plugins
#include "pluginproxy.h"
#include "plugininterface.h"
// popupwindow
#include "popupwebview.h"
// tools
#include "desktopfile.h"
// webengine
#include "webpage.h"
#include "webview.h"
#include "loadrequest.h"
#include "javascript/externaljsobject.h"
// webtab
#include "webtab.h"
#include "tabbedwebview.h"