Developer Documentation
|
#include <Plugin-VSI/types/boolWidget.hh>
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... | |
![]() | |
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_ |
Widget to configure boolean inputs
Definition at line 61 of file boolWidget.hh.
VSI::BoolWidget::BoolWidget | ( | QMap< QString, QString > & | _hints, |
const QString & | _typeName, | ||
QWidget * | _parent = NULL |
||
) |
Constructor.
Definition at line 61 of file boolWidget.cc.
VSI::BoolWidget::~BoolWidget | ( | ) |
Destructor.
Definition at line 89 of file boolWidget.cc.
|
overridevirtual |
|
private |
Definition at line 127 of file boolWidget.cc.
|
overridevirtual |
|
overridevirtual |
Convert current value to string.
Implements VSI::TypeWidget.
Definition at line 96 of file boolWidget.cc.
|
private |
Definition at line 87 of file boolWidget.hh.
|
private |
Definition at line 90 of file boolWidget.hh.
|
private |
Definition at line 89 of file boolWidget.hh.