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

#include <ChoiceListDialog.h>

+ 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

std::unique_ptr< 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 21 of file ChoiceListDialog.h.

Member Typedef Documentation

◆ IndexType

using ChoiceListDialog::IndexType = qulonglong
private

Definition at line 26 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 8 of file ChoiceListDialog.cpp.

◆ ~ChoiceListDialog()

ChoiceListDialog::~ChoiceListDialog ( )
default

Member Function Documentation

◆ accept

void ChoiceListDialog::accept ( )
overrideprivatevirtualslot

Definition at line 125 of file ChoiceListDialog.cpp.

◆ GetParamName()

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

Definition at line 33 of file ChoiceListDialog.h.

◆ GetSelection()

const auto & ChoiceListDialog::GetSelection ( ) const
inline

Definition at line 35 of file ChoiceListDialog.h.

◆ IsOptional()

bool ChoiceListDialog::IsOptional ( ) const
inlinenoexcept

Definition at line 34 of file ChoiceListDialog.h.

◆ OnAddItemClicked

void ChoiceListDialog::OnAddItemClicked ( )
privateslot

Definition at line 63 of file ChoiceListDialog.cpp.

◆ OnMoveItemDownClicked

void ChoiceListDialog::OnMoveItemDownClicked ( )
privateslot

Definition at line 107 of file ChoiceListDialog.cpp.

◆ OnMoveItemUpClicked

void ChoiceListDialog::OnMoveItemUpClicked ( )
privateslot

Definition at line 89 of file ChoiceListDialog.cpp.

◆ OnRemoveItemClicked

void ChoiceListDialog::OnRemoveItemClicked ( )
privateslot

Definition at line 76 of file ChoiceListDialog.cpp.

◆ reject

void ChoiceListDialog::reject ( )
overrideprivatevirtualslot

Definition at line 141 of file ChoiceListDialog.cpp.

◆ showEvent()

void ChoiceListDialog::showEvent ( QShowEvent *  event)
overrideprivatevirtual

Definition at line 22 of file ChoiceListDialog.cpp.

Member Data Documentation

◆ ItemIcon

const QIcon ChoiceListDialog::ItemIcon
private

Definition at line 45 of file ChoiceListDialog.h.

◆ ItemIDsWithLabels

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

Definition at line 42 of file ChoiceListDialog.h.

◆ Optional

const bool ChoiceListDialog::Optional
private

Definition at line 44 of file ChoiceListDialog.h.

◆ ParamName

const std::string ChoiceListDialog::ParamName
private

Definition at line 43 of file ChoiceListDialog.h.

◆ ui

std::unique_ptr<Ui::ChoiceListDialog> ChoiceListDialog::ui
private

Definition at line 40 of file ChoiceListDialog.h.

◆ Values

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

Definition at line 46 of file ChoiceListDialog.h.


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