QtCanpool 3.3.0
载入中...
搜索中...
未找到
QxDock::DockSubWindow类 参考

#include <qxdock/docksubwindow.h>

类 QxDock::DockSubWindow 继承关系图:

Public 类型

using Super = DockWindow
 
- Public 类型 继承自 QxDock::DockWindow
using Super = DockContainer
 
- Public 类型 继承自 QxDock::DockContainer
using Super = QFrame
 

Public 成员函数

 DockSubWindow (DockGroup *parent)
 
virtual ~DockSubWindow () override
 
void fillViewMenu (QMenu *menu, const std::vector< DockSubWindow * > &moveTo)
 
void fillMoveMenu (QMenu *menu, const std::vector< DockSubWindow * > &moveTo)
 
void addPerspectiveRec (const QString &name)
 
void openPerspectiveRec (const QString &name)
 
void removePerspectivesRec ()
 
void loadPerspectivesRec (QSettings &Settings)
 
void savePerspectivesRec (QSettings &Settings) const
 
void childWindows (std::vector< DockSubWindow * > &subs, bool rec) const
 
std::vector< DockSubWindow * > allSubWindows (bool includeThis, bool rec) const
 
std::vector< std::pair< DockSubWindow *, DockWidget * > > allDockWidgets (bool includeThis, bool rec) const
 
QString getGroupName ()
 
QString getPersistGroupName ()
 
DockGroup * group ()
 
QMap< QString, QStringList > getGroupContents ()
 
DockPanel * getInsertDefaultPos ()
 
std::vector< DockWidget * > getWidgetsInGUIOrder () const
 
- Public 成员函数 继承自 QxDock::DockWindow
 DockWindow (QWidget *parent=nullptr)
 
virtual ~DockWindow ()
 
DockPanel * addDockWidget (Qx::DockWidgetArea area, DockWidget *w, DockPanel *p=nullptr, int index=-1)
 Adds dockwidget into the given area.
 
DockPanel * addDockWidgetTab (Qx::DockWidgetArea area, DockWidget *w)
 This function will add the given DockWidget to the given dock area as a new tab.
 
DockPanel * addDockWidgetTab (DockWidget *w, DockPanel *p, int index=-1)
 This function will add the given DockWidget to the given DockPanel as a new tab.
 
DockPanel * addDockWidgetToContainer (Qx::DockWidgetArea area, DockWidget *w, DockContainer *container)
 Adds dockwidget into the given container.
 
void removeDockWidget (DockWidget *w)
 
DockWidget * findDockWidget (const QString &objectName) const
 Searches for a registered dock widget with the given objectName
 
DockAutoHideContainer * addAutoHideDockWidget (Qx::DockSideBarArea area, DockWidget *w)
 Adds an Auto-Hide widget to the dock window container pinned to the given side bar area.
 
DockAutoHideContainer * addAutoHideDockWidgetToContainer (Qx::DockSideBarArea area, DockWidget *w, DockContainer *container)
 Adds an Auto-Hide widget to the given container pinned to the given side bar area in this container.
 
DockFloatingContainer * addDockWidgetFloating (DockWidget *w)
 Adds the given DockWidget floating and returns the created DockFloatingContainer instance.
 
const QList< DockContainer * > dockContainers () const
 Returns the list of all active and visible dock containers Dock containers are the main dock manager and all floating widgets
 
QMap< QString, DockWidget * > dockWidgetsMap () const
 This function returns a readable reference to the internal dock widgets map so that it is possible to iterate over all dock widgets
 
DockWidget * centralWidget () const
 
DockPanel * setCentralWidget (DockWidget *widget)
 Adds dockwidget widget into the central area and marks it as central widget.
 
bool isLeavingMinimizedState () const
 This function returns true, if the DockWindow window is restoring from minimized state.
 
Qt::ToolButtonStyle dockWidgetToolBarStyle (DockWidget::State state) const
 
void setDockWidgetToolBarStyle (Qt::ToolButtonStyle style, DockWidget::State state)
 This function sets the tool button style for the given dock widget state.
 
