PythonQtWrapper_QMainWindow.h
150 lines
| 7.0 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QMAINWINDOW_H | ||
#define PYTHONQTWRAPPER_QMAINWINDOW_H | ||||
#include <qmainwindow.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qaction.h> | ||||
#include <qbitmap.h> | ||||
#include <qbytearray.h> | ||||
#include <qcoreevent.h> | ||||
#include <qcursor.h> | ||||
#include <qdockwidget.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 <qmainwindow.h> | ||||
#include <qmenu.h> | ||||
#include <qmenubar.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 <qsize.h> | ||||
#include <qsizepolicy.h> | ||||
#include <qstatusbar.h> | ||||
#include <qstyle.h> | ||||
#include <qtoolbar.h> | ||||
#include <qwidget.h> | ||||
florianlink
|
r24 | class PythonQtShell_QMainWindow : public QMainWindow | ||
{ | ||||
public: | ||||
PythonQtShell_QMainWindow(QWidget* parent = 0, Qt::WindowFlags flags = 0):QMainWindow(parent, flags),_wrapper(NULL) {}; | ||||
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* event); | ||||
virtual QMenu* createPopupMenu(); | ||||
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* 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 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 QSize minimumSizeHint() 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 resizeEvent(QResizeEvent* arg__1); | ||||
virtual void showEvent(QShowEvent* arg__1); | ||||
virtual QSize sizeHint() const; | ||||
virtual void tabletEvent(QTabletEvent* arg__1); | ||||
virtual void timerEvent(QTimerEvent* arg__1); | ||||
virtual void wheelEvent(QWheelEvent* arg__1); | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
class PythonQtPublicPromoter_QMainWindow : public QMainWindow | ||||
{ public: | ||||
florianlink
|
r73 | inline void promoted_contextMenuEvent(QContextMenuEvent* event) { QMainWindow::contextMenuEvent(event); } | ||
florianlink
|
r28 | inline bool promoted_event(QEvent* event) { return QMainWindow::event(event); } | ||
inline QMenu* promoted_createPopupMenu() { return QMainWindow::createPopupMenu(); } | ||||
florianlink
|
r24 | }; | ||
florianlink
|
r13 | class PythonQtWrapper_QMainWindow : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QMainWindow* new_QMainWindow(QWidget* parent = 0, Qt::WindowFlags flags = 0); | ||||
void delete_QMainWindow(QMainWindow* obj) { delete obj; } | ||||
florianlink
|
r73 | QToolBar* addToolBar(QMainWindow* theWrappedObject, const QString& title); | ||
QWidget* menuWidget(QMainWindow* theWrappedObject) const; | ||||
QMainWindow::DockOptions dockOptions(QMainWindow* theWrappedObject) const; | ||||
QSize iconSize(QMainWindow* theWrappedObject) const; | ||||
void setCorner(QMainWindow* theWrappedObject, Qt::Corner corner, Qt::DockWidgetArea area); | ||||
void contextMenuEvent(QMainWindow* theWrappedObject, QContextMenuEvent* event); | ||||
void setMenuBar(QMainWindow* theWrappedObject, QMenuBar* menubar); | ||||
void addToolBar(QMainWindow* theWrappedObject, QToolBar* toolbar); | ||||
bool toolBarBreak(QMainWindow* theWrappedObject, QToolBar* toolbar) const; | ||||
QStatusBar* statusBar(QMainWindow* theWrappedObject) const; | ||||
bool isSeparator(QMainWindow* theWrappedObject, const QPoint& pos) const; | ||||
void addDockWidget(QMainWindow* theWrappedObject, Qt::DockWidgetArea area, QDockWidget* dockwidget); | ||||
void addToolBarBreak(QMainWindow* theWrappedObject, Qt::ToolBarArea area = Qt::TopToolBarArea); | ||||
QWidget* centralWidget(QMainWindow* theWrappedObject) const; | ||||
void setCentralWidget(QMainWindow* theWrappedObject, QWidget* widget); | ||||
florianlink
|
r24 | bool isDockNestingEnabled(QMainWindow* theWrappedObject) const; | ||
florianlink
|
r73 | void removeDockWidget(QMainWindow* theWrappedObject, QDockWidget* dockwidget); | ||
florianlink
|
r24 | void removeToolBar(QMainWindow* theWrappedObject, QToolBar* toolbar); | ||
florianlink
|
r73 | QByteArray saveState(QMainWindow* theWrappedObject, int version = 0) const; | ||
bool restoreState(QMainWindow* theWrappedObject, const QByteArray& state, int version = 0); | ||||
void setMenuWidget(QMainWindow* theWrappedObject, QWidget* menubar); | ||||
bool unifiedTitleAndToolBarOnMac(QMainWindow* theWrappedObject) const; | ||||
void insertToolBar(QMainWindow* theWrappedObject, QToolBar* before, QToolBar* toolbar); | ||||
florianlink
|
r24 | bool isAnimated(QMainWindow* theWrappedObject) const; | ||
florianlink
|
r28 | void setToolButtonStyle(QMainWindow* theWrappedObject, Qt::ToolButtonStyle toolButtonStyle); | ||
florianlink
|
r73 | Qt::DockWidgetArea dockWidgetArea(QMainWindow* theWrappedObject, QDockWidget* dockwidget) const; | ||
void setDockOptions(QMainWindow* theWrappedObject, QMainWindow::DockOptions options); | ||||
florianlink
|
r28 | void setIconSize(QMainWindow* theWrappedObject, const QSize& iconSize); | ||
florianlink
|
r24 | void splitDockWidget(QMainWindow* theWrappedObject, QDockWidget* after, QDockWidget* dockwidget, Qt::Orientation orientation); | ||
bool event(QMainWindow* theWrappedObject, QEvent* event); | ||||
florianlink
|
r73 | void setStatusBar(QMainWindow* theWrappedObject, QStatusBar* statusbar); | ||
QMenu* createPopupMenu(QMainWindow* theWrappedObject); | ||||
Qt::DockWidgetArea corner(QMainWindow* theWrappedObject, Qt::Corner corner) const; | ||||
QMenuBar* menuBar(QMainWindow* theWrappedObject) const; | ||||
florianlink
|
r24 | void removeToolBarBreak(QMainWindow* theWrappedObject, QToolBar* before); | ||
florianlink
|
r28 | bool restoreDockWidget(QMainWindow* theWrappedObject, QDockWidget* dockwidget); | ||
florianlink
|
r73 | void tabifyDockWidget(QMainWindow* theWrappedObject, QDockWidget* first, QDockWidget* second); | ||
florianlink
|
r13 | Qt::ToolButtonStyle toolButtonStyle(QMainWindow* theWrappedObject) const; | ||
florianlink
|
r24 | void addDockWidget(QMainWindow* theWrappedObject, Qt::DockWidgetArea area, QDockWidget* dockwidget, Qt::Orientation orientation); | ||
florianlink
|
r28 | void addToolBar(QMainWindow* theWrappedObject, Qt::ToolBarArea area, QToolBar* toolbar); | ||
florianlink
|
r73 | void insertToolBarBreak(QMainWindow* theWrappedObject, QToolBar* before); | ||
florianlink
|
r28 | void setUnifiedTitleAndToolBarOnMac(QMainWindow* theWrappedObject, bool set); | ||
florianlink
|
r73 | Qt::ToolBarArea toolBarArea(QMainWindow* theWrappedObject, QToolBar* toolbar) const; | ||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QMAINWINDOW_H | ||||