init
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
# Automatically generated configuration for PyQt5.QtMacExtras.
|
||||
|
||||
sip-version = "6.8.6"
|
||||
sip-abi-version = "12.15"
|
||||
module-tags = ["Qt_5_15_14", "WS_MACX"]
|
||||
module-disabled-features = []
|
||||
@@ -0,0 +1,50 @@
|
||||
// This is the SIP interface definition for the QtMacExtras module of PyQt v5.
|
||||
//
|
||||
// Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
|
||||
//
|
||||
// This file is part of PyQt5.
|
||||
//
|
||||
// This file may be used under the terms of the GNU General Public License
|
||||
// version 3.0 as published by the Free Software Foundation and appearing in
|
||||
// the file LICENSE included in the packaging of this file. Please review the
|
||||
// following information to ensure the GNU General Public License version 3.0
|
||||
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
|
||||
//
|
||||
// If you do not wish to use this file under the terms of the GPL version 3.0
|
||||
// then you may purchase a commercial license. For more information contact
|
||||
// info@riverbankcomputing.com.
|
||||
//
|
||||
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
|
||||
%Module(name=PyQt5.QtMacExtras, keyword_arguments="Optional", use_limited_api=True)
|
||||
|
||||
%Import QtCore/QtCoremod.sip
|
||||
%Import QtGui/QtGuimod.sip
|
||||
|
||||
%Copying
|
||||
Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
|
||||
|
||||
This file is part of PyQt5.
|
||||
|
||||
This file may be used under the terms of the GNU General Public License
|
||||
version 3.0 as published by the Free Software Foundation and appearing in
|
||||
the file LICENSE included in the packaging of this file. Please review the
|
||||
following information to ensure the GNU General Public License version 3.0
|
||||
requirements will be met: http://www.gnu.org/copyleft/gpl.html.
|
||||
|
||||
If you do not wish to use this file under the terms of the GPL version 3.0
|
||||
then you may purchase a commercial license. For more information contact
|
||||
info@riverbankcomputing.com.
|
||||
|
||||
This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
%End
|
||||
|
||||
%DefaultSupertype sip.simplewrapper
|
||||
|
||||
%Include qmacpasteboardmime.sip
|
||||
%Include qmactoolbar.sip
|
||||
%Include qmactoolbaritem.sip
|
||||
%Include qtmac.sip
|
||||
@@ -0,0 +1,64 @@
|
||||
// This is the SIP interface definition for QMacPasteboardMime.
|
||||
//
|
||||
// Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
|
||||
//
|
||||
// This file is part of PyQt5.
|
||||
//
|
||||
// This file may be used under the terms of the GNU General Public License
|
||||
// version 3.0 as published by the Free Software Foundation and appearing in
|
||||
// the file LICENSE included in the packaging of this file. Please review the
|
||||
// following information to ensure the GNU General Public License version 3.0
|
||||
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
|
||||
//
|
||||
// If you do not wish to use this file under the terms of the GPL version 3.0
|
||||
// then you may purchase a commercial license. For more information contact
|
||||
// info@riverbankcomputing.com.
|
||||
//
|
||||
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
|
||||
%If (Qt_5_2_0 -)
|
||||
|
||||
%If (PyQt_MacOSXOnly)
|
||||
|
||||
class QMacPasteboardMime
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <qmacpasteboardmime.h>
|
||||
%End
|
||||
|
||||
public:
|
||||
enum QMacPasteboardMimeType
|
||||
{
|
||||
MIME_DND,
|
||||
MIME_CLIP,
|
||||
MIME_QT_CONVERTOR,
|
||||
MIME_QT3_CONVERTOR,
|
||||
MIME_ALL,
|
||||
};
|
||||
|
||||
explicit QMacPasteboardMime(char t /PyInt/);
|
||||
virtual ~QMacPasteboardMime();
|
||||
|
||||
virtual QString convertorName() = 0;
|
||||
virtual bool canConvert(const QString &mime, QString flav) = 0;
|
||||
virtual QString mimeFor(QString flav) = 0;
|
||||
virtual QString flavorFor(const QString &mime) = 0;
|
||||
virtual QVariant convertToMime(const QString &mime, QList<QByteArray> data,
|
||||
QString flav) = 0;
|
||||
virtual QList<QByteArray> convertFromMime(const QString &mime,
|
||||
QVariant data, QString flav) = 0;
|
||||
virtual int count(QMimeData *mimeData);
|
||||
};
|
||||
|
||||
|
||||
%ModuleHeaderCode
|
||||
#include <qmacpasteboardmime.h>
|
||||
%End
|
||||
|
||||
void qRegisterDraggedTypes(const QStringList &types);
|
||||
|
||||
%End
|
||||
|
||||
%End
|
||||
@@ -0,0 +1,67 @@
|
||||
// This is the SIP interface definition for QMacToolBar.
|
||||
//
|
||||
// Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
|
||||
//
|
||||
// This file is part of PyQt5.
|
||||
//
|
||||
// This file may be used under the terms of the GNU General Public License
|
||||
// version 3.0 as published by the Free Software Foundation and appearing in
|
||||
// the file LICENSE included in the packaging of this file. Please review the
|
||||
// following information to ensure the GNU General Public License version 3.0
|
||||
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
|
||||
//
|
||||
// If you do not wish to use this file under the terms of the GPL version 3.0
|
||||
// then you may purchase a commercial license. For more information contact
|
||||
// info@riverbankcomputing.com.
|
||||
//
|
||||
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
|
||||
%If (Qt_5_3_0 -)
|
||||
|
||||
%If (PyQt_MacOSXOnly)
|
||||
|
||||
class NSToolbar;
|
||||
|
||||
class QMacToolBar : QObject
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <qmactoolbar.h>
|
||||
%End
|
||||
|
||||
public:
|
||||
explicit QMacToolBar(QObject *parent /TransferThis/ = 0);
|
||||
QMacToolBar(const QString &identifier, QObject *parent /TransferThis/ = 0);
|
||||
~QMacToolBar();
|
||||
|
||||
QMacToolBarItem *addItem(const QIcon &icon, const QString &text);
|
||||
QMacToolBarItem *addAllowedItem(const QIcon &icon, const QString &text);
|
||||
void addSeparator();
|
||||
|
||||
void setItems(QList<QMacToolBarItem *> &items);
|
||||
QList<QMacToolBarItem *> items();
|
||||
void setAllowedItems(QList<QMacToolBarItem *> &allowedItems);
|
||||
QList<QMacToolBarItem *> allowedItems();
|
||||
|
||||
void attachToWindow(QWindow *window);
|
||||
void detachFromWindow();
|
||||
|
||||
NSToolbar *nativeToolbar() const;
|
||||
|
||||
private:
|
||||
QMacToolBar(const QMacToolBar &);
|
||||
|
||||
%ConvertToSubClassCode
|
||||
if (sipCpp->inherits(sipName_QMacToolBar))
|
||||
sipType = sipType_QMacToolBar;
|
||||
else if (sipCpp->inherits(sipName_QMacToolBarItem))
|
||||
sipType = sipType_QMacToolBarItem;
|
||||
else
|
||||
sipType = 0;
|
||||
%End
|
||||
};
|
||||
|
||||
%End
|
||||
|
||||
%End
|
||||
@@ -0,0 +1,67 @@
|
||||
// This is the SIP interface definition for QMacToolBarItem.
|
||||
//
|
||||
// Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
|
||||
//
|
||||
// This file is part of PyQt5.
|
||||
//
|
||||
// This file may be used under the terms of the GNU General Public License
|
||||
// version 3.0 as published by the Free Software Foundation and appearing in
|
||||
// the file LICENSE included in the packaging of this file. Please review the
|
||||
// following information to ensure the GNU General Public License version 3.0
|
||||
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
|
||||
//
|
||||
// If you do not wish to use this file under the terms of the GPL version 3.0
|
||||
// then you may purchase a commercial license. For more information contact
|
||||
// info@riverbankcomputing.com.
|
||||
//
|
||||
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
|
||||
%If (Qt_5_3_0 -)
|
||||
|
||||
%If (PyQt_MacOSXOnly)
|
||||
|
||||
class NSToolbarItem;
|
||||
|
||||
class QMacToolBarItem : QObject
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <qmactoolbaritem.h>
|
||||
%End
|
||||
|
||||
public:
|
||||
enum StandardItem
|
||||
{
|
||||
NoStandardItem,
|
||||
Space,
|
||||
FlexibleSpace
|
||||
};
|
||||
|
||||
QMacToolBarItem(QObject *parent /TransferThis/ = 0);
|
||||
virtual ~QMacToolBarItem();
|
||||
|
||||
bool selectable() const;
|
||||
void setSelectable(bool selectable);
|
||||
|
||||
StandardItem standardItem() const;
|
||||
void setStandardItem(StandardItem standardItem);
|
||||
|
||||
QString text() const;
|
||||
void setText(const QString &text);
|
||||
|
||||
QIcon icon() const;
|
||||
void setIcon(const QIcon &icon);
|
||||
|
||||
NSToolbarItem *nativeToolBarItem() const;
|
||||
|
||||
signals:
|
||||
void activated();
|
||||
|
||||
private:
|
||||
QMacToolBarItem(const QMacToolBarItem &);
|
||||
};
|
||||
|
||||
%End
|
||||
|
||||
%End
|
||||
@@ -0,0 +1,42 @@
|
||||
// This is the SIP interface definition for QMacToolBar.
|
||||
//
|
||||
// Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
|
||||
//
|
||||
// This file is part of PyQt5.
|
||||
//
|
||||
// This file may be used under the terms of the GNU General Public License
|
||||
// version 3.0 as published by the Free Software Foundation and appearing in
|
||||
// the file LICENSE included in the packaging of this file. Please review the
|
||||
// following information to ensure the GNU General Public License version 3.0
|
||||
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
|
||||
//
|
||||
// If you do not wish to use this file under the terms of the GPL version 3.0
|
||||
// then you may purchase a commercial license. For more information contact
|
||||
// info@riverbankcomputing.com.
|
||||
//
|
||||
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
|
||||
%If (Qt_5_2_0 -)
|
||||
|
||||
namespace QtMac
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <QtMac>
|
||||
%End
|
||||
|
||||
%If (PyQt_MacOSXOnly)
|
||||
void setBadgeLabelText(const QString &text);
|
||||
QString badgeLabelText();
|
||||
|
||||
bool isMainWindow(QWindow *window);
|
||||
%End
|
||||
|
||||
%If (!PyQt_MacOSXOnly)
|
||||
void setApplicationIconBadgeNumber(int number);
|
||||
int applicationIconBadgeNumber();
|
||||
%End
|
||||
};
|
||||
|
||||
%End
|
||||
Reference in New Issue
Block a user