Qt 4.8
|
#include <qdockarealayout_p.h>
Public Types | |
enum | { SequenceMarker = 0xfc, TabMarker = 0xfa, WidgetMarker = 0xfb } |
enum | TabMode { NoTabs, AllowTabs, ForceTabs } |
Public Functions | |
void | apply (bool animate) |
int | changeSize (int index, int size, bool below) |
void | clear () |
quintptr | currentTabId () const |
void | deleteAllLayoutItems () |
bool | expansive (Qt::Orientation o) const |
QList< int > | findSeparator (const QPoint &pos) const |
void | fitItems () |
QList< int > | gapIndex (const QPoint &pos, bool nestingEnabled, TabMode tabMode) const |
bool | hasFixedSize () const |
QList< int > | indexOf (QWidget *widget) const |
QList< int > | indexOfPlaceHolder (const QString &objectName) const |
QDockAreaLayoutInfo * | info (const QList< int > &path) |
QDockAreaLayoutInfo * | info (QWidget *widget) |
bool | insertGap (const QList< int > &path, QLayoutItem *dockWidgetItem) |
bool | isEmpty () const |
QDockAreaLayoutItem & | item (const QList< int > &path) |
QLayoutItem * | itemAt (int *x, int index) const |
QRect | itemRect (int index) const |
QRect | itemRect (const QList< int > &path) const |
QMainWindowLayout * | mainWindowLayout () const |
QSize | maximumSize () const |
QSize | minimumSize () const |
int | next (int idx) const |
void | paintSeparators (QPainter *p, QWidget *widget, const QRegion &clip, const QPoint &mouse) const |
QLayoutItem * | plug (const QList< int > &path) |
int | prev (int idx) const |
QDockAreaLayoutInfo () | |
QDockAreaLayoutInfo (const int *_sep, QInternal::DockPosition _dockPos, Qt::Orientation _o, int tbhape, QMainWindow *window) | |
void | remove (const QList< int > &path) |
bool | restoreState (QDataStream &stream, QList< QDockWidget *> &widgets, bool testing) |
void | saveState (QDataStream &stream) const |
int | separatorMove (int index, int delta) |
QRect | separatorRect (int index) const |
QRect | separatorRect (const QList< int > &path) const |
QRegion | separatorRegion () const |
void | setCurrentTab (QWidget *widget) |
void | setCurrentTabId (quintptr id) |
void | setTabBarShape (int shape) |
QSize | size () const |
QSize | sizeHint () const |
void | split (int index, Qt::Orientation orientation, QLayoutItem *dockWidgetItem) |
void | tab (int index, QLayoutItem *dockWidgetItem) |
QSize | tabBarMinimumSize () const |
QSize | tabBarSizeHint () const |
QRect | tabContentRect () const |
QLayoutItem * | takeAt (int *x, int index) |
void | unnest (int index) |
QLayoutItem * | unplug (const QList< int > &path) |
void | updateSeparatorWidgets () const |
bool | updateTabBar () const |
QSet< QWidget * > | usedSeparatorWidgets () const |
QSet< QTabBar * > | usedTabBars () const |
Public Variables | |
QInternal::DockPosition | dockPos |
QList< QDockAreaLayoutItem > | item_list |
QMainWindow * | mainWindow |
Qt::Orientation | o |
QRect | rect |
const int * | sep |
QVector< QWidget * > | separatorWidgets |
QTabBar * | tabBar |
int | tabBarShape |
bool | tabbed |
Definition at line 127 of file qdockarealayout_p.h.
anonymous enum |
QDockAreaLayoutInfo::QDockAreaLayoutInfo | ( | ) |
Definition at line 228 of file qdockarealayout.cpp.
Referenced by restoreState(), split(), and tab().
QDockAreaLayoutInfo::QDockAreaLayoutInfo | ( | const int * | _sep, |
QInternal::DockPosition | _dockPos, | ||
Qt::Orientation | _o, | ||
int | tbhape, | ||
QMainWindow * | window | ||
) |
Definition at line 236 of file qdockarealayout.cpp.
void QDockAreaLayoutInfo::apply | ( | bool | animate | ) |
Definition at line 1497 of file qdockarealayout.cpp.
Referenced by apply(), QDockAreaLayout::separatorMove(), and QMainWindowLayout::tabChanged().
int QDockAreaLayoutInfo::changeSize | ( | int | index, |
int | size, | ||
bool | below | ||
) |
void QDockAreaLayoutInfo::clear | ( | ) |
Definition at line 254 of file qdockarealayout.cpp.
quintptr QDockAreaLayoutInfo::currentTabId | ( | ) | const |
Definition at line 1103 of file qdockarealayout.cpp.
Referenced by itemRect(), and saveState().
void QDockAreaLayoutInfo::deleteAllLayoutItems | ( | ) |
Definition at line 1768 of file qdockarealayout.cpp.
Referenced by deleteAllLayoutItems().
bool QDockAreaLayoutInfo::expansive | ( | Qt::Orientation | o | ) | const |
Definition at line 467 of file qdockarealayout.cpp.
Referenced by QDockAreaLayoutItem::expansive().
Definition at line 1390 of file qdockarealayout.cpp.
Referenced by findSeparator(), and QDockAreaLayout::findSeparator().
void QDockAreaLayoutInfo::fitItems | ( | ) |
Definition at line 536 of file qdockarealayout.cpp.
Referenced by fitItems(), separatorMove(), and QDockAreaLayout::setGrid().
QList< int > QDockAreaLayoutInfo::gapIndex | ( | const QPoint & | pos, |
bool | nestingEnabled, | ||
TabMode | tabMode | ||
) | const |
Definition at line 745 of file qdockarealayout.cpp.
Referenced by gapIndex(), and QDockAreaLayout::gapIndex().
bool QDockAreaLayoutInfo::hasFixedSize | ( | ) | const |
Definition at line 1491 of file qdockarealayout.cpp.
Referenced by QDockAreaLayout::findSeparator(), and QDockAreaLayout::paintSeparators().
Definition at line 1457 of file qdockarealayout.cpp.
Referenced by indexOf(), and QDockAreaLayout::indexOf().
Definition at line 1433 of file qdockarealayout.cpp.
Referenced by indexOfPlaceHolder(), and QDockAreaLayout::indexOfPlaceHolder().
QDockAreaLayoutInfo * QDockAreaLayoutInfo::info | ( | const QList< int > & | path | ) |
Definition at line 1304 of file qdockarealayout.cpp.
Referenced by info(), and QDockAreaLayout::info().
QDockAreaLayoutInfo * QDockAreaLayoutInfo::info | ( | QWidget * | widget | ) |
Definition at line 1280 of file qdockarealayout.cpp.
bool QDockAreaLayoutInfo::insertGap | ( | const QList< int > & | path, |
QLayoutItem * | dockWidgetItem | ||
) |
Definition at line 1149 of file qdockarealayout.cpp.
Referenced by insertGap(), and QDockAreaLayout::insertGap().
bool QDockAreaLayoutInfo::isEmpty | ( | ) | const |
Definition at line 264 of file qdockarealayout.cpp.
Referenced by QDockAreaLayout::findSeparator(), QDockAreaLayout::gapIndex(), QDockAreaLayout::getGrid(), insertGap(), maximumSize(), minimumSize(), QDockAreaLayout::minimumSize(), paintSeparators(), QDockAreaLayout::paintSeparators(), QDockAreaLayout::saveState(), QDockAreaLayout::separatorRect(), separatorRegion(), QDockAreaLayout::separatorRegion(), size(), sizeHint(), QDockAreaLayout::sizeHint(), and QDockAreaLayout::updateSeparatorWidgets().
QDockAreaLayoutItem & QDockAreaLayoutInfo::item | ( | const QList< int > & | path | ) |
Definition at line 1714 of file qdockarealayout.cpp.
Referenced by apply(), deleteAllLayoutItems(), findSeparator(), fitItems(), gapIndex(), indexOf(), indexOfPlaceHolder(), info(), insertGap(), item(), QDockAreaLayout::item(), itemAt(), itemRect(), maximumSize(), minimumSize(), paintSeparators(), plug(), realMaxSize(), realMinSize(), remove(), restoreState(), saveState(), separatorMove(), separatorRect(), separatorRegion(), setTabBarShape(), sizeHint(), takeAt(), unnest(), unplug(), updateSeparatorWidgets(), updateTabBar(), usedSeparatorWidgets(), and usedTabBars().
QLayoutItem * QDockAreaLayoutInfo::itemAt | ( | int * | x, |
int | index | ||
) | const |
Definition at line 1726 of file qdockarealayout.cpp.
Referenced by itemAt(), and QDockAreaLayout::itemAt().
QRect QDockAreaLayoutInfo::itemRect | ( | int | index | ) | const |
Definition at line 1316 of file qdockarealayout.cpp.
Referenced by apply(), fitItems(), gapIndex(), itemRect(), QDockAreaLayout::itemRect(), and separatorMove().
Definition at line 1344 of file qdockarealayout.cpp.
QMainWindowLayout * QDockAreaLayoutInfo::mainWindowLayout | ( | ) | const |
Definition at line 1484 of file qdockarealayout.cpp.
Referenced by apply(), updateSeparatorWidgets(), and updateTabBar().
QSize QDockAreaLayoutInfo::maximumSize | ( | ) | const |
Definition at line 328 of file qdockarealayout.cpp.
Referenced by QDockAreaLayout::getGrid(), hasFixedSize(), and QDockAreaLayoutItem::maximumSize().
QSize QDockAreaLayoutInfo::minimumSize | ( | ) | const |
Definition at line 269 of file qdockarealayout.cpp.
Referenced by QDockAreaLayout::getGrid(), hasFixedSize(), QDockAreaLayoutItem::minimumSize(), and QDockAreaLayout::minimumSize().
int QDockAreaLayoutInfo::next | ( | int | idx | ) | const |
Definition at line 1654 of file qdockarealayout.cpp.
Referenced by findSeparator(), QDockAreaLayout::gapRect(), insertGap(), isEmpty(), paintSeparators(), plug(), separatorRegion(), unplug(), and updateSeparatorWidgets().
void QDockAreaLayoutInfo::paintSeparators | ( | QPainter * | p, |
QWidget * | widget, | ||
const QRegion & | clip, | ||
const QPoint & | mouse | ||
) | const |
Definition at line 1619 of file qdockarealayout.cpp.
Referenced by paintSeparators(), and QDockAreaLayout::paintSeparators().
QLayoutItem * QDockAreaLayoutInfo::plug | ( | const QList< int > & | path | ) |
Definition at line 1018 of file qdockarealayout.cpp.
Referenced by plug(), and QDockAreaLayout::plug().
int QDockAreaLayoutInfo::prev | ( | int | idx | ) | const |
Definition at line 1663 of file qdockarealayout.cpp.
Referenced by QDockAreaLayout::gapRect(), insertGap(), plug(), and unplug().
void QDockAreaLayoutInfo::remove | ( | const QList< int > & | path | ) |
Definition at line 1002 of file qdockarealayout.cpp.
Referenced by remove(), and QDockAreaLayout::remove().
bool QDockAreaLayoutInfo::restoreState | ( | QDataStream & | stream, |
QList< QDockWidget *> & | widgets, | ||
bool | testing | ||
) |
Definition at line 1878 of file qdockarealayout.cpp.
Referenced by restoreState().
void QDockAreaLayoutInfo::saveState | ( | QDataStream & | stream | ) | const |
Definition at line 1781 of file qdockarealayout.cpp.
Referenced by saveState(), and QDockAreaLayout::saveState().
int QDockAreaLayoutInfo::separatorMove | ( | int | index, |
int | delta | ||
) |
Definition at line 932 of file qdockarealayout.cpp.
Referenced by QDockAreaLayout::separatorMove().
QRect QDockAreaLayoutInfo::separatorRect | ( | int | index | ) | const |
Definition at line 1358 of file qdockarealayout.cpp.
Referenced by findSeparator(), paintSeparators(), separatorRect(), QDockAreaLayout::separatorRect(), separatorRegion(), and updateSeparatorWidgets().
Definition at line 1377 of file qdockarealayout.cpp.
QRegion QDockAreaLayoutInfo::separatorRegion | ( | ) | const |
Definition at line 1589 of file qdockarealayout.cpp.
Referenced by separatorRegion(), and QDockAreaLayout::separatorRegion().
void QDockAreaLayoutInfo::setCurrentTab | ( | QWidget * | widget | ) |
Definition at line 1115 of file qdockarealayout.cpp.
Referenced by QMainWindowLayout::raise(), and tab().
void QDockAreaLayoutInfo::setCurrentTabId | ( | quintptr | id | ) |
Definition at line 1120 of file qdockarealayout.cpp.
Referenced by QDockAreaLayout::addDockWidget(), restoreState(), and setCurrentTab().
void QDockAreaLayoutInfo::setTabBarShape | ( | int | shape | ) |
Definition at line 2156 of file qdockarealayout.cpp.
Referenced by setTabBarShape(), and QMainWindowLayout::updateTabBarShapes().
QSize QDockAreaLayoutInfo::size | ( | ) | const |
Definition at line 249 of file qdockarealayout.cpp.
Referenced by fitItems(), and QDockAreaLayout::getGrid().
QSize QDockAreaLayoutInfo::sizeHint | ( | ) | const |
Definition at line 395 of file qdockarealayout.cpp.
Referenced by QDockAreaLayoutItem::sizeHint(), and QDockAreaLayout::sizeHint().
void QDockAreaLayoutInfo::split | ( | int | index, |
Qt::Orientation | orientation, | ||
QLayoutItem * | dockWidgetItem | ||
) |
Definition at line 1696 of file qdockarealayout.cpp.
Referenced by QDockAreaLayout::splitDockWidget().
void QDockAreaLayoutInfo::tab | ( | int | index, |
QLayoutItem * | dockWidgetItem | ||
) |
Definition at line 1672 of file qdockarealayout.cpp.
Referenced by QDockAreaLayout::tabifyDockWidget().
QSize QDockAreaLayoutInfo::tabBarMinimumSize | ( | ) | const |
Definition at line 2171 of file qdockarealayout.cpp.
Referenced by minimumSize().
QSize QDockAreaLayoutInfo::tabBarSizeHint | ( | ) | const |
Definition at line 2179 of file qdockarealayout.cpp.
Referenced by apply(), maximumSize(), sizeHint(), and tabContentRect().
QRect QDockAreaLayoutInfo::tabContentRect | ( | ) | const |
Definition at line 2223 of file qdockarealayout.cpp.
Referenced by gapIndex(), QDockAreaLayout::gapRect(), and itemRect().
QLayoutItem * QDockAreaLayoutInfo::takeAt | ( | int * | x, |
int | index | ||
) |
Definition at line 1743 of file qdockarealayout.cpp.
Referenced by takeAt(), and QDockAreaLayout::takeAt().
void QDockAreaLayoutInfo::unnest | ( | int | index | ) |
Definition at line 976 of file qdockarealayout.cpp.
Referenced by remove(), and takeAt().
QLayoutItem * QDockAreaLayoutInfo::unplug | ( | const QList< int > & | path | ) |
Definition at line 1067 of file qdockarealayout.cpp.
Referenced by unplug(), and QDockAreaLayout::unplug().
void QDockAreaLayoutInfo::updateSeparatorWidgets | ( | ) | const |
Definition at line 2032 of file qdockarealayout.cpp.
Referenced by apply(), restoreState(), and updateSeparatorWidgets().
bool QDockAreaLayoutInfo::updateTabBar | ( | ) | const |
Definition at line 2086 of file qdockarealayout.cpp.
Referenced by QDockAreaLayout::addDockWidget(), restoreState(), tab(), tabBarMinimumSize(), tabBarSizeHint(), and usedTabBars().
Definition at line 2207 of file qdockarealayout.cpp.
Referenced by usedSeparatorWidgets(), and QDockAreaLayout::usedSeparatorWidgets().
Definition at line 2187 of file qdockarealayout.cpp.
Referenced by usedTabBars(), and QDockAreaLayout::usedTabBars().
QInternal::DockPosition QDockAreaLayoutInfo::dockPos |
Definition at line 194 of file qdockarealayout_p.h.
Referenced by insertGap(), restoreState(), split(), and tab().
QList<QDockAreaLayoutItem> QDockAreaLayoutInfo::item_list |
Definition at line 198 of file qdockarealayout_p.h.
Referenced by QDockAreaLayout::addDockWidget(), apply(), clear(), deleteAllLayoutItems(), expansive(), findSeparator(), fitItems(), gapIndex(), QDockAreaLayout::gapIndex(), QDockAreaLayout::gapRect(), indexOf(), indexOfPlaceHolder(), info(), insertGap(), item(), itemAt(), itemRect(), maximumSize(), minimumSize(), next(), paintSeparators(), plug(), prev(), realMaxSize(), realMinSize(), remove(), QMainWindowLayoutState::restoreState(), restoreState(), saveState(), separatorMove(), separatorRect(), separatorRegion(), setTabBarShape(), sizeHint(), QDockAreaLayoutItem::skip(), split(), tab(), QMainWindow::tabifiedDockWidgets(), takeAt(), unnest(), unplug(), updateSeparatorWidgets(), updateTabBar(), usedSeparatorWidgets(), and usedTabBars().
QMainWindow* QDockAreaLayoutInfo::mainWindow |
Definition at line 197 of file qdockarealayout_p.h.
Referenced by insertGap(), mainWindowLayout(), restoreState(), split(), and tab().
Qt::Orientation QDockAreaLayoutInfo::o |
Definition at line 195 of file qdockarealayout_p.h.
Referenced by QDockAreaLayout::addDockWidget(), findSeparator(), fitItems(), gapIndex(), QDockAreaLayout::gapRect(), hasFixedSize(), insertGap(), itemRect(), maximumSize(), minimumSize(), paintSeparators(), QDockAreaLayout::paintSeparators(), plug(), realMaxSize(), realMinSize(), restoreState(), saveState(), QMainWindowPrivate::separatorCursor(), separatorMove(), QDockAreaLayout::separatorMove(), separatorRect(), sizeHint(), split(), and tab().
QRect QDockAreaLayoutInfo::rect |
Definition at line 196 of file qdockarealayout_p.h.
Referenced by apply(), clear(), constrainedRect(), QDockAreaLayout::findSeparator(), fitItems(), QDockAreaLayout::gapIndex(), QDockAreaLayout::gapRect(), QDockAreaLayout::getGrid(), insertGap(), itemRect(), paintSeparators(), QDockAreaLayout::paintSeparators(), plug(), QDockAreaLayout::restoreState(), QDockAreaLayout::saveState(), separatorMove(), separatorRect(), QDockAreaLayout::separatorRect(), QDockAreaLayout::setGrid(), size(), and tabContentRect().
const int* QDockAreaLayoutInfo::sep |
Definition at line 192 of file qdockarealayout_p.h.
Referenced by apply(), findSeparator(), fitItems(), insertGap(), maximumSize(), minimumSize(), plug(), realMaxSize(), realMinSize(), restoreState(), separatorMove(), separatorMoveHelper(), separatorRect(), sizeHint(), split(), tab(), and unplug().
Definition at line 193 of file qdockarealayout_p.h.
Referenced by updateSeparatorWidgets(), and usedSeparatorWidgets().
QTabBar* QDockAreaLayoutInfo::tabBar |
Definition at line 210 of file qdockarealayout_p.h.
Referenced by apply(), clear(), currentTabId(), info(), setCurrentTabId(), setTabBarShape(), tabBarMinimumSize(), tabBarSizeHint(), QMainWindow::tabifiedDockWidgets(), updateTabBar(), and usedTabBars().
int QDockAreaLayoutInfo::tabBarShape |
Definition at line 211 of file qdockarealayout_p.h.
Referenced by QDockAreaLayout::addDockWidget(), apply(), insertGap(), maximumSize(), minimumSize(), restoreState(), setTabBarShape(), sizeHint(), split(), tab(), tabContentRect(), and updateTabBar().
bool QDockAreaLayoutInfo::tabbed |
Definition at line 209 of file qdockarealayout_p.h.
Referenced by QDockAreaLayout::addDockWidget(), apply(), clear(), currentTabId(), findSeparator(), fitItems(), gapIndex(), QDockAreaLayout::gapRect(), info(), insertGap(), itemRect(), maximumSize(), minimumSize(), paintSeparators(), plug(), QMainWindowLayout::raise(), restoreState(), saveState(), separatorMove(), separatorRect(), separatorRegion(), setCurrentTabId(), sizeHint(), tab(), tabContentRect(), QMainWindow::tabifiedDockWidgets(), unplug(), updateSeparatorWidgets(), updateTabBar(), and usedTabBars().