Developer Documentation
VSI::BoolWidget Class Reference

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

Inheritance diagram for VSI::BoolWidget:
VSI::TypeWidget

Public Member Functions

 BoolWidget (QMap< QString, QString > &_hints, const QString &_typeName, QWidget *_parent=NULL)
 Constructor. More...
 
 ~BoolWidget ()
 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 Member Functions

bool strToBool (const QString &_str)
 

Private Attributes

bool default_
 
QRadioButton * true_
 
QRadioButton * false_
 

Detailed Description

Widget to configure boolean inputs

Definition at line 61 of file boolWidget.hh.

Constructor & Destructor Documentation

◆ BoolWidget()

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

Constructor.

Definition at line 61 of file boolWidget.cc.

◆ ~BoolWidget()

VSI::BoolWidget::~BoolWidget ( )

Destructor.

Definition at line 89 of file boolWidget.cc.

Member Function Documentation

◆ fromValue()

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

Read value from string.

Implements VSI::TypeWidget.

Definition at line 104 of file boolWidget.cc.

◆ strToBool()

bool VSI::BoolWidget::strToBool ( const QString &  _str)
private

Definition at line 127 of file boolWidget.cc.

◆ toDefault()

void VSI::BoolWidget::toDefault ( )
overridevirtual

Reset to default.

Implements VSI::TypeWidget.

Definition at line 116 of file boolWidget.cc.

◆ toValue()

QString VSI::BoolWidget::toValue ( )
overridevirtual

Convert current value to string.

Implements VSI::TypeWidget.

Definition at line 96 of file boolWidget.cc.

Member Data Documentation

◆ default_

bool VSI::BoolWidget::default_
private

Definition at line 87 of file boolWidget.hh.

◆ false_

QRadioButton* VSI::BoolWidget::false_
private

Definition at line 90 of file boolWidget.hh.

◆ true_

QRadioButton* VSI::BoolWidget::true_
private

Definition at line 89 of file boolWidget.hh.


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