Updated Qt5 bindings

This commit is contained in:
Matthias Koefferlein 2021-12-11 10:14:14 +01:00
parent 2d334bd88d
commit 93942e907e
21 changed files with 176 additions and 3 deletions

View File

@ -1107,9 +1107,9 @@ class Configurator
else
dc = (@dropped_classes[:all_classes] || []) + (@dropped_classes[cls] || [])
if sig != :whole_class
return dc.find { |d| sig =~ d } != nil
return dc.find { |d| d == :whole_class || sig =~ d } != nil
else
return dc.find { |d| sig == d } != nil
return dc.find { |d| d == :whole_class || sig == d } != nil
end
end
end

View File

@ -179,7 +179,8 @@ SOURCES += \
$$PWD/gsiDeclQt_1.cc \
$$PWD/gsiDeclQt_2.cc \
$$PWD/gsiDeclQt_3.cc \
$$PWD/gsiDeclQt_4.cc
$$PWD/gsiDeclQt_4.cc \
$$PWD/gsiDeclQtMsgType.cc
HEADERS += gsiQtCoreCommon.h

View File

@ -0,0 +1,56 @@
/*
KLayout Layout Viewer
Copyright (C) 2006-2021 Matthias Koefferlein
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
/**
* @file gsiDeclQtMsgType.cc
*
* DO NOT EDIT THIS FILE.
* This file has been created automatically
*/
#include <QtMsgType>
#include "gsiQt.h"
#include "gsiQtCoreCommon.h"
#include <memory>
// -----------------------------------------------------------------------
// enum QtMsgType
// Implementation of the enum wrapper class for ::QtMsgType
namespace qt_gsi
{
static gsi::Enum<QtMsgType> decl_QtMsgType_Enum ("QtCore", "QtMsgType",
gsi::enum_const ("QtDebugMsg", QtDebugMsg, "@brief Enum constant QtDebugMsg") +
gsi::enum_const ("QtWarningMsg", QtWarningMsg, "@brief Enum constant QtWarningMsg") +
gsi::enum_const ("QtCriticalMsg", QtCriticalMsg, "@brief Enum constant QtCriticalMsg") +
gsi::enum_const ("QtFatalMsg", QtFatalMsg, "@brief Enum constant QtFatalMsg") +
gsi::enum_const ("QtInfoMsg", QtInfoMsg, "@brief Enum constant QtInfoMsg") +
gsi::enum_const ("QtSystemMsg", QtSystemMsg, "@brief Enum constant QtSystemMsg"),
"@qt\n@brief This class represents the QtMsgType enum");
static gsi::QFlagsClass<QtMsgType > decl_QtMsgType_Enums ("QtCore", "QFlags_QtMsgType",
"@qt\n@brief This class represents the QFlags<QtMsgType> flag set");
}

View File

@ -340,6 +340,12 @@ qt_gsi::QtNativeClass<QOffscreenSurface> decl_QOffscreenSurface (qtdecl_QObject
methods_QOffscreenSurface (),
"@hide\n@alias QOffscreenSurface");
// Additional base classes
gsi::Class<QSurface> &qtdecl_QSurface ();
gsi::ClassExt<QOffscreenSurface> base_class_QSurface_in_QOffscreenSurface (qtdecl_QSurface ());
GSI_QTGUI_PUBLIC gsi::Class<QOffscreenSurface> &qtdecl_QOffscreenSurface () { return decl_QOffscreenSurface; }
}

View File

@ -322,6 +322,12 @@ qt_gsi::QtNativeClass<QPaintDeviceWindow> decl_QPaintDeviceWindow (qtdecl_QWindo
methods_QPaintDeviceWindow (),
"@hide\n@alias QPaintDeviceWindow");
// Additional base classes
gsi::Class<QPaintDevice> &qtdecl_QPaintDevice ();
gsi::ClassExt<QPaintDeviceWindow> base_class_QPaintDevice_in_QPaintDeviceWindow (qtdecl_QPaintDevice ());
GSI_QTGUI_PUBLIC gsi::Class<QPaintDeviceWindow> &qtdecl_QPaintDeviceWindow () { return decl_QPaintDeviceWindow; }
}

