Qt 4.8
|
#include <qdockarealayout_p.h>
Public Types | |
enum | { EmptyDropAreaSize = 80 } |
enum | { DockWidgetStateMarker = 0xfd } |
Public Functions | |
void | addDockWidget (QInternal::DockPosition pos, QDockWidget *dockWidget, Qt::Orientation orientation) |
void | apply (bool animate) |
void | clear () |
void | deleteAllLayoutItems () |
QList< int > | findSeparator (const QPoint &pos) const |
void | fitLayout () |
QList< int > | gapIndex (const QPoint &pos) const |
QRect | gapRect (const QList< int > &path) const |
void | getGrid (QVector< QLayoutStruct > *ver_struct_list, QVector< QLayoutStruct > *hor_struct_list) |
QList< int > | indexOf (QWidget *dockWidget) const |
QList< int > | indexOfPlaceHolder (const QString &objectName) const |
QDockAreaLayoutInfo * | info (const QList< int > &path) |
const QDockAreaLayoutInfo * | info (const QList< int > &path) const |
QDockAreaLayoutInfo * | info (QWidget *widget) |
bool | insertGap (const QList< int > &path, QLayoutItem *dockWidgetItem) |
bool | isValid () const |
QDockAreaLayoutItem & | item (const QList< int > &path) |
QLayoutItem * | itemAt (int *x, int index) const |
QRect | itemRect (const QList< int > &path) const |
void | keepSize (QDockWidget *w) |
QSize | minimumSize () const |
void | paintSeparators (QPainter *p, QWidget *widget, const QRegion &clip, const QPoint &mouse) const |
QLayoutItem * | plug (const QList< int > &path) |
QDockAreaLayout (QMainWindow *win) | |
void | remove (const QList< int > &path) |
bool | restoreDockWidget (QDockWidget *dockWidget) |
bool | restoreState (QDataStream &stream, const QList< QDockWidget *> &widgets, bool testing=false) |
void | saveState (QDataStream &stream) const |
int | separatorMove (const QList< int > &separator, const QPoint &origin, const QPoint &dest) |
QRect | separatorRect (int index) const |
QRect | separatorRect (const QList< int > &path) const |
QRegion | separatorRegion () const |
void | setGrid (QVector< QLayoutStruct > *ver_struct_list, QVector< QLayoutStruct > *hor_struct_list) |
QSize | sizeHint () const |
void | splitDockWidget (QDockWidget *after, QDockWidget *dockWidget, Qt::Orientation orientation) |
void | styleChangedEvent () |
void | tabifyDockWidget (QDockWidget *first, QDockWidget *second) |
QLayoutItem * | takeAt (int *x, int index) |
QLayoutItem * | unplug (const QList< int > &path) |
void | updateSeparatorWidgets () const |
QSet< QWidget * > | usedSeparatorWidgets () const |
QSet< QTabBar * > | usedTabBars () const |
Public Variables | |
QLayoutItem * | centralWidgetItem |
QRect | centralWidgetRect |
Qt::DockWidgetArea | corners [4] |
QDockAreaLayoutInfo | docks [4] |
bool | fallbackToSizeHints |
QMainWindow * | mainWindow |
QRect | rect |
int | sep |
QVector< QWidget * > | separatorWidgets |
Definition at line 222 of file qdockarealayout_p.h.
anonymous enum |
anonymous enum |
QDockAreaLayout::QDockAreaLayout | ( | QMainWindow * | win | ) |
Definition at line 2262 of file qdockarealayout.cpp.
void QDockAreaLayout::addDockWidget | ( | QInternal::DockPosition | pos, |
QDockWidget * | dockWidget, | ||
Qt::Orientation | orientation | ||
) |
Definition at line 3002 of file qdockarealayout.cpp.
void QDockAreaLayout::apply | ( | bool | animate | ) |
Definition at line 3069 of file qdockarealayout.cpp.
Referenced by QMainWindowLayoutState::apply(), and separatorMove().
void QDockAreaLayout::clear | ( | ) |
Definition at line 2864 of file qdockarealayout.cpp.
Referenced by QMainWindowLayoutState::clear().
void QDockAreaLayout::deleteAllLayoutItems | ( | ) |
Definition at line 3231 of file qdockarealayout.cpp.
Referenced by QMainWindowLayoutState::deleteAllLayoutItems().
Definition at line 2446 of file qdockarealayout.cpp.
void QDockAreaLayout::fitLayout | ( | ) |
Definition at line 2852 of file qdockarealayout.cpp.
Referenced by QMainWindowLayoutState::fitLayout(), and styleChangedEvent().
Definition at line 2381 of file qdockarealayout.cpp.
Referenced by QMainWindowLayoutState::gapIndex().
Definition at line 3263 of file qdockarealayout.cpp.
Referenced by QMainWindowLayoutState::gapRect().
void QDockAreaLayout::getGrid | ( | QVector< QLayoutStruct > * | ver_struct_list, |
QVector< QLayoutStruct > * | hor_struct_list | ||
) |
Definition at line 2583 of file qdockarealayout.cpp.
Referenced by fitLayout(), and separatorMove().
Definition at line 2369 of file qdockarealayout.cpp.
Referenced by QMainWindowLayoutState::contains(), QMainWindowLayoutState::indexOf(), keepSize(), QMainWindowLayoutState::remove(), QMainWindowLayoutState::restoreState(), splitDockWidget(), and tabifyDockWidget().
Definition at line 2357 of file qdockarealayout.cpp.
Referenced by addDockWidget(), restoreDockWidget(), splitDockWidget(), and tabifyDockWidget().
QDockAreaLayoutInfo * QDockAreaLayout::info | ( | const QList< int > & | path | ) |
Definition at line 2481 of file qdockarealayout.cpp.
Referenced by addDockWidget(), findSeparator(), gapIndex(), gapRect(), info(), QMainWindowLayoutState::restoreState(), separatorMove(), splitDockWidget(), and tabifyDockWidget().
const QDockAreaLayoutInfo * QDockAreaLayout::info | ( | const QList< int > & | path | ) | const |
Definition at line 2493 of file qdockarealayout.cpp.
QDockAreaLayoutInfo * QDockAreaLayout::info | ( | QWidget * | widget | ) |
Definition at line 2471 of file qdockarealayout.cpp.
bool QDockAreaLayout::insertGap | ( | const QList< int > & | path, |
QLayoutItem * | dockWidgetItem | ||
) |
Definition at line 2548 of file qdockarealayout.cpp.
Referenced by QMainWindowLayoutState::insertGap().
bool QDockAreaLayout::isValid | ( | ) | const |
Definition at line 2288 of file qdockarealayout.cpp.
Referenced by styleChangedEvent().
QDockAreaLayoutItem & QDockAreaLayout::item | ( | const QList< int > & | path | ) |
Definition at line 2498 of file qdockarealayout.cpp.
Referenced by gapRect(), QMainWindowLayoutState::item(), keepSize(), and restoreDockWidget().
QLayoutItem * QDockAreaLayout::itemAt | ( | int * | x, |
int | index | ||
) | const |
Definition at line 3196 of file qdockarealayout.cpp.
Referenced by QMainWindowLayoutState::itemAt().
Definition at line 2506 of file qdockarealayout.cpp.
Referenced by QMainWindowLayoutState::itemRect().
void QDockAreaLayout::keepSize | ( | QDockWidget * | w | ) |
Definition at line 3311 of file qdockarealayout.cpp.
QSize QDockAreaLayout::minimumSize | ( | ) | const |
Definition at line 2923 of file qdockarealayout.cpp.
Referenced by getGrid(), and QMainWindowLayoutState::minimumSize().
void QDockAreaLayout::paintSeparators | ( | QPainter * | p, |
QWidget * | widget, | ||
const QRegion & | clip, | ||
const QPoint & | mouse | ||
) | const |
Definition at line 3085 of file qdockarealayout.cpp.
QLayoutItem * QDockAreaLayout::plug | ( | const QList< int > & | path | ) |
Definition at line 2556 of file qdockarealayout.cpp.
Referenced by QMainWindowLayoutState::plug().
void QDockAreaLayout::remove | ( | const QList< int > & | path | ) |
Definition at line 2572 of file qdockarealayout.cpp.
Referenced by QMainWindowLayoutState::remove().
bool QDockAreaLayout::restoreDockWidget | ( | QDockWidget * | dockWidget | ) |
Definition at line 2973 of file qdockarealayout.cpp.
bool QDockAreaLayout::restoreState | ( | QDataStream & | stream, |
const QList< QDockWidget *> & | widgets, | ||
bool | testing = false |
||
) |
Definition at line 2315 of file qdockarealayout.cpp.
Referenced by QMainWindowLayoutState::checkFormat(), and QMainWindowLayoutState::restoreState().
void QDockAreaLayout::saveState | ( | QDataStream & | stream | ) | const |
Definition at line 2293 of file qdockarealayout.cpp.
Referenced by QMainWindowLayoutState::saveState().
int QDockAreaLayout::separatorMove | ( | const QList< int > & | separator, |
const QPoint & | origin, | ||
const QPoint & | dest | ||
) |
Definition at line 3119 of file qdockarealayout.cpp.
Referenced by QMainWindowLayout::timerEvent().
QRect QDockAreaLayout::separatorRect | ( | int | index | ) | const |
Definition at line 2514 of file qdockarealayout.cpp.
Referenced by findSeparator(), paintSeparators(), separatorRect(), separatorRegion(), and updateSeparatorWidgets().
Definition at line 2535 of file qdockarealayout.cpp.
QRegion QDockAreaLayout::separatorRegion | ( | ) | const |
Definition at line 3104 of file qdockarealayout.cpp.
Referenced by QMainWindowLayout::hover(), and QMainWindowLayout::timerEvent().
void QDockAreaLayout::setGrid | ( | QVector< QLayoutStruct > * | ver_struct_list, |
QVector< QLayoutStruct > * | hor_struct_list | ||
) |
Definition at line 2756 of file qdockarealayout.cpp.
Referenced by fitLayout(), and separatorMove().
QSize QDockAreaLayout::sizeHint | ( | ) | const |
Definition at line 2873 of file qdockarealayout.cpp.
Referenced by getGrid(), and QMainWindowLayoutState::sizeHint().
void QDockAreaLayout::splitDockWidget | ( | QDockWidget * | after, |
QDockWidget * | dockWidget, | ||
Qt::Orientation | orientation | ||
) |
Definition at line 3052 of file qdockarealayout.cpp.
void QDockAreaLayout::styleChangedEvent | ( | ) |
Definition at line 3321 of file qdockarealayout.cpp.
void QDockAreaLayout::tabifyDockWidget | ( | QDockWidget * | first, |
QDockWidget * | second | ||
) |
Definition at line 3037 of file qdockarealayout.cpp.
QLayoutItem * QDockAreaLayout::takeAt | ( | int * | x, |
int | index | ||
) |
Definition at line 3212 of file qdockarealayout.cpp.
Referenced by QMainWindowLayoutState::takeAt().
QLayoutItem * QDockAreaLayout::unplug | ( | const QList< int > & | path | ) |
Definition at line 2564 of file qdockarealayout.cpp.
Referenced by QMainWindowLayoutState::unplug().
void QDockAreaLayout::updateSeparatorWidgets | ( | ) | const |
Definition at line 3163 of file qdockarealayout.cpp.
Referenced by apply().
Definition at line 3249 of file qdockarealayout.cpp.
Referenced by QMainWindowLayout::applyState().
Definition at line 3238 of file qdockarealayout.cpp.
Referenced by QMainWindowLayout::applyState().
QLayoutItem* QDockAreaLayout::centralWidgetItem |
Definition at line 229 of file qdockarealayout_p.h.
Referenced by apply(), QMainWindowLayoutState::centralWidget(), QMainWindowLayoutState::contains(), QMainWindowLayoutState::deleteCentralWidgetItem(), getGrid(), itemAt(), minimumSize(), QDockAreaLayout(), QMainWindowLayoutState::setCentralWidget(), QMainWindowLayout::setCentralWidget(), sizeHint(), and takeAt().
QRect QDockAreaLayout::centralWidgetRect |
Definition at line 231 of file qdockarealayout_p.h.
Referenced by apply(), clear(), getGrid(), restoreState(), saveState(), and setGrid().
Qt::DockWidgetArea QDockAreaLayout::corners[4] |
Definition at line 227 of file qdockarealayout_p.h.
Referenced by getGrid(), minimumSize(), QDockAreaLayout(), restoreState(), saveState(), setGrid(), and sizeHint().
QDockAreaLayoutInfo QDockAreaLayout::docks[4] |
Definition at line 233 of file qdockarealayout_p.h.
Referenced by addDockWidget(), apply(), clear(), deleteAllLayoutItems(), findSeparator(), gapIndex(), getGrid(), indexOf(), indexOfPlaceHolder(), info(), insertGap(), item(), itemAt(), itemRect(), minimumSize(), paintSeparators(), plug(), QDockAreaLayout(), remove(), restoreState(), saveState(), separatorRect(), separatorRegion(), setGrid(), sizeHint(), takeAt(), unplug(), updateSeparatorWidgets(), QMainWindowLayout::updateTabBarShapes(), usedSeparatorWidgets(), and usedTabBars().
bool QDockAreaLayout::fallbackToSizeHints |
Definition at line 235 of file qdockarealayout_p.h.
Referenced by getGrid(), restoreState(), and QMainWindowLayout::setCentralWidget().
QMainWindow* QDockAreaLayout::mainWindow |
Definition at line 230 of file qdockarealayout_p.h.
Referenced by addDockWidget(), apply(), gapIndex(), QDockAreaLayout(), styleChangedEvent(), and updateSeparatorWidgets().
QRect QDockAreaLayout::rect |
Definition at line 228 of file qdockarealayout_p.h.
Referenced by clear(), findSeparator(), QMainWindowLayoutState::fitLayout(), fitLayout(), gapIndex(), getGrid(), isValid(), and setGrid().
int QDockAreaLayout::sep |
Definition at line 234 of file qdockarealayout_p.h.
Referenced by addDockWidget(), apply(), findSeparator(), fitLayout(), gapRect(), getGrid(), minimumSize(), QDockAreaLayout(), separatorMove(), separatorRect(), setGrid(), sizeHint(), and styleChangedEvent().
Definition at line 236 of file qdockarealayout_p.h.
Referenced by updateSeparatorWidgets(), and usedSeparatorWidgets().