DynExp
Highly flexible laboratory automation for dynamically changing experiments.
ChoiceListDialog Class Reference
+ Inheritance diagram for ChoiceListDialog:

Public Member Functions

 ChoiceListDialog (QWidget *parent, Util::TextValueListType< IndexType > &&ItemIDsWithLabels, std::string_view ParamName, bool IsOptional, std::string_view IconResourcePath, const std::vector< DynExp::ItemIDType > &Values)
 
 ~ChoiceListDialog ()=default
 
std::string_view GetParamName () const
 
bool IsOptional () const noexcept
 
const auto & GetSelection () const
 

Private Types

using IndexType = qulonglong
 

Private Slots

void OnAddItemClicked ()
 
void OnRemoveItemClicked ()
 
void OnMoveItemUpClicked ()
 
void OnMoveItemDownClicked ()
 
virtual void accept () override
 
virtual void reject () override
 

Private Member Functions

virtual void showEvent (QShowEvent *event) override
 

Private Attributes

Ui::ChoiceListDialog ui
 
const Util::TextValueListType< IndexTypeItemIDsWithLabels
 
const std::string ParamName
 
const bool Optional
 
const QIcon ItemIcon
 
std::vector< DynExp::ItemIDTypeValues
 

Detailed Description

Definition at line 17 of file ChoiceListDialog.h.

Member Typedef Documentation

◆ IndexType

using ChoiceListDialog::IndexType = qulonglong
private

Definition at line 22 of file ChoiceListDialog.h.

Constructor & Destructor Documentation

◆ ChoiceListDialog()

ChoiceListDialog::ChoiceListDialog ( QWidget *  parent,
Util::TextValueListType< IndexType > &&  ItemIDsWithLabels,
std::string_view  ParamName,
bool  IsOptional,
std::string_view  IconResourcePath,
const std::vector< DynExp::ItemIDType > &  Values 
)

Definition at line 7 of file ChoiceListDialog.cpp.

◆ ~ChoiceListDialog()

ChoiceListDialog::~ChoiceListDialog ( )
default

Member Function Documentation

◆ accept

void ChoiceListDialog::accept ( )
overrideprivatevirtualslot

Definition at line 123 of file ChoiceListDialog.cpp.

◆ GetParamName()

std::string_view ChoiceListDialog::GetParamName ( ) const
inline

Definition at line 29 of file ChoiceListDialog.h.

◆ GetSelection()

const auto& ChoiceListDialog::GetSelection ( ) const
inline

Definition at line 31 of file ChoiceListDialog.h.

◆ IsOptional()

bool ChoiceListDialog::IsOptional ( ) const
inlinenoexcept

Definition at line 30 of file ChoiceListDialog.h.

◆ OnAddItemClicked

void ChoiceListDialog::OnAddItemClicked ( )
privateslot

Definition at line 61 of file ChoiceListDialog.cpp.

◆ OnMoveItemDownClicked

void ChoiceListDialog::OnMoveItemDownClicked ( )
privateslot

Definition at line 105 of file ChoiceListDialog.cpp.

◆ OnMoveItemUpClicked

void ChoiceListDialog::OnMoveItemUpClicked ( )
privateslot

Definition at line 87 of file ChoiceListDialog.cpp.

◆ OnRemoveItemClicked

void ChoiceListDialog::OnRemoveItemClicked ( )
privateslot

Definition at line 74 of file ChoiceListDialog.cpp.

◆ reject

void ChoiceListDialog::reject ( )
overrideprivatevirtualslot

Definition at line 139 of file ChoiceListDialog.cpp.

◆ showEvent()

void ChoiceListDialog::showEvent ( QShowEvent *  event)
overrideprivatevirtual

Definition at line 20 of file ChoiceListDialog.cpp.

Member Data Documentation

◆ ItemIcon

const QIcon ChoiceListDialog::ItemIcon
private

Definition at line 41 of file ChoiceListDialog.h.

◆ ItemIDsWithLabels

const Util::TextValueListType<IndexType> ChoiceListDialog::ItemIDsWithLabels
private

Definition at line 38 of file ChoiceListDialog.h.

◆ Optional

const bool ChoiceListDialog::Optional
private

Definition at line 40 of file ChoiceListDialog.h.

◆ ParamName

const std::string ChoiceListDialog::ParamName
private

Definition at line 39 of file ChoiceListDialog.h.

◆ ui

Ui::ChoiceListDialog ChoiceListDialog::ui
private

Definition at line 36 of file ChoiceListDialog.h.

◆ Values

std::vector<DynExp::ItemIDType> ChoiceListDialog::Values
private

Definition at line 42 of file ChoiceListDialog.h.


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