View File

@ -370,6 +370,12 @@ qt_gsi::QtNativeClass<QPdfWriter> decl_QPdfWriter (qtdecl_QObject (), "QtGui", "
methods_QPdfWriter (),
"@hide\n@alias QPdfWriter");
// Additional base classes
gsi::Class<QPagedPaintDevice> &qtdecl_QPagedPaintDevice ();
gsi::ClassExt<QPdfWriter> base_class_QPagedPaintDevice_in_QPdfWriter (qtdecl_QPagedPaintDevice ());
GSI_QTGUI_PUBLIC gsi::Class<QPdfWriter> &qtdecl_QPdfWriter () { return decl_QPdfWriter; }
}

View File

@ -2058,6 +2058,12 @@ qt_gsi::QtNativeClass<QWindow> decl_QWindow (qtdecl_QObject (), "QtGui", "QWindo
methods_QWindow (),
"@hide\n@alias QWindow");
// Additional base classes
gsi::Class<QSurface> &qtdecl_QSurface ();
gsi::ClassExt<QWindow> base_class_QSurface_in_QWindow (qtdecl_QSurface ());
GSI_QTGUI_PUBLIC gsi::Class<QWindow> &qtdecl_QWindow () { return decl_QWindow; }
}

View File

@ -256,6 +256,12 @@ qt_gsi::QtNativeClass<QAudioSystemPlugin> decl_QAudioSystemPlugin (qtdecl_QObjec
methods_QAudioSystemPlugin (),
"@hide\n@alias QAudioSystemPlugin");
// Additional base classes
gsi::Class<QAudioSystemFactoryInterface> &qtdecl_QAudioSystemFactoryInterface ();
gsi::ClassExt<QAudioSystemPlugin> base_class_QAudioSystemFactoryInterface_in_QAudioSystemPlugin (qtdecl_QAudioSystemFactoryInterface ());
GSI_QTMULTIMEDIA_PUBLIC gsi::Class<QAudioSystemPlugin> &qtdecl_QAudioSystemPlugin () { return decl_QAudioSystemPlugin; }
}

View File

@ -724,6 +724,12 @@ qt_gsi::QtNativeClass<QCameraImageCapture> decl_QCameraImageCapture (qtdecl_QObj
methods_QCameraImageCapture (),
"@hide\n@alias QCameraImageCapture");
// Additional base classes
gsi::Class<QMediaBindableInterface> &qtdecl_QMediaBindableInterface ();
gsi::ClassExt<QCameraImageCapture> base_class_QMediaBindableInterface_in_QCameraImageCapture (qtdecl_QMediaBindableInterface ());
GSI_QTMULTIMEDIA_PUBLIC gsi::Class<QCameraImageCapture> &qtdecl_QCameraImageCapture () { return decl_QCameraImageCapture; }
}

View File

@ -405,6 +405,12 @@ qt_gsi::QtNativeClass<QGraphicsVideoItem> decl_QGraphicsVideoItem (qtdecl_QGraph
methods_QGraphicsVideoItem (),
"@hide\n@alias QGraphicsVideoItem");
// Additional base classes
gsi::Class<QMediaBindableInterface> &qtdecl_QMediaBindableInterface ();
gsi::ClassExt<QGraphicsVideoItem> base_class_QMediaBindableInterface_in_QGraphicsVideoItem (qtdecl_QMediaBindableInterface ());
GSI_QTMULTIMEDIA_PUBLIC gsi::Class<QGraphicsVideoItem> &qtdecl_QGraphicsVideoItem () { return decl_QGraphicsVideoItem; }
}

View File

@ -952,6 +952,12 @@ qt_gsi::QtNativeClass<QMediaPlaylist> decl_QMediaPlaylist (qtdecl_QObject (), "Q
methods_QMediaPlaylist (),
"@hide\n@alias QMediaPlaylist");
// Additional base classes
gsi::Class<QMediaBindableInterface> &qtdecl_QMediaBindableInterface ();
gsi::ClassExt<QMediaPlaylist> base_class_QMediaBindableInterface_in_QMediaPlaylist (qtdecl_QMediaBindableInterface ());
GSI_QTMULTIMEDIA_PUBLIC gsi::Class<QMediaPlaylist> &qtdecl_QMediaPlaylist () { return decl_QMediaPlaylist; }
}

