QtGui/qmainwindow.h Source File
Go to the documentation of this file.
42 #ifndef QDYNAMICMAINWINDOW_H
43 #define QDYNAMICMAINWINDOW_H
54 #ifndef QT_NO_MAINWINDOW
57 class QMainWindowPrivate;
71 #ifndef QT_NO_DOCKWIDGET
72 Q_PROPERTY(
bool animated READ isAnimated WRITE setAnimated)
74 Q_PROPERTY(
bool documentMode READ documentMode WRITE setDocumentMode)
75 #endif // QT_NO_TABBAR
76 #ifndef QT_NO_TABWIDGET
78 #endif // QT_NO_TABWIDGET
79 Q_PROPERTY(
bool dockNestingEnabled READ isDockNestingEnabled WRITE setDockNestingEnabled)
80 #endif // QT_NO_DOCKWIDGET
81 Q_PROPERTY(DockOptions dockOptions READ dockOptions WRITE setDockOptions)
83 Q_PROPERTY(
bool unifiedTitleAndToolBarOnMac READ unifiedTitleAndToolBarOnMac WRITE setUnifiedTitleAndToolBarOnMac)
89 AllowNestedDocks = 0x02,
90 AllowTabbedDocks = 0x04,
91 ForceTabbedDocks = 0x08,
94 Q_DECLARE_FLAGS(DockOptions, DockOption)
99 QSize iconSize() const;
100 void setIconSize(const
QSize &iconSize);
105 #ifndef QT_NO_DOCKWIDGET
106 bool isAnimated()
const;
107 bool isDockNestingEnabled()
const;
111 bool documentMode()
const;
112 void setDocumentMode(
bool enabled);
115 #ifndef QT_NO_TABWIDGET
120 #endif // QT_NO_TABWIDGET
122 void setDockOptions(DockOptions options);
123 DockOptions dockOptions()
const;
125 bool isSeparator(
const QPoint &pos)
const;
127 #ifndef QT_NO_MENUBAR
132 void setMenuWidget(
QWidget *menubar);
135 #ifndef QT_NO_STATUSBAR
140 QWidget *centralWidget()
const;
141 void setCentralWidget(
QWidget *widget);
143 #ifndef QT_NO_DOCKWIDGET
148 #ifndef QT_NO_TOOLBAR
150 void insertToolBarBreak(
QToolBar *before);
156 void removeToolBar(
QToolBar *toolbar);
157 void removeToolBarBreak(
QToolBar *before);
159 void setUnifiedTitleAndToolBarOnMac(
bool set);
160 bool unifiedTitleAndToolBarOnMac()
const;
163 bool toolBarBreak(
QToolBar *toolbar)
const;
165 #ifndef QT_NO_DOCKWIDGET
177 #endif // QT_NO_DOCKWIDGET
180 bool restoreState(
const QByteArray &state,
int version = 0);
183 virtual QMenu *createPopupMenu();
190 #ifndef QT_NO_DOCKWIDGET
192 void setAnimated(
bool enabled);
193 void setDockNestingEnabled(
bool enabled);
197 void iconSizeChanged(
const QSize &iconSize);
201 #ifndef QT_NO_CONTEXTMENU
211 Q_DECLARE_OPERATORS_FOR_FLAGS(QMainWindow::DockOptions)
213 #endif // QT_NO_MAINWINDOW
219 #endif // QDYNAMICMAINWINDOW_H
#define QT_BEGIN_NAMESPACE
GLuint const GLchar * name