|
|
#ifndef PYTHONQTWRAPPER_QMAINWINDOW_H
|
|
|
#define PYTHONQTWRAPPER_QMAINWINDOW_H
|
|
|
|
|
|
#include <qmainwindow.h>
|
|
|
#include <QObject>
|
|
|
|
|
|
#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>
|
|
|
|
|
|
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
|
|
|
|