View File

@ -1159,6 +1159,12 @@ qt_gsi::QtNativeClass<QMediaRecorder> decl_QMediaRecorder (qtdecl_QObject (), "Q
methods_QMediaRecorder (),
"@hide\n@alias QMediaRecorder");
// Additional base classes
gsi::Class<QMediaBindableInterface> &qtdecl_QMediaBindableInterface ();
gsi::ClassExt<QMediaRecorder> base_class_QMediaBindableInterface_in_QMediaRecorder (qtdecl_QMediaBindableInterface ());
GSI_QTMULTIMEDIA_PUBLIC gsi::Class<QMediaRecorder> &qtdecl_QMediaRecorder () { return decl_QMediaRecorder; }
}

View File

@ -212,6 +212,12 @@ qt_gsi::QtNativeClass<QMediaServiceProviderPlugin> decl_QMediaServiceProviderPlu
methods_QMediaServiceProviderPlugin (),
"@hide\n@alias QMediaServiceProviderPlugin");
// Additional base classes
gsi::Class<QMediaServiceProviderFactoryInterface> &qtdecl_QMediaServiceProviderFactoryInterface ();
gsi::ClassExt<QMediaServiceProviderPlugin> base_class_QMediaServiceProviderFactoryInterface_in_QMediaServiceProviderPlugin (qtdecl_QMediaServiceProviderFactoryInterface ());
GSI_QTMULTIMEDIA_PUBLIC gsi::Class<QMediaServiceProviderPlugin> &qtdecl_QMediaServiceProviderPlugin () { return decl_QMediaServiceProviderPlugin; }
}

View File

@ -499,6 +499,12 @@ qt_gsi::QtNativeClass<QRadioData> decl_QRadioData (qtdecl_QObject (), "QtMultime
methods_QRadioData (),
"@hide\n@alias QRadioData");
// Additional base classes
gsi::Class<QMediaBindableInterface> &qtdecl_QMediaBindableInterface ();
gsi::ClassExt<QRadioData> base_class_QMediaBindableInterface_in_QRadioData (qtdecl_QMediaBindableInterface ());
GSI_QTMULTIMEDIA_PUBLIC gsi::Class<QRadioData> &qtdecl_QRadioData () { return decl_QRadioData; }
}

View File

@ -559,6 +559,12 @@ qt_gsi::QtNativeClass<QVideoWidget> decl_QVideoWidget (qtdecl_QWidget (), "QtMul
methods_QVideoWidget (),
"@hide\n@alias QVideoWidget");
// Additional base classes
gsi::Class<QMediaBindableInterface> &qtdecl_QMediaBindableInterface ();
gsi::ClassExt<QVideoWidget> base_class_QMediaBindableInterface_in_QVideoWidget (qtdecl_QMediaBindableInterface ());
GSI_QTMULTIMEDIA_PUBLIC gsi::Class<QVideoWidget> &qtdecl_QVideoWidget () { return decl_QVideoWidget; }
}

View File

@ -450,6 +450,12 @@ gsi::Class<QAccessibleWidget> decl_QAccessibleWidget (qtdecl_QAccessibleObject (
"@qt\n@brief Binding of QAccessibleWidget");
// Additional base classes
gsi::Class<QAccessibleActionInterface> &qtdecl_QAccessibleActionInterface ();
gsi::ClassExt<QAccessibleWidget> base_class_QAccessibleActionInterface_in_QAccessibleWidget (qtdecl_QAccessibleActionInterface ());
GSI_QTWIDGETS_PUBLIC gsi::Class<QAccessibleWidget> &qtdecl_QAccessibleWidget () { return decl_QAccessibleWidget; }
}

View File

@ -270,6 +270,12 @@ qt_gsi::QtNativeClass<QGraphicsObject> decl_QGraphicsObject (qtdecl_QObject (),
methods_QGraphicsObject (),
"@hide\n@alias QGraphicsObject");
// Additional base classes
gsi::Class<QGraphicsItem> &qtdecl_QGraphicsItem ();
gsi::ClassExt<QGraphicsObject> base_class_QGraphicsItem_in_QGraphicsObject (qtdecl_QGraphicsItem ());
GSI_QTWIDGETS_PUBLIC gsi::Class<QGraphicsObject> &qtdecl_QGraphicsObject () { return decl_QGraphicsObject; }
}

