Developer Documentation
VSI::SelectionWidget Class Reference

#include <Plugin-VSI/types/selectionWidget.hh>

Inheritance diagram for VSI::SelectionWidget:
VSI::TypeWidget

Public Member Functions

 SelectionWidget (QMap< QString, QString > &_hints, const QString &_typeName, QWidget *_parent=NULL)
 Constructor. More...
 
 ~SelectionWidget ()
 Destructor. More...
 
QString toValue () override
 Convert current value to string. More...
 
void fromValue (QString _from) override
 Read value from string. More...
 
void toDefault () override
 Reset to default. More...
 
- Public Member Functions inherited from VSI::TypeWidget
 TypeWidget (QMap< QString, QString > &_hints, const QString &_typeName, QWidget *_parent=NULL)
 Constructor. More...
 
virtual ~TypeWidget ()
 Destructor. More...
 
virtual QString toValue ()=0
 Return the type configuration result to a string. More...
 
virtual void fromValue (QString _from)=0
 Set configuration to the value of the given string. More...
 
virtual void toDefault ()=0
 reset the widget to default More...
 

Private Attributes

QVector< QPair< QString, QString > > names_
 
bool multiple_
 
QStringList default_
 
QComboBox * combo_
 
QVector< QCheckBox * > checkBox_
 

Detailed Description

Widget to configure selection inputs

Definition at line 66 of file selectionWidget.hh.

Constructor & Destructor Documentation

◆ SelectionWidget()

VSI::SelectionWidget::SelectionWidget ( QMap< QString, QString > &  _hints,
const QString &  _typeName,
QWidget *  _parent = NULL 
)

Constructor.

Definition at line 64 of file selectionWidget.cc.

◆ ~SelectionWidget()

VSI::SelectionWidget::~SelectionWidget ( )

Destructor.

Definition at line 132 of file selectionWidget.cc.

Member Function Documentation

◆ fromValue()

void VSI::SelectionWidget::fromValue ( QString  _from)
overridevirtual

Read value from string.

Implements VSI::TypeWidget.

Definition at line 166 of file selectionWidget.cc.

◆ toDefault()

void VSI::SelectionWidget::toDefault ( )
overridevirtual

Reset to default.

Implements VSI::TypeWidget.

Definition at line 203 of file selectionWidget.cc.

◆ toValue()

QString VSI::SelectionWidget::toValue ( )
overridevirtual

Convert current value to string.

Implements VSI::TypeWidget.

Definition at line 139 of file selectionWidget.cc.

Member Data Documentation

◆ checkBox_

QVector<QCheckBox *> VSI::SelectionWidget::checkBox_
private

Definition at line 92 of file selectionWidget.hh.

◆ combo_

QComboBox* VSI::SelectionWidget::combo_
private

Definition at line 91 of file selectionWidget.hh.

◆ default_

QStringList VSI::SelectionWidget::default_
private

Definition at line 89 of file selectionWidget.hh.

◆ multiple_

bool VSI::SelectionWidget::multiple_
private

Definition at line 88 of file selectionWidget.hh.

◆ names_

QVector<QPair <QString,QString> > VSI::SelectionWidget::names_
private

Definition at line 86 of file selectionWidget.hh.


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