|
QtCanpool 3.3.0
|
This implements a floating widget that is a dock container that accepts docking of dock widgets like the main window and that can be docked into another dock container. 更多...
#include <qxdock/dockfloatingcontainer.h>

Public 类型 | |
| using | Super = QWidget |
Public 成员函数 | |
| DockFloatingContainer (DockWindow *window) | |
| DockFloatingContainer (DockPanel *panel) | |
| DockFloatingContainer (DockWidget *widget) | |
| virtual | ~DockFloatingContainer () |
| bool | isClosable () const |
| This function returns true, if it can be closed. | |
| DockContainer * | dockContainer () const |
| DockWidget * | topLevelDockWidget () const |
| This function returns the first dock widget in the first dock panel. | |
| QList< DockWidget * > | dockWidgets () const |
| This function returns a list of all dock widget in this floating widget. | |
| bool | hasTopLevelDockWidget () const |
| This function returns true, if this floating widget has only one single visible dock widget in a single visible dock panel. | |
| void | finishDropOperation () |
| void | onDockAreasAddedOrRemoved () |
| void | onDockAreaCurrentChanged (int index) |
Public 成员函数 继承自 QxDock::DockFloatingWidget | |
| virtual | ~DockFloatingWidget ()=default |
Protected 成员函数 | |
| virtual void | startFloating (const QPoint &dragStartMousePos, const QSize &size, Qx::DockDragState dragState, QWidget *mouseEventHandler) override |
| Starts floating. | |
| virtual void | finishDragging () override |
| Tells the widget that to finish dragging if the mouse is released. | |
| void | moveFloating () override |
| Moves the widget to a new position relative to the position given when startFloating() was called. | |
| void | deleteContent () |
| This function deletes all dock widgets in it. | |
| void | updateWindowTitle () |
| bool | restoreState (DockStateReader &stream, bool testing) |
| virtual void | closeEvent (QCloseEvent *event) override |
| virtual void | hideEvent (QHideEvent *event) override |
| virtual void | showEvent (QShowEvent *event) override |
| virtual void | changeEvent (QEvent *event) override |
友元 | |
| class | DockWindow |
| class | DockWidget |
| class | DockPanel |
| class | DockWindowPrivate |
| class | DockFloatingTitleBar |
This implements a floating widget that is a dock container that accepts docking of dock widgets like the main window and that can be docked into another dock container.
Every floating window of the docking system is a DockFloatingContainer.
在文件 dockfloatingcontainer.h 第 34 行定义.
| using QxDock::DockFloatingContainer::Super = QWidget |
在文件 dockfloatingcontainer.h 第 38 行定义.
|
explicit |
在文件 dockfloatingcontainer.cpp 第 270 行定义.
|
explicit |
在文件 dockfloatingcontainer.cpp 第 339 行定义.
|
explicit |
在文件 dockfloatingcontainer.cpp 第 351 行定义.
|
virtual |
在文件 dockfloatingcontainer.cpp 第 364 行定义.
|
overrideprotectedvirtual |
在文件 dockfloatingcontainer.cpp 第 744 行定义.
|
overrideprotectedvirtual |
在文件 dockfloatingcontainer.cpp 第 674 行定义.
|
protected |
This function deletes all dock widgets in it.
This functions should be called only from dock window in its destructor before deleting the floating widget
在文件 dockfloatingcontainer.cpp 第 619 行定义.
| DockContainer * QxDock::DockFloatingContainer::dockContainer | ( | ) | const |
在文件 dockfloatingcontainer.cpp 第 383 行定义.
| QList< DockWidget * > QxDock::DockFloatingContainer::dockWidgets | ( | ) | const |
This function returns a list of all dock widget in this floating widget.
This is a simple convenience function that simply calls the dockWidgets() function of the internal container widget.
在文件 dockfloatingcontainer.cpp 第 405 行定义.
|
overrideprotectedvirtual |
Tells the widget that to finish dragging if the mouse is released.
This function should be called from a mouse release event handler to finish the dragging
实现了 QxDock::DockFloatingWidget.
在文件 dockfloatingcontainer.cpp 第 572 行定义.
| void QxDock::DockFloatingContainer::finishDropOperation | ( | ) |
在文件 dockfloatingcontainer.cpp 第 423 行定义.
| bool QxDock::DockFloatingContainer::hasTopLevelDockWidget | ( | ) | const |
This function returns true, if this floating widget has only one single visible dock widget in a single visible dock panel.
The single dock widget is a real top level floating widget because no other widgets are docked.
在文件 dockfloatingcontainer.cpp 第 417 行定义.
|
overrideprotectedvirtual |
在文件 dockfloatingcontainer.cpp 第 712 行定义.
| bool QxDock::DockFloatingContainer::isClosable | ( | ) | const |
This function returns true, if it can be closed.
It can be closed, if all dock widgets in all dock areas can be closed
在文件 dockfloatingcontainer.cpp 第 377 行定义.
|
overrideprotectedvirtual |
Moves the widget to a new position relative to the position given when startFloating() was called.
This function should be called from a mouse move event handler to move the floating widget on mouse move events.
实现了 QxDock::DockFloatingWidget.
在文件 dockfloatingcontainer.cpp 第 586 行定义.
| void QxDock::DockFloatingContainer::onDockAreaCurrentChanged | ( | int | index | ) |
在文件 dockfloatingcontainer.cpp 第 533 行定义.
| void QxDock::DockFloatingContainer::onDockAreasAddedOrRemoved | ( | ) |
在文件 dockfloatingcontainer.cpp 第 514 行定义.
|
protected |
在文件 dockfloatingcontainer.cpp 第 659 行定义.
|
overrideprotectedvirtual |
在文件 dockfloatingcontainer.cpp 第 734 行定义.
|
overrideprotectedvirtual |
Starts floating.
This function should get called typically from a mouse press event handler
实现了 QxDock::DockFloatingWidget.
在文件 dockfloatingcontainer.cpp 第 541 行定义.
| DockWidget * QxDock::DockFloatingContainer::topLevelDockWidget | ( | ) | const |
This function returns the first dock widget in the first dock panel.
If the function hasTopLevelDockWidget() returns true, then this function returns this single dock widget.
在文件 dockfloatingcontainer.cpp 第 394 行定义.
|
protected |
在文件 dockfloatingcontainer.cpp 第 639 行定义.
|
friend |
在文件 dockfloatingcontainer.h 第 108 行定义.
|
friend |
在文件 dockfloatingcontainer.h 第 106 行定义.
|
friend |
在文件 dockfloatingcontainer.h 第 105 行定义.
|
friend |
在文件 dockfloatingcontainer.h 第 104 行定义.
|
friend |
在文件 dockfloatingcontainer.h 第 107 行定义.