View File

@ -1359,6 +1359,12 @@ qt_gsi::QtNativeClass<QGraphicsWidget> decl_QGraphicsWidget (qtdecl_QGraphicsObj
methods_QGraphicsWidget (),
"@hide\n@alias QGraphicsWidget");
// Additional base classes
gsi::Class<QGraphicsLayoutItem> &qtdecl_QGraphicsLayoutItem ();
gsi::ClassExt<QGraphicsWidget> base_class_QGraphicsLayoutItem_in_QGraphicsWidget (qtdecl_QGraphicsLayoutItem ());
GSI_QTWIDGETS_PUBLIC gsi::Class<QGraphicsWidget> &qtdecl_QGraphicsWidget () { return decl_QGraphicsWidget; }
}

View File

@ -1020,6 +1020,12 @@ qt_gsi::QtNativeClass<QLayout> decl_QLayout (qtdecl_QObject (), "QtWidgets", "QL
methods_QLayout (),
"@hide\n@alias QLayout");
// Additional base classes
gsi::Class<QLayoutItem> &qtdecl_QLayoutItem ();
gsi::ClassExt<QLayout> base_class_QLayoutItem_in_QLayout (qtdecl_QLayoutItem ());
GSI_QTWIDGETS_PUBLIC gsi::Class<QLayout> &qtdecl_QLayout () { return decl_QLayout; }
}

View File

@ -4827,6 +4827,12 @@ qt_gsi::QtNativeClass<QWidget> decl_QWidget (qtdecl_QObject (), "QtWidgets", "QW
methods_QWidget (),
"@hide\n@alias QWidget");
// Additional base classes
gsi::Class<QPaintDevice> &qtdecl_QPaintDevice ();
gsi::ClassExt<QWidget> base_class_QPaintDevice_in_QWidget (qtdecl_QPaintDevice ());
GSI_QTWIDGETS_PUBLIC gsi::Class<QWidget> &qtdecl_QWidget () { return decl_QWidget; }
}

View File

@ -777,6 +777,20 @@ gsi::Class<QXmlDefaultHandler> decl_QXmlDefaultHandler (qtdecl_QXmlContentHandle
methods_QXmlDefaultHandler (),
"@hide\n@alias QXmlDefaultHandler");
// Additional base classes
gsi::Class<QXmlErrorHandler> &qtdecl_QXmlErrorHandler ();
gsi::Class<QXmlDTDHandler> &qtdecl_QXmlDTDHandler ();
gsi::Class<QXmlEntityResolver> &qtdecl_QXmlEntityResolver ();
gsi::Class<QXmlLexicalHandler> &qtdecl_QXmlLexicalHandler ();
gsi::Class<QXmlDeclHandler> &qtdecl_QXmlDeclHandler ();
gsi::ClassExt<QXmlDefaultHandler> base_class_QXmlErrorHandler_in_QXmlDefaultHandler (qtdecl_QXmlErrorHandler ());
gsi::ClassExt<QXmlDefaultHandler> base_class_QXmlDTDHandler_in_QXmlDefaultHandler (qtdecl_QXmlDTDHandler ());
gsi::ClassExt<QXmlDefaultHandler> base_class_QXmlEntityResolver_in_QXmlDefaultHandler (qtdecl_QXmlEntityResolver ());
gsi::ClassExt<QXmlDefaultHandler> base_class_QXmlLexicalHandler_in_QXmlDefaultHandler (qtdecl_QXmlLexicalHandler ());
gsi::ClassExt<QXmlDefaultHandler> base_class_QXmlDeclHandler_in_QXmlDefaultHandler (qtdecl_QXmlDeclHandler ());
GSI_QTXML_PUBLIC gsi::Class<QXmlDefaultHandler> &qtdecl_QXmlDefaultHandler () { return decl_QXmlDefaultHandler; }
}