QSize dockWidgetToolBarIconSize (DockWidget::State state) const
 
void setDockWidgetToolBarIconSize (const QSize &iconSize, DockWidget::State state)
 This function sets the tool button icon size for the given state.
 
DockWidget::DockWidgetFeatures globallyLockedDockWidgetFeatures () const
 Returns all dock widget features that are globally locked by the dock window.
 
void lockDockWidgetFeaturesGlobally (DockWidget::DockWidgetFeatures features=DockWidget::GloballyLockableFeatures)
 Globally Lock features of all dock widgets to "freeze" the current workspace layout.
 
QList< int > splitterSizes (DockPanel *panel) const
 Returns the sizes of the splitter that contains the dock panel.
 
void setSplitterSizes (DockPanel *panel, const QList< int > &sizes)
 Update the sizes of a splitter Programmatically updates the sizes of a given splitter by calling QSplitter::setSizes().
 
QByteArray saveState (int version=0) const
 Saves the current state of the dockwindow and all its dock widgets into the returned QByteArray.
 
bool restoreState (const QByteArray &state, int version=0)
 Restores the state of this dockwindow dockwidgets.
 
bool isRestoringState () const
 This function returns true between the restoringState() and stateRestored() signals.
 
void addPerspective (const QString &uniquePrespectiveName)
 Saves the current perspective to the internal list of perspectives.
 
void removePerspective (const QString &name)
 
void removePerspectives (const QStringList &names)
 
QStringList perspectiveNames () const
 
void savePerspectives (QSettings &settings) const
 
void loadPerspectives (QSettings &settings)
 
void dockWidgetAdded (DockWidget *w)
 
void dockWidgetAboutToBeRemoved (DockWidget *w)
 
void dockWidgetRemoved (DockWidget *w)
 
void floatingWidgetCreated (DockFloatingContainer *floatingWidget)
 
void focusedDockWidgetChanged (DockWidget *old, DockWidget *now)
 
void restoringState ()
 
void stateRestored ()
 
void perspectiveListChanged ()
 
void perspectiveListLoaded ()
 
void perspectivesRemoved ()
 
void openingPerspective (const QString &perspectiveName)
 
void perspectiveOpened (const QString &perspectiveName)
 
void setDockWidgetFocused (DockWidget *w)
 Request a focus change to the given dock widget.
 
void endLeavingMinimizedState ()
 
void openPerspective (const QString &perspectiveName)
 
void hideWindowAndFloatingWidgets ()
 hide DockWindow and all floating widgets.
 
- Public 成员函数 继承自 QxDock::DockContainer
 DockContainer (DockWindow *window, QWidget *parent=nullptr)
 
virtual ~DockContainer ()
 
DockPanel * addDockWidget (Qx::DockWidgetArea area, DockWidget *w, DockPanel *p=nullptr, int index=-1)
 Adds dockwidget into the given area.
 
void removeDockWidget (DockWidget *w)
 
virtual unsigned int zOrderIndex () const
 
bool isInFrontOf (DockContainer *other) const
 This function returns true if this container widgets z order index is higher than the index of the container widget given in other parameter
 
DockWindow * dockWindow () const
 
DockPanel * dockPanelAt (const QPoint &globalPos) const
 
DockPanel * dockPanel (int index) const
 
QList< DockPanel * > openedDockPanels () const
 Returns the list of dock panels that are not closed If all dock widgets in a dock panel are closed, the dock panel will be closed
 
QList< DockWidget * > openedDockWidgets () const
 Returns a list for all open dock widgets in all open dock panels
 
bool hasOpenDockPanels () const
 This function returns true, if the container has open dock panels.
 
bool hasTopLevelDockWidget () const
 This function returns true if this dock panel has only one single visible dock widget.
 
int dockPanelCount () const
 
int visibleDockPanelCount () const
 
DockWidget::DockWidgetFeatures features () const
 This functions returns the dock widget features of all dock widget in this container.
 
