DynExp
Highly flexible laboratory automation for dynamically changing experiments.
|
Provides a frame for QModuleWidget
windows, which are undocked from the DynExpManager's
QMdiArea.
More...
Public Member Functions | |
QModuleDockWidget (QModuleBase &Owner, QWidget *Parent, Qt::WindowFlags Flags) | |
Constructs a QModuleDockWidget instance. More... | |
~QModuleDockWidget ()=default | |
Private Member Functions | |
virtual void | closeEvent (QCloseEvent *Event) override |
Qt event indicating that the QModuleDockWidget window is closed. Docks the module window again to DynExp's main window. This Qt event is only triggered when the module window is contained in the QModuleDockWidget . More... | |
virtual void | keyPressEvent (QKeyEvent *Event) override |
Qt event indicating that keys were pressed when the QModuleDockWidget window was focused. Redirects "Ctrl + <Number key>" key sequences to DynExp's main window. Refer to QModuleBase::FocusMainWindow() and QModuleBase::SendKeyPressEventToMainWindow(). This Qt event is only triggered when the module window is contained in the QModuleDockWidget . More... | |
Private Attributes | |
QModuleBase & | Owner |
Module owning this user interface window. More... | |
Provides a frame for QModuleWidget
windows, which are undocked from the DynExpManager's
QMdiArea.
DynExp::QModuleDockWidget::QModuleDockWidget | ( | QModuleBase & | Owner, |
QWidget * | Parent, | ||
Qt::WindowFlags | Flags | ||
) |
Constructs a QModuleDockWidget
instance.
Owner | Module owning this user interface window. |
Parent | Parent Qt widget of this user interface window. There is no need to pass anything else than nullptr here. |
Flags | Combination of Qt::WindowFlags to decorate the QModuleDockWidget instance with. Refer to QModuleWidget::GetQtWindowFlags(). |
Definition at line 477 of file Module.cpp.
|
default |
|
overrideprivatevirtual |
Qt event indicating that the QModuleDockWidget
window is closed. Docks the module window again to DynExp's main window. This Qt event is only triggered when the module window is contained in the QModuleDockWidget
.
Event | Refer to Qt documentation. |
Definition at line 482 of file Module.cpp.
|
overrideprivatevirtual |
Qt event indicating that keys were pressed when the QModuleDockWidget
window was focused. Redirects "Ctrl + <Number key>" key sequences to DynExp's main window. Refer to QModuleBase::FocusMainWindow() and QModuleBase::SendKeyPressEventToMainWindow(). This Qt event is only triggered when the module window is contained in the QModuleDockWidget
.
Event | Qt event to redirect. Refer to Qt documentation. |
Definition at line 489 of file Module.cpp.
|
private |