PythonQtWrapper_QMdiArea.h
141 lines
| 6.2 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QMDIAREA_H | ||
#define PYTHONQTWRAPPER_QMDIAREA_H | ||||
#include <qmdiarea.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qaction.h> | ||||
#include <qbitmap.h> | ||||
#include <qbrush.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 <qmdiarea.h> | ||||
#include <qmdisubwindow.h> | ||||
#include <qobject.h> | ||||
#include <qpaintdevice.h> | ||||
#include <qpaintengine.h> | ||||
#include <qpainter.h> | ||||
#include <qpalette.h> | ||||
#include <qpoint.h> | ||||
#include <qrect.h> | ||||
#include <qregion.h> | ||||
#include <qscrollbar.h> | ||||
#include <qsize.h> | ||||
#include <qsizepolicy.h> | ||||
#include <qstyle.h> | ||||
#include <qwidget.h> | ||||
florianlink
|
r24 | class PythonQtShell_QMdiArea : public QMdiArea | ||
{ | ||||
public: | ||||
PythonQtShell_QMdiArea(QWidget* parent = 0):QMdiArea(parent),_wrapper(NULL) {}; | ||||
virtual void actionEvent(QActionEvent* arg__1); | ||||
virtual void changeEvent(QEvent* arg__1); | ||||
virtual void childEvent(QChildEvent* childEvent); | ||||
virtual void closeEvent(QCloseEvent* arg__1); | ||||
virtual void contextMenuEvent(QContextMenuEvent* arg__1); | ||||
virtual void customEvent(QEvent* arg__1); | ||||
virtual int devType() const; | ||||
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* object, QEvent* event); | ||||
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* paintEvent); | ||||
virtual void resizeEvent(QResizeEvent* resizeEvent); | ||||
virtual void scrollContentsBy(int dx, int dy); | ||||
virtual void showEvent(QShowEvent* showEvent); | ||||
virtual void tabletEvent(QTabletEvent* arg__1); | ||||
virtual void timerEvent(QTimerEvent* timerEvent); | ||||
virtual bool viewportEvent(QEvent* event); | ||||
virtual void wheelEvent(QWheelEvent* arg__1); | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
class PythonQtPublicPromoter_QMdiArea : public QMdiArea | ||||
{ public: | ||||
florianlink
|
r28 | inline bool promoted_event(QEvent* event) { return QMdiArea::event(event); } | ||
inline void promoted_resizeEvent(QResizeEvent* resizeEvent) { QMdiArea::resizeEvent(resizeEvent); } | ||||
inline void promoted_childEvent(QChildEvent* childEvent) { QMdiArea::childEvent(childEvent); } | ||||
inline void promoted_timerEvent(QTimerEvent* timerEvent) { QMdiArea::timerEvent(timerEvent); } | ||||
inline bool promoted_viewportEvent(QEvent* event) { return QMdiArea::viewportEvent(event); } | ||||
inline bool promoted_eventFilter(QObject* object, QEvent* event) { return QMdiArea::eventFilter(object, event); } | ||||
inline void promoted_scrollContentsBy(int dx, int dy) { QMdiArea::scrollContentsBy(dx, dy); } | ||||
inline void promoted_paintEvent(QPaintEvent* paintEvent) { QMdiArea::paintEvent(paintEvent); } | ||||
inline void promoted_showEvent(QShowEvent* showEvent) { QMdiArea::showEvent(showEvent); } | ||||
florianlink
|
r24 | }; | ||
florianlink
|
r13 | class PythonQtWrapper_QMdiArea : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
Q_ENUMS(AreaOption ) | ||||
enum AreaOption{ | ||||
DontMaximizeSubWindowOnActivation = QMdiArea::DontMaximizeSubWindowOnActivation}; | ||||
public slots: | ||||
QMdiArea* new_QMdiArea(QWidget* parent = 0); | ||||
void delete_QMdiArea(QMdiArea* obj) { delete obj; } | ||||
florianlink
|
r28 | bool event(QMdiArea* theWrappedObject, QEvent* event); | ||
void resizeEvent(QMdiArea* theWrappedObject, QResizeEvent* resizeEvent); | ||||
void removeSubWindow(QMdiArea* theWrappedObject, QWidget* widget); | ||||
QBrush background(QMdiArea* theWrappedObject) const; | ||||
void setActivationOrder(QMdiArea* theWrappedObject, QMdiArea::WindowOrder order); | ||||
florianlink
|
r24 | QTabWidget::TabPosition tabPosition(QMdiArea* theWrappedObject) const; | ||
bool testOption(QMdiArea* theWrappedObject, QMdiArea::AreaOption opton) const; | ||||
florianlink
|
r28 | void childEvent(QMdiArea* theWrappedObject, QChildEvent* childEvent); | ||
florianlink
|
r24 | void timerEvent(QMdiArea* theWrappedObject, QTimerEvent* timerEvent); | ||
void setViewMode(QMdiArea* theWrappedObject, QMdiArea::ViewMode mode); | ||||
florianlink
|
r28 | void setTabPosition(QMdiArea* theWrappedObject, QTabWidget::TabPosition position); | ||
bool viewportEvent(QMdiArea* theWrappedObject, QEvent* event); | ||||
bool eventFilter(QMdiArea* theWrappedObject, QObject* object, QEvent* event); | ||||
florianlink
|
r24 | void scrollContentsBy(QMdiArea* theWrappedObject, int dx, int dy); | ||
QSize sizeHint(QMdiArea* theWrappedObject) const; | ||||
florianlink
|
r28 | void paintEvent(QMdiArea* theWrappedObject, QPaintEvent* paintEvent); | ||
florianlink
|
r24 | QMdiSubWindow* addSubWindow(QMdiArea* theWrappedObject, QWidget* widget, Qt::WindowFlags flags = 0); | ||
void setBackground(QMdiArea* theWrappedObject, const QBrush& background); | ||||
florianlink
|
r13 | QSize minimumSizeHint(QMdiArea* theWrappedObject) const; | ||
florianlink
|
r28 | QMdiArea::ViewMode viewMode(QMdiArea* theWrappedObject) const; | ||
QTabWidget::TabShape tabShape(QMdiArea* theWrappedObject) const; | ||||
QMdiArea::WindowOrder activationOrder(QMdiArea* theWrappedObject) const; | ||||
QMdiSubWindow* currentSubWindow(QMdiArea* theWrappedObject) const; | ||||
florianlink
|
r13 | QList<QMdiSubWindow* > subWindowList(QMdiArea* theWrappedObject, QMdiArea::WindowOrder order = QMdiArea::CreationOrder) const; | ||
florianlink
|
r24 | void setTabShape(QMdiArea* theWrappedObject, QTabWidget::TabShape shape); | ||
void showEvent(QMdiArea* theWrappedObject, QShowEvent* showEvent); | ||||
QMdiSubWindow* activeSubWindow(QMdiArea* theWrappedObject) const; | ||||
void setOption(QMdiArea* theWrappedObject, QMdiArea::AreaOption option, bool on = true); | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QMDIAREA_H | ||||