OpendTect-6_4
6.4
|
Specifications for boolean inputs. More...
Public Member Functions | |
BoolInpSpec (bool yesno, const uiString &truetxt=uiStrings::sYes(), const uiString &falsetxt=uiStrings::sNo(), bool isset=true) | |
BoolInpSpec (const BoolInpSpec &) | |
virtual bool | isUndef (int idx=0) const |
virtual DataInpSpec * | clone () const |
uiString | trueFalseTxt (bool tf=true) const |
void | setTrueFalseTxt (bool, const uiString &) |
bool | checked () const |
void | setChecked (bool yesno) |
virtual const char * | text (int idx=0) const |
virtual bool | setText (const char *s, int idx=0) |
virtual bool | getBoolValue (int idx=0) const |
virtual void | setValue (bool, int idx=0) |
virtual void | setValue (int val, int idx=0) |
virtual void | setValue (float val, int idx=0) |
virtual void | setValue (double val, int idx=0) |
virtual bool | getDefaultBoolValue (int idx=0) const |
virtual void | setDefaultValue (bool, int idx=0) |
virtual void | setDefaultValue (int val, int idx=0) |
virtual void | setDefaultValue (float val, int idx=0) |
virtual void | setDefaultValue (double val, int idx=0) |
virtual void | setDefaultValue (const char *val, int idx=0) |
bool | isSet () const |
void | setSet (bool yesno=true) |
Public Member Functions inherited from DataInpSpec | |
double | getdValue (int idx=0) const |
float | getfValue (int idx=0) const |
Protected Attributes | |
uiString | truetext_ |
uiString | falsetext_ |
bool | yn_ |
bool | defaultyn_ |
bool | isset_ |
Protected Attributes inherited from DataInpSpec | |
DataType | tp_ |
bool | prefempty_ |
TypeSet< int > | nameidxs_ |
BufferStringSet | names_ |
Private Member Functions | |
mODTextTranslationClass (BoolInpSpec) | |
Additional Inherited Members | |
Protected Member Functions inherited from DataInpSpec | |
void | setType (DataType t) |
Specifications for boolean inputs.
This specifies a boolean input field. If the second char string is "" or NULL, then a checkbox will be created. Otherwise two connected radio buttons will do the job. Default will create two radio buttons "Yes" and "No". When calling setText("xx") on the resulting uiGenInput, it will try to set the boolean value according to the given true/false text's or "Yes"/"No". It does not change the underlying true/false texts.
BoolInpSpec::BoolInpSpec | ( | bool | yesno, |
const uiString & | truetxt = uiStrings::sYes() , |
||
const uiString & | falsetxt = uiStrings::sNo() , |
||
bool | isset = true |
||
) |
BoolInpSpec::BoolInpSpec | ( | const BoolInpSpec & | ) |
bool BoolInpSpec::checked | ( | ) | const |
|
virtual |
Implements DataInpSpec.
|
virtual |
Reimplemented from DataInpSpec.
|
virtual |
Reimplemented from DataInpSpec.
|
inline |
|
virtual |
Implements DataInpSpec.
|
private |
void BoolInpSpec::setChecked | ( | bool | yesno | ) |
|
virtual |
Reimplemented from DataInpSpec.
|
inlinevirtual |
Reimplemented from DataInpSpec.
|
inlinevirtual |
Reimplemented from DataInpSpec.
|
inlinevirtual |
Reimplemented from DataInpSpec.
|
inlinevirtual |
Reimplemented from DataInpSpec.
|
inline |
|
virtual |
Implements DataInpSpec.
void BoolInpSpec::setTrueFalseTxt | ( | bool | , |
const uiString & | |||
) |
|
virtual |
Reimplemented from DataInpSpec.
|
inlinevirtual |
Reimplemented from DataInpSpec.
|
inlinevirtual |
Reimplemented from DataInpSpec.
|
inlinevirtual |
Reimplemented from DataInpSpec.
|
virtual |
Implements DataInpSpec.
uiString BoolInpSpec::trueFalseTxt | ( | bool | tf = true | ) | const |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019