PythonQtWrapper_QAbstractPrintDialog.h
118 lines
| 5.1 KiB
| text/x-c
|
CLexer
|
r13 | #ifndef PYTHONQTWRAPPER_QABSTRACTPRINTDIALOG_H | ||
#define PYTHONQTWRAPPER_QABSTRACTPRINTDIALOG_H | ||||
#include <qabstractprintdialog.h> | ||||
#include <QObject> | ||||
|
r24 | #include <PythonQt.h> | ||
|
r13 | #include <QVariant> | ||
#include <qabstractprintdialog.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 <qpoint.h> | ||||
#include <qprinter.h> | ||||
#include <qrect.h> | ||||
#include <qregion.h> | ||||
#include <qsize.h> | ||||
#include <qsizepolicy.h> | ||||
#include <qstyle.h> | ||||
#include <qwidget.h> | ||||
|
r24 | class PythonQtShell_QAbstractPrintDialog : public QAbstractPrintDialog | ||
{ | ||||
public: | ||||
PythonQtShell_QAbstractPrintDialog(QPrinter* printer, QWidget* parent = 0):QAbstractPrintDialog(printer, parent),_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 closeEvent(QCloseEvent* arg__1); | ||||
virtual void contextMenuEvent(QContextMenuEvent* arg__1); | ||||
virtual void customEvent(QEvent* arg__1); | ||||
virtual int devType() const; | ||||
virtual void done(int arg__1); | ||||
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* arg__1); | ||||
virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); | ||||
virtual int exec(); | ||||
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 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 QPaintEngine* paintEngine() const; | ||||
virtual void paintEvent(QPaintEvent* arg__1); | ||||
virtual void reject(); | ||||
virtual void resizeEvent(QResizeEvent* arg__1); | ||||
virtual void showEvent(QShowEvent* arg__1); | ||||
virtual void tabletEvent(QTabletEvent* arg__1); | ||||
virtual void timerEvent(QTimerEvent* arg__1); | ||||
virtual void wheelEvent(QWheelEvent* arg__1); | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
|
r13 | class PythonQtWrapper_QAbstractPrintDialog : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
Q_ENUMS(PrintRange PrintDialogOption ) | ||||
|
r73 | Q_FLAGS(PrintDialogOptions ) | ||
|
r13 | enum PrintRange{ | ||
AllPages = QAbstractPrintDialog::AllPages, Selection = QAbstractPrintDialog::Selection, PageRange = QAbstractPrintDialog::PageRange}; | ||||
enum PrintDialogOption{ | ||||
None = QAbstractPrintDialog::None, PrintToFile = QAbstractPrintDialog::PrintToFile, PrintSelection = QAbstractPrintDialog::PrintSelection, PrintPageRange = QAbstractPrintDialog::PrintPageRange, PrintShowPageSize = QAbstractPrintDialog::PrintShowPageSize, PrintCollateCopies = QAbstractPrintDialog::PrintCollateCopies, DontUseSheet = QAbstractPrintDialog::DontUseSheet}; | ||||
|
r73 | Q_DECLARE_FLAGS(PrintDialogOptions, PrintDialogOption) | ||
|
r13 | public slots: | ||
|
r24 | QAbstractPrintDialog* new_QAbstractPrintDialog(QPrinter* printer, QWidget* parent = 0); | ||
|
r13 | void delete_QAbstractPrintDialog(QAbstractPrintDialog* obj) { delete obj; } | ||
|
r73 | void addEnabledOption(QAbstractPrintDialog* theWrappedObject, QAbstractPrintDialog::PrintDialogOption option); | ||
int minPage(QAbstractPrintDialog* theWrappedObject) const; | ||||
void setEnabledOptions(QAbstractPrintDialog* theWrappedObject, QAbstractPrintDialog::PrintDialogOptions options); | ||||
void setMinMax(QAbstractPrintDialog* theWrappedObject, int min, int max); | ||||
void setOptionTabs(QAbstractPrintDialog* theWrappedObject, const QList<QWidget* >& tabs); | ||||
|
r28 | void setPrintRange(QAbstractPrintDialog* theWrappedObject, QAbstractPrintDialog::PrintRange range); | ||
bool isOptionEnabled(QAbstractPrintDialog* theWrappedObject, QAbstractPrintDialog::PrintDialogOption option) const; | ||||
|
r13 | int maxPage(QAbstractPrintDialog* theWrappedObject) const; | ||
|
r73 | void setFromTo(QAbstractPrintDialog* theWrappedObject, int fromPage, int toPage); | ||
int toPage(QAbstractPrintDialog* theWrappedObject) const; | ||||
|
r13 | QAbstractPrintDialog::PrintRange printRange(QAbstractPrintDialog* theWrappedObject) const; | ||
|
r73 | QAbstractPrintDialog::PrintDialogOptions enabledOptions(QAbstractPrintDialog* theWrappedObject) const; | ||
|
r24 | int fromPage(QAbstractPrintDialog* theWrappedObject) const; | ||
|
r28 | QPrinter* printer(QAbstractPrintDialog* theWrappedObject) const; | ||
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QABSTRACTPRINTDIALOG_H | ||||