42 #ifndef QDYNAMICMAINWINDOWLAYOUT_P_H 43 #define QDYNAMICMAINWINDOWLAYOUT_P_H 58 #ifndef QT_NO_MAINWINDOW 60 #include "QtGui/qlayout.h" 61 #include "QtGui/qtabbar.h" 62 #include "QtCore/qvector.h" 63 #include "QtCore/qset.h" 64 #include "QtCore/qbasictimer.h" 65 #include "private/qlayoutengine_p.h" 66 #include "private/qwidgetanimator_p.h" 73 #if defined(Q_DEBUG_MAINWINDOW_LAYOUT) && !defined(QT_NO_DOCKWIDGET) 78 #endif // Q_DEBUG_MAINWINDOW_LAYOUT && !QT_NO_DOCKWIDGET 82 struct OpaqueHIObjectRef;
88 # ifdef QT_MAC_USE_COCOA 89 #include <private/qunifiedtoolbarsurface_mac_p.h> 90 # endif // QT_MAC_USE_COCOA 113 #ifndef QT_NO_TOOLBAR 117 #ifndef QT_NO_DOCKWIDGET 121 QRect centralWidgetRect;
124 void apply(
bool animated);
170 void setDockOptions(QMainWindow::DockOptions opts);
179 #ifndef QT_NO_STATUSBAR 191 #ifndef QT_NO_TOOLBAR 193 void insertToolBarBreak(
QToolBar *before);
194 void removeToolBarBreak(
QToolBar *before);
199 bool toolBarBreak(
QToolBar *toolBar)
const;
202 void toggleToolBarsVisible();
208 #ifndef QT_NO_DOCKWIDGET 220 void setVerticalTabsEnabled(
bool enabled);
225 bool documentMode()
const;
226 void setDocumentMode(
bool enabled);
238 #ifndef QT_NO_TABWIDGET 246 #endif // QT_NO_TABWIDGET 247 #endif // QT_NO_TABBAR 255 bool startSeparatorMove(
const QPoint &pos);
256 bool separatorMove(
const QPoint &pos);
257 bool endSeparatorMove(
const QPoint &pos);
259 #endif // QT_NO_DOCKWIDGET 272 void setGeometry(
const QRect &r);
289 #ifndef QT_NO_RUBBERBAND 297 void updateGapIndicator();
300 void restore(
bool keepSavedState =
false);
301 void updateHIToolBarStatus();
305 #ifndef QT_NO_DOCKWIDGET 312 void updateTabBarShapes();
315 # ifndef QT_MAC_USE_COCOA 319 static void qtMacHIToolbarRegisterQToolBarInHIToolborItemClass();
328 : movable(newMovable), maximumSize(newMax) { }
339 void cleanUpMacToolbarItems();
340 void fixSizeInUnifiedToolbar(
QToolBar *tb)
const;
342 void syncUnifiedToolbarVisibility();
345 #ifdef QT_MAC_USE_COCOA 346 QUnifiedToolbarSurface *unifiedSurface;
347 void updateUnifiedToolbarOffset();
348 #endif // QT_MAC_USE_COCOA 354 #endif // QT_NO_MAINWINDOW 356 #endif // QDYNAMICMAINWINDOWLAYOUT_P_H The QPainter class performs low-level painting on widgets and other paint devices.
QMainWindowLayoutState(QMainWindow *win)
const struct __CFString * CFStringRef
QSet< QTabBar * > usedTabBars
#define QT_END_NAMESPACE
This macro expands to.
QPointer< QWidget > widget
QLayoutItem * itemAt(int index, int *x) const
QLayoutItem * plug(const QList< int > &path)
QRect itemRect(const QList< int > &path) const
QList< int > currentGapPos
bool checkFormat(QDataStream &stream, bool pre43)
QList< int > gapIndex(QWidget *widget, const QPoint &pos) const
void deleteCentralWidgetItem()
The QTabBar class provides a tab bar, e.g.
The QHash class is a template class that provides a hash-table-based dictionary.
bool activateUnifiedToolbarAfterFullScreen
void apply(bool animated)
QDockAreaLayout dockAreaLayout
void setCentralWidget(QWidget *widget)
The QStatusBar class provides a horizontal bar suitable for presenting status information.
QRect gapRect(const QList< int > &path) const
QMainWindow::DockOptions dockOptions
QLayoutItem * takeAt(int index, int *x)
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QLayoutItem class provides an abstract item that a QLayout manipulates.
QWidget * centralWidget() const
QSize minimumSize() const
The QLayout class is the base class of geometry managers.
QRubberBand * gapIndicator
static const char * data(const QByteArray &arr)
QList< QToolBar * > qtoolbarsInUnifiedToolbarList
The QRegion class specifies a clip region for a painter.
QSet< QWidget * > usedSeparatorWidgets
bool restoreState(QDataStream &stream, const QMainWindowLayoutState &oldState)
QHash< QToolBar *, ToolBarSaveState > toolbarSaveState
struct OpaqueEventRef * EventRef
bool insertGap(const QList< int > &path, QLayoutItem *item)
HIObjectRef HIToolbarItemRef
The QTimerEvent class contains parameters that describe a timer event.
QLayoutItem * item(const QList< int > &path)
The QTextStream class provides a convenient interface for reading and writing text.
QHash< void *, QToolBar * > unifiedToolbarHash
QList< QWidget * > unusedSeparatorWidgets
bool contains(QWidget *widget) const
The QPoint class defines a point in the plane using integer precision.
QHash< QString, QToolBar * > cocoaItemIDToToolbarHash
The QMainWindow class provides a main application window.
QList< int > indexOf(QWidget *widget) const
struct OpaqueHIObjectRef * HIObjectRef
The QRect class defines a rectangle in the plane using integer precision.
#define Q_AUTOTEST_EXPORT
QList< QTabBar * > unusedTabBars
QBasicTimer separatorMoveTimer
QWidgetAnimator widgetAnimator
The QBasicTimer class provides timer events for objects.
The QSize class defines the size of a two-dimensional object using integer point precision.
struct OpaqueEventHandlerCallRef * EventHandlerCallRef
The QDataStream class provides serialization of binary data to a QIODevice.
ToolBarSaveState(bool newMovable, const QSize &newMax)
void saveState(QDataStream &stream) const
QPoint movingSeparatorPos
QToolBarAreaLayout toolBarAreaLayout
The QRubberBand class provides a rectangle or line that can indicate a selection or a boundary...
void deleteAllLayoutItems()
QMainWindowLayoutState savedState
QLayoutItem * unplug(const QList< int > &path, QMainWindowLayoutState *savedState=0)
QList< void * > toolbarItemsCopy
QTabWidget::TabShape _tabShape
QList< int > movingSeparator
static int area(const QSize &s)