bool isFloating () const
 
DockFloatingContainer * floatingWidget () const
 If this dock container is in a floating widget, this function returns the floating widget.
 
void closeOtherAreas (DockPanel *keepOpenPanel)
 
DockSideBar * autoHideSideBar (Qx::DockSideBarArea area) const
 
QList< DockAutoHideContainer * > autoHideWidgets () const
 
QRect contentRect () const
 Returns the content rectangle mapped to global space.
 
void dockAreasAdded ()
 
void dockAreasRemoved ()
 
void autoHideWidgetCreated (DockAutoHideContainer *autoHideWidget)
 
void dockAreaViewToggled (DockPanel *panel, bool open)
 

静态 Public 成员函数

static DockSubWindow * subWindow (DockWidget *widget)
 
static QString getGroupNameFromPersistGroupName (QString persistGroupName)
 

额外继承的成员函数

- Protected 成员函数 继承自 QxDock::DockWindow
void registerDockContainer (DockContainer *container)
 
void removeDockContainer (DockContainer *container)
 
void registerFloatingWidget (DockFloatingContainer *floatingWidget)
 
void removeFloatingWidget (DockFloatingContainer *floatingWidget)
 
DockOverlay * containerOverlay () const
 
DockOverlay * panelOverlay () const
 
void notifyDockAreaRelocation (QWidget *droppedWidget)
 
void notifyFloatingWidgetDrop (DockFloatingContainer *floatingWidget)
 
DockFocusController * dockFocusController () const
 
void restoreHiddenFloatingWidgets ()
 
bool eventFilter (QObject *obj, QEvent *e) override
 
virtual void showEvent (QShowEvent *e) override
 
- Protected 成员函数 继承自 QxDock::DockContainer
DockSplitter * rootSplitter () const
 Access function for the internal root splitter
 
void createRootSplitter ()
 
void addDockPanel (DockPanel *panel, Qx::DockWidgetArea area=Qx::CenterDockWidgetArea)
 
void removeDockPanel (DockPanel *panel)
 
QList< QPointer< DockPanel > > removeAllDockPanels ()
 Remove all dock panles and returns the list of removed dock panles
 
DockWidget * topLevelDockWidget () const
 If hasTopLevelDockWidget() returns true, this function returns the one and only visible dock widget.
 
DockPanel * topLevelDockPanel () const
 
DockPanel * lastAddedDockPanel (Qx::DockWidgetArea area) const
 This function returns the last added dock panel for the given area identifier or 0 if no dock panel has been added for the given area
 
QList< DockWidget * > dockWidgets () const
 This function returns a list of all dock widgets in this container.
 
void updateSplitterHandles (QSplitter *splitter)
 This function forces the dock container widget to update handles of splitters based on resize modes of dock widgets contained in the container.
 
void dropFloatingWidget (DockFloatingContainer *floatingWidget, const QPoint &targetPos)
 Drop floating widget into the container
 
void dropWidget (QWidget *widget, Qx::DockWidgetArea dropArea, DockPanel *targetPanel, int tabIndex=-1)
 Drop a dock panel or a dock widget given in widget parameter.
 
void createSideTabBarWidgets ()
 
DockAutoHideContainer * createAndSetupAutoHideContainer (Qx::DockSideBarArea area, DockWidget *w, int tabIndex=-1)
 Creates and initializes a dockwidget auto hide container into the given area.
 
void registerAutoHideWidget (DockAutoHideContainer *autoHideWidget)
 
void removeAutoHideWidget (DockAutoHideContainer *autoHideWidget)
 
void handleAutoHideWidgetEvent (QEvent *e, QWidget *w)
 
void saveState (QXmlStreamWriter &s) const
 
bool restoreState (DockStateReader &s, bool testing)
 
virtual bool event (QEvent *e) override
 Handles activation events to update zOrderIndex
 

详细描述

在文件 docksubwindow.h 第 20 行定义.

成员类型定义说明

◆ Super

