PythonQtWrapper_QWizard.h
156 lines
| 7.3 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QWIZARD_H | ||
#define PYTHONQTWRAPPER_QWIZARD_H | ||||
#include <qwizard.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qabstractbutton.h> | ||||
#include <qaction.h> | ||||
#include <qbitmap.h> | ||||
#include <qbytearray.h> | ||||
#include <qcoreevent.h> | ||||
#include <qcursor.h> | ||||
#include <qevent.h> | ||||
#include <qfont.h> | ||||
#include <qicon.h> | ||||
#include <qinputcontext.h> | ||||
#include <qkeysequence.h> | ||||
#include <qlayout.h> | ||||
#include <qlist.h> | ||||
#include <qlocale.h> | ||||
#include <qobject.h> | ||||
#include <qpaintdevice.h> | ||||
#include <qpaintengine.h> | ||||
#include <qpainter.h> | ||||
#include <qpalette.h> | ||||
#include <qpixmap.h> | ||||
#include <qpoint.h> | ||||
#include <qrect.h> | ||||
#include <qregion.h> | ||||
#include <qsize.h> | ||||
#include <qsizepolicy.h> | ||||
#include <qstyle.h> | ||||
#include <qwidget.h> | ||||
#include <qwizard.h> | ||||
florianlink
|
r24 | class PythonQtShell_QWizard : public QWizard | ||
{ | ||||
public: | ||||
PythonQtShell_QWizard(QWidget* parent = 0, Qt::WindowFlags flags = 0):QWizard(parent, flags),_wrapper(NULL) {}; | ||||
virtual void accept(); | ||||
virtual void actionEvent(QActionEvent* arg__1); | ||||
virtual void changeEvent(QEvent* arg__1); | ||||
virtual void childEvent(QChildEvent* arg__1); | ||||
virtual void cleanupPage(int id); | ||||
virtual void closeEvent(QCloseEvent* arg__1); | ||||
virtual void contextMenuEvent(QContextMenuEvent* arg__1); | ||||
virtual void customEvent(QEvent* arg__1); | ||||
virtual int devType() const; | ||||
virtual void done(int result); | ||||
virtual void dragEnterEvent(QDragEnterEvent* arg__1); | ||||
virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); | ||||
virtual void dragMoveEvent(QDragMoveEvent* arg__1); | ||||
virtual void dropEvent(QDropEvent* arg__1); | ||||
virtual void enterEvent(QEvent* arg__1); | ||||
virtual bool event(QEvent* event); | ||||
virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); | ||||
virtual void focusInEvent(QFocusEvent* arg__1); | ||||
virtual bool focusNextPrevChild(bool next); | ||||
virtual void focusOutEvent(QFocusEvent* arg__1); | ||||
virtual int heightForWidth(int arg__1) const; | ||||
virtual void hideEvent(QHideEvent* arg__1); | ||||
virtual void initializePage(int id); | ||||
virtual void inputMethodEvent(QInputMethodEvent* arg__1); | ||||
virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; | ||||
virtual void keyPressEvent(QKeyEvent* arg__1); | ||||
virtual void keyReleaseEvent(QKeyEvent* arg__1); | ||||
virtual void languageChange(); | ||||
virtual void leaveEvent(QEvent* arg__1); | ||||
virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; | ||||
virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); | ||||
virtual void mouseMoveEvent(QMouseEvent* arg__1); | ||||
virtual void mousePressEvent(QMouseEvent* arg__1); | ||||
virtual void mouseReleaseEvent(QMouseEvent* arg__1); | ||||
virtual void moveEvent(QMoveEvent* arg__1); | ||||
virtual int nextId() const; | ||||
virtual QPaintEngine* paintEngine() const; | ||||
virtual void paintEvent(QPaintEvent* event); | ||||
virtual void reject(); | ||||
virtual void resizeEvent(QResizeEvent* event); | ||||
virtual void showEvent(QShowEvent* arg__1); | ||||
virtual void tabletEvent(QTabletEvent* arg__1); | ||||
virtual void timerEvent(QTimerEvent* arg__1); | ||||
virtual bool validateCurrentPage(); | ||||
virtual void wheelEvent(QWheelEvent* arg__1); | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
class PythonQtPublicPromoter_QWizard : public QWizard | ||||
{ public: | ||||
florianlink
|
r73 | inline void promoted_paintEvent(QPaintEvent* event) { QWizard::paintEvent(event); } | ||
inline void promoted_initializePage(int id) { QWizard::initializePage(id); } | ||||
florianlink
|
r28 | inline void promoted_cleanupPage(int id) { QWizard::cleanupPage(id); } | ||
inline bool promoted_event(QEvent* event) { return QWizard::event(event); } | ||||
florianlink
|
r73 | inline void promoted_resizeEvent(QResizeEvent* event) { QWizard::resizeEvent(event); } | ||
inline void promoted_done(int result) { QWizard::done(result); } | ||||
florianlink
|
r28 | inline int promoted_nextId() const { return QWizard::nextId(); } | ||
florianlink
|
r73 | inline bool promoted_validateCurrentPage() { return QWizard::validateCurrentPage(); } | ||
florianlink
|
r24 | }; | ||
florianlink
|
r13 | class PythonQtWrapper_QWizard : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
Q_ENUMS(WizardButton WizardPixmap ) | ||||
enum WizardButton{ | ||||
BackButton = QWizard::BackButton, NextButton = QWizard::NextButton, CommitButton = QWizard::CommitButton, FinishButton = QWizard::FinishButton, CancelButton = QWizard::CancelButton, HelpButton = QWizard::HelpButton, CustomButton1 = QWizard::CustomButton1, CustomButton2 = QWizard::CustomButton2, CustomButton3 = QWizard::CustomButton3, Stretch = QWizard::Stretch, NoButton = QWizard::NoButton, NStandardButtons = QWizard::NStandardButtons, NButtons = QWizard::NButtons}; | ||||
enum WizardPixmap{ | ||||
WatermarkPixmap = QWizard::WatermarkPixmap, LogoPixmap = QWizard::LogoPixmap, BannerPixmap = QWizard::BannerPixmap, BackgroundPixmap = QWizard::BackgroundPixmap, NPixmaps = QWizard::NPixmaps}; | ||||
public slots: | ||||
QWizard* new_QWizard(QWidget* parent = 0, Qt::WindowFlags flags = 0); | ||||
void delete_QWizard(QWizard* obj) { delete obj; } | ||||
florianlink
|
r28 | QPixmap pixmap(QWizard* theWrappedObject, QWizard::WizardPixmap which) const; | ||
florianlink
|
r73 | Qt::TextFormat subTitleFormat(QWizard* theWrappedObject) const; | ||
void paintEvent(QWizard* theWrappedObject, QPaintEvent* event); | ||||
florianlink
|
r13 | void setSubTitleFormat(QWizard* theWrappedObject, Qt::TextFormat format); | ||
florianlink
|
r73 | void setPage(QWizard* theWrappedObject, int id, QWizardPage* page); | ||
QWizardPage* currentPage(QWizard* theWrappedObject) const; | ||||
Qt::TextFormat titleFormat(QWizard* theWrappedObject) const; | ||||
florianlink
|
r28 | QList<int > visitedPages(QWizard* theWrappedObject) const; | ||
florianlink
|
r73 | void setWizardStyle(QWizard* theWrappedObject, QWizard::WizardStyle style); | ||
int addPage(QWizard* theWrappedObject, QWizardPage* page); | ||||
void setField(QWizard* theWrappedObject, const QString& name, const QVariant& value); | ||||
florianlink
|
r28 | QAbstractButton* button(QWizard* theWrappedObject, QWizard::WizardButton which) const; | ||
florianlink
|
r24 | QString buttonText(QWizard* theWrappedObject, QWizard::WizardButton which) const; | ||
florianlink
|
r73 | bool hasVisitedPage(QWizard* theWrappedObject, int id) const; | ||
QWizard::WizardOptions options(QWizard* theWrappedObject) const; | ||||
QVariant field(QWizard* theWrappedObject, const QString& name) const; | ||||
void setButton(QWizard* theWrappedObject, QWizard::WizardButton which, QAbstractButton* button); | ||||
florianlink
|
r28 | void setButtonLayout(QWizard* theWrappedObject, const QList<QWizard::WizardButton >& layout); | ||
florianlink
|
r73 | void setOption(QWizard* theWrappedObject, QWizard::WizardOption option, bool on = true); | ||
QSize sizeHint(QWizard* theWrappedObject) const; | ||||
florianlink
|
r28 | void setButtonText(QWizard* theWrappedObject, QWizard::WizardButton which, const QString& text); | ||
florianlink
|
r24 | void initializePage(QWizard* theWrappedObject, int id); | ||
void setStartId(QWizard* theWrappedObject, int id); | ||||
florianlink
|
r73 | void cleanupPage(QWizard* theWrappedObject, int id); | ||
bool event(QWizard* theWrappedObject, QEvent* event); | ||||
QWizardPage* page(QWizard* theWrappedObject, int id) const; | ||||
florianlink
|
r28 | int startId(QWizard* theWrappedObject) const; | ||
florianlink
|
r73 | void setTitleFormat(QWizard* theWrappedObject, Qt::TextFormat format); | ||
QWizard::WizardStyle wizardStyle(QWizard* theWrappedObject) const; | ||||
void resizeEvent(QWizard* theWrappedObject, QResizeEvent* event); | ||||
void done(QWizard* theWrappedObject, int result); | ||||
void setOptions(QWizard* theWrappedObject, QWizard::WizardOptions options); | ||||
void setVisible(QWizard* theWrappedObject, bool visible); | ||||
int nextId(QWizard* theWrappedObject) const; | ||||
bool validateCurrentPage(QWizard* theWrappedObject); | ||||
bool testOption(QWizard* theWrappedObject, QWizard::WizardOption option) const; | ||||
void setPixmap(QWizard* theWrappedObject, QWizard::WizardPixmap which, const QPixmap& pixmap); | ||||
int currentId(QWizard* theWrappedObject) const; | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QWIZARD_H | ||||