OpendTect  7.0
Public Member Functions | Protected Attributes | List of all members
BoolInpSpec Class Reference

Specifications for boolean inputs. More...

Inheritance diagram for BoolInpSpec:
[legend]

Public Member Functions

 BoolInpSpec (bool yesno, const uiString &truetxt=uiStrings::sYes(), const uiString &falsetxt=uiStrings::sNo(), bool isset=true)
 
 BoolInpSpec (const BoolInpSpec &)
 
bool checked () const
 
DataInpSpecclone () const override
 
bool getBoolValue (int idx=0) const override
 
bool getDefaultBoolValue (int idx=0) const override
 
bool isSet () const
 
bool isUndef (int idx=0) const override
 
void setChecked (bool yesno)
 
void setDefaultValue (bool, int idx=0) override
 
void setDefaultValue (const char *val, int idx=0) override
 
void setDefaultValue (double val, int idx=0) override
 
void setDefaultValue (float val, int idx=0) override
 
void setDefaultValue (int val, int idx=0) override
 
void setSet (bool yesno=true)
 
bool setText (const char *s, int idx=0) override
 
void setTrueFalseTxt (bool, const uiString &)
 
void setValue (bool, int idx=0) override
 
void setValue (double val, int idx=0) override
 
void setValue (float val, int idx=0) override
 
void setValue (int val, int idx=0) override
 
void setValue (od_int64 val, int idx=0) override
 
const char * text (int idx=0) const override
 
uiString trueFalseTxt (bool tf=true) const
 
- Public Member Functions inherited from DataInpSpec
 DataInpSpec (const DataInpSpec &)
 
 DataInpSpec (DataType)
 
virtual ~DataInpSpec ()
 
void fillPar (IOPar &) const
 
virtual float getDefaultfValue (int idx=0) const
 
virtual int getDefaultIntValue (int idx=0) const
 
virtual const char * getDefaultStringValue (int idx=0) const
 
virtual double getDefaultValue (int idx=0) const
 
virtual double getDValue (int idx=0) const
 
double getdValue (int idx=0) const
 
virtual float getFValue (int idx=0) const
 
float getfValue (int idx=0) const
 
virtual od_int64 getInt64Value (int idx=0) const
 
virtual int getIntValue (int idx=0) const
 
virtual bool hasLimits () const
 
virtual bool isInsideLimits (int idx=0) const
 
virtual const char * name (int idx=0) const
 
virtual int nElems () const
 
virtual DataInpSpecsetName (const char *, int idx=0)
 
DataType type () const
 
bool usePar (const IOPar &)
 

Protected Attributes

bool defaultyn_
 
uiString falsetext_
 
bool isset_
 
uiString truetext_
 
bool yn_
 
- Protected Attributes inherited from DataInpSpec
TypeSet< int > nameidxs_
 
BufferStringSet names_
 
bool prefempty_
 
DataType tp_
 

Additional Inherited Members

- Protected Member Functions inherited from DataInpSpec
void setType (DataType t)
 

Detailed Description

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.

<>

Constructor & Destructor Documentation

◆ BoolInpSpec() [1/2]

BoolInpSpec::BoolInpSpec ( bool  yesno,
const uiString truetxt = uiStrings::sYes(),
const uiString falsetxt = uiStrings::sNo(),
bool  isset = true 
)

◆ BoolInpSpec() [2/2]

BoolInpSpec::BoolInpSpec ( const BoolInpSpec )

Member Function Documentation

◆ checked()

bool BoolInpSpec::checked ( ) const

◆ clone()

DataInpSpec* BoolInpSpec::clone ( ) const
overridevirtual

Implements DataInpSpec.

◆ getBoolValue()

bool BoolInpSpec::getBoolValue ( int  idx = 0) const
overridevirtual

Reimplemented from DataInpSpec.

◆ getDefaultBoolValue()

bool BoolInpSpec::getDefaultBoolValue ( int  idx = 0) const
overridevirtual

Reimplemented from DataInpSpec.

◆ isSet()

bool BoolInpSpec::isSet ( ) const
inline

◆ isUndef()

bool BoolInpSpec::isUndef ( int  idx = 0) const
overridevirtual

Implements DataInpSpec.

◆ setChecked()

void BoolInpSpec::setChecked ( bool  yesno)

◆ setDefaultValue() [1/5]

void BoolInpSpec::setDefaultValue ( bool  ,
int  idx = 0 
)
overridevirtual

Reimplemented from DataInpSpec.

◆ setDefaultValue() [2/5]

void BoolInpSpec::setDefaultValue ( const char *  val,
int  idx = 0 
)
inlineoverridevirtual

Reimplemented from DataInpSpec.

◆ setDefaultValue() [3/5]

void BoolInpSpec::setDefaultValue ( double  val,
int  idx = 0 
)
inlineoverridevirtual

Reimplemented from DataInpSpec.

◆ setDefaultValue() [4/5]

void BoolInpSpec::setDefaultValue ( float  val,
int  idx = 0 
)
inlineoverridevirtual

Reimplemented from DataInpSpec.

◆ setDefaultValue() [5/5]

void BoolInpSpec::setDefaultValue ( int  val,
int  idx = 0 
)
inlineoverridevirtual

Reimplemented from DataInpSpec.

◆ setSet()

void BoolInpSpec::setSet ( bool  yesno = true)
inline

◆ setText()

bool BoolInpSpec::setText ( const char *  s,
int  idx = 0 
)
overridevirtual

Implements DataInpSpec.

◆ setTrueFalseTxt()

void BoolInpSpec::setTrueFalseTxt ( bool  ,
const uiString  
)

◆ setValue() [1/5]

void BoolInpSpec::setValue ( bool  ,
int  idx = 0 
)
overridevirtual

Reimplemented from DataInpSpec.

◆ setValue() [2/5]

void BoolInpSpec::setValue ( double  val,
int  idx = 0 
)
inlineoverridevirtual

Reimplemented from DataInpSpec.

◆ setValue() [3/5]

void BoolInpSpec::setValue ( float  val,
int  idx = 0 
)
inlineoverridevirtual

Reimplemented from DataInpSpec.

◆ setValue() [4/5]

void BoolInpSpec::setValue ( int  val,
int  idx = 0 
)
inlineoverridevirtual

Reimplemented from DataInpSpec.

◆ setValue() [5/5]

void BoolInpSpec::setValue ( od_int64  val,
int  idx = 0 
)
inlineoverridevirtual

Reimplemented from DataInpSpec.

◆ text()

const char* BoolInpSpec::text ( int  idx = 0) const
overridevirtual

Implements DataInpSpec.

◆ trueFalseTxt()

uiString BoolInpSpec::trueFalseTxt ( bool  tf = true) const

Member Data Documentation

◆ defaultyn_

bool BoolInpSpec::defaultyn_
protected

◆ falsetext_

uiString BoolInpSpec::falsetext_
protected

◆ isset_

bool BoolInpSpec::isset_
protected

◆ truetext_

uiString BoolInpSpec::truetext_
protected

◆ yn_

bool BoolInpSpec::yn_
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024