DynExp
Highly flexible laboratory automation for dynamically changing experiments.
Loading...
Searching...
No Matches
DynExpModule::LaserControlWidget Class Reference

#include <LaserControl.h>

+ Inheritance diagram for DynExpModule::LaserControlWidget:

Public Member Functions

 LaserControlWidget (LaserControl &Owner, QModuleWidget *parent=nullptr)
 
 ~LaserControlWidget ()=default
 
bool AllowResize () const noexcept override final
 Indicates the resizing behavior of the user interface window. Override to adjust.
 
const auto GetUI () const noexcept
 
void InitializeUI (Util::SynchronizedPointer< LaserControlData > &ModuleData)
 
void UpdateUI (Util::SynchronizedPointer< LaserControlData > &ModuleData)
 
- Public Member Functions inherited from DynExp::QModuleWidget
 QModuleWidget (QModuleBase &Owner, QWidget *Parent=nullptr)
 Constructs a QModuleWidget instance.
 
 ~QModuleWidget ()=default
 
const auto & GetOwner () const noexcept
 Getter for the owning module.
 
Qt::WindowFlags GetQtWindowFlags () const noexcept
 Depending on thr return value of AllowResize(), returns either the return value of GetQtWindowFlagsResizable() or GetQtWindowFlagsNonResizable().
 
std::string GetDataSaveDirectory () const
 Recalls a path where modules might save recorded data to. Used by Util::PromptSaveFilePathModule() to recall the directory the user has chosen last for saving a file. This directory is the same across all modules.
 
void SetDataSaveDirectory (std::string_view Directory) const
 Sets a path where modules might save recorded data to. Used by Util::PromptSaveFilePathModule() to store the directory the user has chosen last for saving a file. This directory is the same across all modules.
 

Private Attributes

std::unique_ptr< Ui::LaserControl > ui
 

Additional Inherited Members

- Static Public Member Functions inherited from DynExp::QModuleWidget
static constexpr Qt::WindowFlags GetQtWindowFlagsResizable ()
 Default Qt window flags for resizable module windows.
 
static constexpr Qt::WindowFlags GetQtWindowFlagsNonResizable ()
 Default Qt window flags for non-resizable module windows.
 

Detailed Description

Definition at line 26 of file LaserControl.h.

Constructor & Destructor Documentation

◆ LaserControlWidget()

DynExpModule::LaserControlWidget::LaserControlWidget ( LaserControl Owner,
QModuleWidget parent = nullptr 
)

Definition at line 10 of file LaserControl.cpp.

◆ ~LaserControlWidget()

DynExpModule::LaserControlWidget::~LaserControlWidget ( )
default

Member Function Documentation

◆ AllowResize()

bool DynExpModule::LaserControlWidget::AllowResize ( ) const
inlinefinaloverridevirtualnoexcept

Indicates the resizing behavior of the user interface window. Override to adjust.

Returns
Return true when the window should be resizable by the user, false otherwise.

Reimplemented from DynExp::QModuleWidget.

Definition at line 34 of file LaserControl.h.

◆ GetUI()

const auto DynExpModule::LaserControlWidget::GetUI ( ) const
inlinenoexcept

Definition at line 36 of file LaserControl.h.

◆ InitializeUI()

void DynExpModule::LaserControlWidget::InitializeUI ( Util::SynchronizedPointer< LaserControlData > &  ModuleData)

Definition at line 20 of file LaserControl.cpp.

◆ UpdateUI()

void DynExpModule::LaserControlWidget::UpdateUI ( Util::SynchronizedPointer< LaserControlData > &  ModuleData)

Definition at line 46 of file LaserControl.cpp.

Member Data Documentation

◆ ui

std::unique_ptr<Ui::LaserControl> DynExpModule::LaserControlWidget::ui
private

Definition at line 42 of file LaserControl.h.


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