mit neuen venv und exe-Files
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
# Automatically generated configuration for PyQt5.QtWinExtras.
|
||||
|
||||
sip-version = "6.8.6"
|
||||
sip-abi-version = "12.15"
|
||||
module-tags = ["Qt_5_15_2", "WS_WIN"]
|
||||
module-disabled-features = []
|
||||
@@ -0,0 +1,53 @@
|
||||
// This is the SIP interface definition for the QtWinExtras 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.QtWinExtras, keyword_arguments="Optional", use_limited_api=True)
|
||||
|
||||
%Import QtWidgets/QtWidgetsmod.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 qwinfunctions.sip
|
||||
%Include qwinjumplist.sip
|
||||
%Include qwinjumplistcategory.sip
|
||||
%Include qwinjumplistitem.sip
|
||||
%Include qwintaskbarbutton.sip
|
||||
%Include qwintaskbarprogress.sip
|
||||
%Include qwinthumbnailtoolbar.sip
|
||||
%Include qwinthumbnailtoolbutton.sip
|
||||
@@ -0,0 +1,122 @@
|
||||
// This is the SIP interface definition for QtWin.
|
||||
//
|
||||
// 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 -)
|
||||
|
||||
typedef struct HBITMAP__ *HBITMAP;
|
||||
typedef struct HDC__ *HDC;
|
||||
typedef struct HICON__ *HICON;
|
||||
typedef long HRESULT;
|
||||
typedef struct HRGN__ *HRGN;
|
||||
|
||||
|
||||
namespace QtWin
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <qwinfunctions.h>
|
||||
%End
|
||||
|
||||
enum HBitmapFormat
|
||||
{
|
||||
HBitmapNoAlpha,
|
||||
HBitmapPremultipliedAlpha,
|
||||
HBitmapAlpha
|
||||
};
|
||||
|
||||
enum WindowFlip3DPolicy
|
||||
{
|
||||
FlipDefault,
|
||||
FlipExcludeBelow,
|
||||
FlipExcludeAbove
|
||||
};
|
||||
|
||||
HBITMAP createMask(const QBitmap &bitmap);
|
||||
HBITMAP toHBITMAP(const QPixmap &p,
|
||||
QtWin::HBitmapFormat format = QtWin::HBitmapNoAlpha);
|
||||
QPixmap fromHBITMAP(HBITMAP bitmap,
|
||||
QtWin::HBitmapFormat format = QtWin::HBitmapNoAlpha);
|
||||
HICON toHICON(const QPixmap &p);
|
||||
QImage imageFromHBITMAP(HDC hdc, HBITMAP bitmap, int width, int height);
|
||||
QPixmap fromHICON(HICON icon);
|
||||
HRGN toHRGN(const QRegion ®ion);
|
||||
QRegion fromHRGN(HRGN hrgn);
|
||||
|
||||
QString stringFromHresult(HRESULT hresult);
|
||||
QString errorStringFromHresult(HRESULT hresult);
|
||||
|
||||
QColor colorizationColor(bool *opaqueBlend = 0);
|
||||
QColor realColorizationColor();
|
||||
|
||||
void setWindowExcludedFromPeek(QWindow *window, bool exclude);
|
||||
bool isWindowExcludedFromPeek(QWindow *window);
|
||||
void setWindowDisallowPeek(QWindow *window, bool disallow);
|
||||
bool isWindowPeekDisallowed(QWindow *window);
|
||||
void setWindowFlip3DPolicy(QWindow *window,
|
||||
QtWin::WindowFlip3DPolicy policy);
|
||||
QtWin::WindowFlip3DPolicy windowFlip3DPolicy(QWindow *);
|
||||
|
||||
void extendFrameIntoClientArea(QWindow *window, int left, int top,
|
||||
int right, int bottom);
|
||||
void extendFrameIntoClientArea(QWindow *window, const QMargins &margins);
|
||||
void resetExtendedFrame(QWindow *window);
|
||||
|
||||
void enableBlurBehindWindow(QWindow *window, const QRegion ®ion);
|
||||
void enableBlurBehindWindow(QWindow *window);
|
||||
void disableBlurBehindWindow(QWindow *window);
|
||||
|
||||
bool isCompositionEnabled();
|
||||
void setCompositionEnabled(bool enabled);
|
||||
bool isCompositionOpaque();
|
||||
|
||||
void setCurrentProcessExplicitAppUserModelID(const QString &id);
|
||||
|
||||
void markFullscreenWindow(QWindow *, bool fullscreen = true);
|
||||
|
||||
void taskbarActivateTab(QWindow *);
|
||||
void taskbarActivateTabAlt(QWindow *);
|
||||
void taskbarAddTab(QWindow *);
|
||||
void taskbarDeleteTab(QWindow *);
|
||||
|
||||
void setWindowExcludedFromPeek(QWidget *window, bool exclude);
|
||||
bool isWindowExcludedFromPeek(QWidget *window);
|
||||
void setWindowDisallowPeek(QWidget *window, bool disallow);
|
||||
bool isWindowPeekDisallowed(QWidget *window);
|
||||
void setWindowFlip3DPolicy(QWidget *window,
|
||||
QtWin::WindowFlip3DPolicy policy);
|
||||
QtWin::WindowFlip3DPolicy windowFlip3DPolicy(QWidget *window);
|
||||
|
||||
void extendFrameIntoClientArea(QWidget *window, const QMargins &margins);
|
||||
void extendFrameIntoClientArea(QWidget *window, int left, int top,
|
||||
int right, int bottom);
|
||||
void resetExtendedFrame(QWidget *window);
|
||||
|
||||
void enableBlurBehindWindow(QWidget *window, const QRegion ®ion);
|
||||
void enableBlurBehindWindow(QWidget *window);
|
||||
void disableBlurBehindWindow(QWidget *window);
|
||||
|
||||
void markFullscreenWindow(QWidget *window, bool fullscreen = true);
|
||||
|
||||
void taskbarActivateTab(QWidget *window);
|
||||
void taskbarActivateTabAlt(QWidget *window);
|
||||
void taskbarAddTab(QWidget *window);
|
||||
void taskbarDeleteTab(QWidget *window);
|
||||
};
|
||||
|
||||
%End
|
||||
@@ -0,0 +1,84 @@
|
||||
// This is the SIP interface definition for QWinJumpList.
|
||||
//
|
||||
// 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 -)
|
||||
|
||||
class QWinJumpList : public QObject
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <qwinjumplist.h>
|
||||
%End
|
||||
|
||||
%ConvertToSubClassCode
|
||||
static struct class_graph {
|
||||
const char *name;
|
||||
sipTypeDef **type;
|
||||
int yes, no;
|
||||
} graph[] = {
|
||||
{sipName_QWinThumbnailToolBar, &sipType_QWinThumbnailToolBar, -1, 1},
|
||||
{sipName_QWinJumpList, &sipType_QWinJumpList, -1, 2},
|
||||
{sipName_QWinTaskbarButton, &sipType_QWinTaskbarButton, -1, 3},
|
||||
{sipName_QWinThumbnailToolButton, &sipType_QWinThumbnailToolButton, -1, 4},
|
||||
{sipName_QWinTaskbarProgress, &sipType_QWinTaskbarProgress, -1, -1},
|
||||
};
|
||||
|
||||
int i = 0;
|
||||
|
||||
sipType = NULL;
|
||||
|
||||
do
|
||||
{
|
||||
struct class_graph *cg = &graph[i];
|
||||
|
||||
if (cg->name != NULL && sipCpp->inherits(cg->name))
|
||||
{
|
||||
sipType = *cg->type;
|
||||
i = cg->yes;
|
||||
}
|
||||
else
|
||||
i = cg->no;
|
||||
}
|
||||
while (i >= 0);
|
||||
%End
|
||||
|
||||
public:
|
||||
explicit QWinJumpList(QObject *parent /TransferThis/ = 0);
|
||||
~QWinJumpList();
|
||||
|
||||
QString identifier() const;
|
||||
void setIdentifier(const QString &identifier);
|
||||
|
||||
QWinJumpListCategory *recent() const;
|
||||
QWinJumpListCategory *frequent() const;
|
||||
QWinJumpListCategory *tasks() const;
|
||||
|
||||
QList<QWinJumpListCategory *> categories() const;
|
||||
void addCategory(QWinJumpListCategory *category /Transfer/);
|
||||
QWinJumpListCategory *addCategory(const QString &title,
|
||||
const QList<QWinJumpListItem *> items /Transfer/ = QList<QWinJumpListItem *>());
|
||||
|
||||
public slots:
|
||||
void clear();
|
||||
|
||||
private:
|
||||
QWinJumpList(const QWinJumpList &);
|
||||
};
|
||||
|
||||
%End
|
||||
@@ -0,0 +1,69 @@
|
||||
// This is the SIP interface definition for QWinJumpListCategory.
|
||||
//
|
||||
// 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 -)
|
||||
|
||||
class QWinJumpListCategory /Supertype=sip.wrapper/
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <qwinjumplistcategory.h>
|
||||
%End
|
||||
|
||||
public:
|
||||
enum Type
|
||||
{
|
||||
Custom,
|
||||
Recent,
|
||||
Frequent,
|
||||
Tasks
|
||||
};
|
||||
|
||||
explicit QWinJumpListCategory(const QString &title = QString());
|
||||
~QWinJumpListCategory();
|
||||
|
||||
Type type() const;
|
||||
|
||||
bool isVisible() const;
|
||||
void setVisible(bool visible);
|
||||
|
||||
QString title() const;
|
||||
void setTitle(const QString &title);
|
||||
|
||||
int count() const;
|
||||
bool isEmpty() const;
|
||||
QList<QWinJumpListItem *> items() const;
|
||||
|
||||
void addItem(QWinJumpListItem *item /Transfer/);
|
||||
QWinJumpListItem *addDestination(const QString &filePath);
|
||||
QWinJumpListItem *addLink(const QString &title,
|
||||
const QString &executablePath,
|
||||
const QStringList &arguments = QStringList());
|
||||
QWinJumpListItem *addLink(const QIcon &icon, const QString &title,
|
||||
const QString &executablePath,
|
||||
const QStringList &arguments = QStringList());
|
||||
QWinJumpListItem *addSeparator();
|
||||
|
||||
void clear();
|
||||
|
||||
private:
|
||||
QWinJumpListCategory(const QWinJumpListCategory &);
|
||||
};
|
||||
|
||||
%End
|
||||
@@ -0,0 +1,59 @@
|
||||
// This is the SIP interface definition for QWinJumpListItem.
|
||||
//
|
||||
// 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 -)
|
||||
|
||||
class QWinJumpListItem /Supertype=sip.wrapper/
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <qwinjumplistitem.h>
|
||||
%End
|
||||
|
||||
public:
|
||||
enum Type
|
||||
{
|
||||
Destination,
|
||||
Link,
|
||||
Separator
|
||||
};
|
||||
|
||||
explicit QWinJumpListItem(Type type);
|
||||
~QWinJumpListItem();
|
||||
|
||||
void setType(Type type);
|
||||
Type type() const;
|
||||
void setFilePath(const QString &filePath);
|
||||
QString filePath() const;
|
||||
void setWorkingDirectory(const QString &workingDirectory);
|
||||
QString workingDirectory() const;
|
||||
void setIcon(const QIcon &icon);
|
||||
QIcon icon() const;
|
||||
void setTitle(const QString &title);
|
||||
QString title() const;
|
||||
void setDescription(const QString &description);
|
||||
QString description() const;
|
||||
void setArguments(const QStringList &arguments);
|
||||
QStringList arguments() const;
|
||||
|
||||
private:
|
||||
QWinJumpListItem(const QWinJumpListItem &);
|
||||
};
|
||||
|
||||
%End
|
||||
@@ -0,0 +1,53 @@
|
||||
// This is the SIP interface definition for QWinTaskbarButton.
|
||||
//
|
||||
// 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 -)
|
||||
|
||||
class QWinTaskbarButton : public QObject
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <qwintaskbarbutton.h>
|
||||
%End
|
||||
|
||||
public:
|
||||
explicit QWinTaskbarButton(QObject *parent /TransferThis/ = 0);
|
||||
~QWinTaskbarButton();
|
||||
|
||||
void setWindow(QWindow *window);
|
||||
QWindow *window() const;
|
||||
|
||||
QIcon overlayIcon() const;
|
||||
QString overlayAccessibleDescription() const;
|
||||
|
||||
QWinTaskbarProgress *progress() const;
|
||||
|
||||
bool eventFilter(QObject *, QEvent *);
|
||||
|
||||
public slots:
|
||||
void setOverlayIcon(const QIcon &icon);
|
||||
void setOverlayAccessibleDescription(const QString &description);
|
||||
|
||||
void clearOverlayIcon();
|
||||
|
||||
private:
|
||||
QWinTaskbarButton(const QWinTaskbarButton &);
|
||||
};
|
||||
|
||||
%End
|
||||
@@ -0,0 +1,64 @@
|
||||
// This is the SIP interface definition for QWinTaskbarProgress.
|
||||
//
|
||||
// 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 -)
|
||||
|
||||
class QWinTaskbarProgress : public QObject
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <qwintaskbarprogress.h>
|
||||
%End
|
||||
|
||||
public:
|
||||
explicit QWinTaskbarProgress(QObject *parent /TransferThis/= 0);
|
||||
~QWinTaskbarProgress();
|
||||
|
||||
int value() const;
|
||||
int minimum() const;
|
||||
int maximum() const;
|
||||
bool isVisible() const;
|
||||
bool isPaused() const;
|
||||
bool isStopped() const;
|
||||
|
||||
public slots:
|
||||
void setValue(int value);
|
||||
void setMinimum(int minimum);
|
||||
void setMaximum(int maximum);
|
||||
void setRange(int minimum, int maximum);
|
||||
void reset();
|
||||
void show();
|
||||
void hide();
|
||||
void setVisible(bool visible);
|
||||
void pause();
|
||||
void resume();
|
||||
void setPaused(bool paused);
|
||||
void stop();
|
||||
|
||||
signals:
|
||||
void valueChanged(int value);
|
||||
void minimumChanged(int minimum);
|
||||
void maximumChanged(int maximum);
|
||||
void visibilityChanged(bool visible);
|
||||
|
||||
private:
|
||||
QWinTaskbarProgress(const QWinTaskbarProgress &);
|
||||
};
|
||||
|
||||
%End
|
||||
@@ -0,0 +1,67 @@
|
||||
// This is the SIP interface definition for QWinThumbnailToolBar.
|
||||
//
|
||||
// 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 -)
|
||||
|
||||
class QWinThumbnailToolBar : public QObject
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <qwinthumbnailtoolbar.h>
|
||||
%End
|
||||
|
||||
public:
|
||||
explicit QWinThumbnailToolBar(QObject *parent /TransferThis/ = 0);
|
||||
~QWinThumbnailToolBar();
|
||||
|
||||
void setWindow(QWindow *window);
|
||||
QWindow *window() const;
|
||||
|
||||
void addButton(QWinThumbnailToolButton *button);
|
||||
void removeButton(QWinThumbnailToolButton *button);
|
||||
void setButtons(const QList<QWinThumbnailToolButton *> &buttons);
|
||||
QList<QWinThumbnailToolButton *> buttons() const;
|
||||
int count() const;
|
||||
|
||||
%If (Qt_5_4_0 -)
|
||||
bool iconicPixmapNotificationsEnabled() const;
|
||||
void setIconicPixmapNotificationsEnabled(bool enabled);
|
||||
|
||||
QPixmap iconicThumbnailPixmap() const;
|
||||
QPixmap iconicLivePreviewPixmap() const;
|
||||
%End
|
||||
|
||||
public slots:
|
||||
void clear();
|
||||
%If (Qt_5_4_0 -)
|
||||
void setIconicThumbnailPixmap(const QPixmap &);
|
||||
void setIconicLivePreviewPixmap(const QPixmap &);
|
||||
%End
|
||||
|
||||
signals:
|
||||
%If (Qt_5_4_0 -)
|
||||
void iconicThumbnailPixmapRequested();
|
||||
void iconicLivePreviewPixmapRequested();
|
||||
%End
|
||||
|
||||
private:
|
||||
QWinThumbnailToolBar(const QWinThumbnailToolBar &);
|
||||
};
|
||||
|
||||
%End
|
||||
@@ -0,0 +1,58 @@
|
||||
// This is the SIP interface definition for QWinThumbnailToolButton.
|
||||
//
|
||||
// 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 -)
|
||||
|
||||
class QWinThumbnailToolButton : public QObject
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <qwinthumbnailtoolbutton.h>
|
||||
%End
|
||||
|
||||
public:
|
||||
explicit QWinThumbnailToolButton(QObject *parent /TransferThis/ = 0);
|
||||
~QWinThumbnailToolButton();
|
||||
|
||||
void setToolTip(const QString &toolTip);
|
||||
QString toolTip() const;
|
||||
void setIcon(const QIcon &icon);
|
||||
QIcon icon() const;
|
||||
void setEnabled(bool enabled);
|
||||
bool isEnabled() const;
|
||||
void setInteractive(bool interactive);
|
||||
bool isInteractive() const;
|
||||
void setVisible(bool visible);
|
||||
bool isVisible() const;
|
||||
void setDismissOnClick(bool dismiss);
|
||||
bool dismissOnClick() const;
|
||||
void setFlat(bool flat);
|
||||
bool isFlat() const;
|
||||
|
||||
public slots:
|
||||
void click();
|
||||
|
||||
signals:
|
||||
void clicked();
|
||||
|
||||
private:
|
||||
QWinThumbnailToolButton(const QWinThumbnailToolButton &);
|
||||
};
|
||||
|
||||
%End
|
||||
Reference in New Issue
Block a user