42 #ifndef QDYNAMICMAINWINDOW_H 43 #define QDYNAMICMAINWINDOW_H 45 #include <QtGui/qwidget.h> 46 #include <QtGui/qtabwidget.h> 54 #ifndef QT_NO_MAINWINDOW 71 #ifndef QT_NO_DOCKWIDGET 75 #endif // QT_NO_TABBAR 76 #ifndef QT_NO_TABWIDGET 78 #endif // QT_NO_TABWIDGET 80 #endif // QT_NO_DOCKWIDGET 89 AllowNestedDocks = 0x02,
90 AllowTabbedDocks = 0x04,
91 ForceTabbedDocks = 0x08,
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;
127 #ifndef QT_NO_MENUBAR 132 void setMenuWidget(
QWidget *menubar);
135 #ifndef QT_NO_STATUSBAR 140 QWidget *centralWidget()
const;
143 #ifndef QT_NO_DOCKWIDGET 148 #ifndef QT_NO_TOOLBAR 150 void insertToolBarBreak(
QToolBar *before);
157 void removeToolBarBreak(
QToolBar *before);
159 void setUnifiedTitleAndToolBarOnMac(
bool set);
160 bool unifiedTitleAndToolBarOnMac()
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 213 #endif // QT_NO_MAINWINDOW 219 #endif // QDYNAMICMAINWINDOW_H DockOptions dockOptions
the docking behavior of QMainWindow
QTabWidget::TabShape tabShape
the tab shape used for tabbed dock widgets.
#define QT_END_NAMESPACE
This macro expands to.
QPointer< QWidget > widget
#define Q_DECLARE_FLAGS(Flags, Enum)
The Q_DECLARE_FLAGS() macro expands to.
The QByteArray class provides an array of bytes.
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
The QString class provides a Unicode character string.
The QStatusBar class provides a horizontal bar suitable for presenting status information.
#define QT_BEGIN_NAMESPACE
This macro expands to.
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
The Q_DECLARE_OPERATORS_FOR_FLAGS() macro declares global operator|() functions for Flags...
bool documentMode
whether the tab bar for tabbed dockwidgets is set to document mode.
static bool isSeparator(register char c)
bool unifiedTitleAndToolBarOnMac
whether the window uses the unified title and toolbar look on Mac OS X
bool dockNestingEnabled
whether docks can be nested
The QPoint class defines a point in the plane using integer precision.
The QMainWindow class provides a main application window.
The QSize class defines the size of a two-dimensional object using integer point precision.
#define Q_DECLARE_PRIVATE(Class)
The QEvent class is the base class of all event classes.
bool animated
whether manipulating dock widgets and tool bars is animated
The QList class is a template class that provides lists.
static int area(const QSize &s)
DockOption
This enum contains flags that specify the docking behavior of QMainWindow.