#ifndef PYTHONQTWRAPPER_QMAINWINDOW_H #define PYTHONQTWRAPPER_QMAINWINDOW_H #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include 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; } void addDockWidget(QMainWindow* theWrappedObject, Qt::DockWidgetArea area, QDockWidget* dockwidget); void addDockWidget(QMainWindow* theWrappedObject, Qt::DockWidgetArea area, QDockWidget* dockwidget, Qt::Orientation orientation); void addToolBar(QMainWindow* theWrappedObject, QToolBar* toolbar); void addToolBar(QMainWindow* theWrappedObject, Qt::ToolBarArea area, QToolBar* toolbar); QToolBar* addToolBar(QMainWindow* theWrappedObject, const QString& title); void addToolBarBreak(QMainWindow* theWrappedObject, Qt::ToolBarArea area = Qt::TopToolBarArea); QWidget* centralWidget(QMainWindow* theWrappedObject) const; Qt::DockWidgetArea corner(QMainWindow* theWrappedObject, Qt::Corner corner) const; QMenu* createPopupMenu(QMainWindow* theWrappedObject); QMainWindow::DockOptions dockOptions(QMainWindow* theWrappedObject) const; Qt::DockWidgetArea dockWidgetArea(QMainWindow* theWrappedObject, QDockWidget* dockwidget) const; QSize iconSize(QMainWindow* theWrappedObject) const; void insertToolBar(QMainWindow* theWrappedObject, QToolBar* before, QToolBar* toolbar); void insertToolBarBreak(QMainWindow* theWrappedObject, QToolBar* before); bool isAnimated(QMainWindow* theWrappedObject) const; bool isDockNestingEnabled(QMainWindow* theWrappedObject) const; bool isSeparator(QMainWindow* theWrappedObject, const QPoint& pos) const; QMenuBar* menuBar(QMainWindow* theWrappedObject) const; QWidget* menuWidget(QMainWindow* theWrappedObject) const; void removeDockWidget(QMainWindow* theWrappedObject, QDockWidget* dockwidget); void removeToolBar(QMainWindow* theWrappedObject, QToolBar* toolbar); void removeToolBarBreak(QMainWindow* theWrappedObject, QToolBar* before); bool restoreDockWidget(QMainWindow* theWrappedObject, QDockWidget* dockwidget); bool restoreState(QMainWindow* theWrappedObject, const QByteArray& state, int version = 0); QByteArray saveState(QMainWindow* theWrappedObject, int version = 0) const; void setCentralWidget(QMainWindow* theWrappedObject, QWidget* widget); void setCorner(QMainWindow* theWrappedObject, Qt::Corner corner, Qt::DockWidgetArea area); void setDockOptions(QMainWindow* theWrappedObject, QMainWindow::DockOptions options); void setIconSize(QMainWindow* theWrappedObject, const QSize& iconSize); void setMenuBar(QMainWindow* theWrappedObject, QMenuBar* menubar); void setMenuWidget(QMainWindow* theWrappedObject, QWidget* menubar); void setStatusBar(QMainWindow* theWrappedObject, QStatusBar* statusbar); void setToolButtonStyle(QMainWindow* theWrappedObject, Qt::ToolButtonStyle toolButtonStyle); void setUnifiedTitleAndToolBarOnMac(QMainWindow* theWrappedObject, bool set); void splitDockWidget(QMainWindow* theWrappedObject, QDockWidget* after, QDockWidget* dockwidget, Qt::Orientation orientation); QStatusBar* statusBar(QMainWindow* theWrappedObject) const; void tabifyDockWidget(QMainWindow* theWrappedObject, QDockWidget* first, QDockWidget* second); Qt::ToolBarArea toolBarArea(QMainWindow* theWrappedObject, QToolBar* toolbar) const; bool toolBarBreak(QMainWindow* theWrappedObject, QToolBar* toolbar) const; Qt::ToolButtonStyle toolButtonStyle(QMainWindow* theWrappedObject) const; bool unifiedTitleAndToolBarOnMac(QMainWindow* theWrappedObject) const; }; #endif // PYTHONQTWRAPPER_QMAINWINDOW_H