DynExp
Highly flexible laboratory automation for dynamically changing experiments.
DynExp::QModuleDockWidget Class Reference

Provides a frame for QModuleWidget windows, which are undocked from the DynExpManager's QMdiArea. More...

+ Inheritance diagram for DynExp::QModuleDockWidget:

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

QModuleBaseOwner
 Module owning this user interface window. More...
 

Detailed Description

Provides a frame for QModuleWidget windows, which are undocked from the DynExpManager's QMdiArea.

Definition at line 1178 of file Module.h.

Constructor & Destructor Documentation

◆ QModuleDockWidget()

DynExp::QModuleDockWidget::QModuleDockWidget ( QModuleBase Owner,
QWidget *  Parent,
Qt::WindowFlags  Flags 
)

Constructs a QModuleDockWidget instance.

Parameters
OwnerModule owning this user interface window.
ParentParent Qt widget of this user interface window. There is no need to pass anything else than nullptr here.
FlagsCombination of Qt::WindowFlags to decorate the QModuleDockWidget instance with. Refer to QModuleWidget::GetQtWindowFlags().

Definition at line 477 of file Module.cpp.

◆ ~QModuleDockWidget()

DynExp::QModuleDockWidget::~QModuleDockWidget ( )
default

Member Function Documentation

◆ closeEvent()

void DynExp::QModuleDockWidget::closeEvent ( QCloseEvent *  Event)
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.

Parameters
EventRefer to Qt documentation.

Definition at line 482 of file Module.cpp.

◆ keyPressEvent()

void DynExp::QModuleDockWidget::keyPressEvent ( QKeyEvent *  Event)
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.

Parameters
EventQt event to redirect. Refer to Qt documentation.

Definition at line 489 of file Module.cpp.

Member Data Documentation

◆ Owner

QModuleBase& DynExp::QModuleDockWidget::Owner
private

Module owning this user interface window.

Definition at line 1213 of file Module.h.


The documentation for this class was generated from the following files: