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

#include <EventSender.h>

+ Inheritance diagram for DynExpModule::EventSenderWidget:

Public Member Functions

 EventSenderWidget (EventSender &Owner, QModuleWidget *parent=nullptr)
 
 ~EventSenderWidget ()=default
 
bool AllowResize () const noexcept override final
 Indicates the resizing behavior of the user interface window. Override to adjust.
 
- 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.
 

Public Attributes

std::unique_ptr< Ui::EventSender > ui
 
size_t EventID
 

Private Slots

void OnEventDoubleClicked (QListWidgetItem *Item)
 

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 27 of file EventSender.h.

Constructor & Destructor Documentation

◆ EventSenderWidget()

DynExpModule::EventSenderWidget::EventSenderWidget ( EventSender Owner,
QModuleWidget parent = nullptr 
)

Definition at line 10 of file EventSender.cpp.

◆ ~EventSenderWidget()

DynExpModule::EventSenderWidget::~EventSenderWidget ( )
default

Member Function Documentation

◆ AllowResize()

bool DynExpModule::EventSenderWidget::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 35 of file EventSender.h.

◆ OnEventDoubleClicked

void DynExpModule::EventSenderWidget::OnEventDoubleClicked ( QListWidgetItem *  Item)
privateslot

Definition at line 18 of file EventSender.cpp.

Member Data Documentation

◆ EventID

size_t DynExpModule::EventSenderWidget::EventID

Definition at line 39 of file EventSender.h.

◆ ui

std::unique_ptr<Ui::EventSender> DynExpModule::EventSenderWidget::ui

Definition at line 37 of file EventSender.h.


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