在文件 docksubwindow.h 第 24 行定义.

构造及析构函数说明

◆ DockSubWindow()

QxDock::DockSubWindow::DockSubWindow ( DockGroup *  parent)
explicit

在文件 docksubwindow.cpp 第 29 行定义.

◆ ~DockSubWindow()

QxDock::DockSubWindow::~DockSubWindow ( )
overridevirtual

在文件 docksubwindow.cpp 第 37 行定义.

成员函数说明

◆ addPerspectiveRec()

void QxDock::DockSubWindow::addPerspectiveRec ( const QString &  name)

在文件 docksubwindow.cpp 第 94 行定义.

◆ allDockWidgets()

std::vector< std::pair< DockSubWindow *, DockWidget * > > QxDock::DockSubWindow::allDockWidgets ( bool  includeThis,
bool  rec 
) const

在文件 docksubwindow.cpp 第 169 行定义.

◆ allSubWindows()

std::vector< DockSubWindow * > QxDock::DockSubWindow::allSubWindows ( bool  includeThis,
bool  rec 
) const

在文件 docksubwindow.cpp 第 160 行定义.

◆ childWindows()

void QxDock::DockSubWindow::childWindows ( std::vector< DockSubWindow * > &  subs,
bool  rec 
) const

在文件 docksubwindow.cpp 第 146 行定义.

◆ fillMoveMenu()

void QxDock::DockSubWindow::fillMoveMenu ( QMenu *  menu,
const std::vector< DockSubWindow * > &  moveTo 
)

在文件 docksubwindow.cpp 第 75 行定义.

◆ fillViewMenu()

void QxDock::DockSubWindow::fillViewMenu ( QMenu *  menu,
const std::vector< DockSubWindow * > &  moveTo 
)

在文件 docksubwindow.cpp 第 42 行定义.

◆ getGroupContents()

QMap< QString, QStringList > QxDock::DockSubWindow::getGroupContents ( )

在文件 docksubwindow.cpp 第 210 行定义.

◆ getGroupName()

QString QxDock::DockSubWindow::getGroupName ( )

在文件 docksubwindow.cpp 第 179 行定义.

◆ getGroupNameFromPersistGroupName()

QString QxDock::DockSubWindow::getGroupNameFromPersistGroupName ( QString  persistGroupName)
static

在文件 docksubwindow.cpp 第 194 行定义.

◆ getInsertDefaultPos()

DockPanel * QxDock::DockSubWindow::getInsertDefaultPos ( )

在文件 docksubwindow.cpp 第 220 行定义.

◆ getPersistGroupName()

QString QxDock::DockSubWindow::getPersistGroupName ( )

在文件 docksubwindow.cpp 第 186 行定义.

◆ getWidgetsInGUIOrder()

std::vector< DockWidget * > QxDock::DockSubWindow::getWidgetsInGUIOrder ( ) const

在文件 docksubwindow.cpp 第 228 行定义.

◆ group()

DockGroup * QxDock::DockSubWindow::group ( )

在文件 docksubwindow.cpp 第 204 行定义.

◆ loadPerspectivesRec()

void QxDock::DockSubWindow::loadPerspectivesRec ( QSettings &  Settings)

在文件 docksubwindow.cpp 第 118 行定义.

◆ openPerspectiveRec()

void QxDock::DockSubWindow::openPerspectiveRec ( const QString &  name)

在文件 docksubwindow.cpp 第 102 行定义.

◆ removePerspectivesRec()

void QxDock::DockSubWindow::removePerspectivesRec ( )

在文件 docksubwindow.cpp 第 110 行定义.

◆ savePerspectivesRec()

void QxDock::DockSubWindow::savePerspectivesRec ( QSettings &  Settings) const

在文件 docksubwindow.cpp 第 129 行定义.

◆ subWindow()

DockSubWindow * QxDock::DockSubWindow::subWindow ( DockWidget *  widget)
static

在文件 docksubwindow.cpp 第 140 行定义.


该类的文档由以下文件生成: