OpendTect  6.6
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 char *truetxt, const char *falsetxt, bool isset=true)
 
 BoolInpSpec (bool yesno, const uiString &truetxt=uiStrings::sYes(), const uiString &falsetxt=uiStrings::sNo(), bool isset=true)
 
 BoolInpSpec (const BoolInpSpec &)
 
bool checked () const
 
virtual DataInpSpecclone () const
 
virtual bool getBoolValue (int idx=0) const
 
virtual bool getDefaultBoolValue (int idx=0) const
 
bool isSet () const
 
virtual bool isUndef (int idx=0) const
 
void setChecked (bool yesno)
 
virtual void setDefaultValue (bool, int idx=0)
 
virtual void setDefaultValue (const char *val, int idx=0)
 
virtual void setDefaultValue (double val, int idx=0)
 
virtual void setDefaultValue (float val, int idx=0)
 
virtual void setDefaultValue (int val, int idx=0)
 
void setSet (bool yesno=true)
 
virtual bool setText (const char *s, int idx=0)
 
void setTrueFalseTxt (bool yn, const char *txt)
 
void setTrueFalseTxt (bool, const uiString &)
 
virtual void setValue (bool, int idx=0)
 
virtual void setValue (double val, int idx=0)
 
virtual void setValue (float val, int idx=0)
 
virtual void setValue (int val, int idx=0)
 
virtual void setValue (od_int64 val, int idx=0)
 
virtual const char * text (int idx=0) const
 
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/3]

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

◆ BoolInpSpec() [2/3]

BoolInpSpec::BoolInpSpec ( const BoolInpSpec )

◆ BoolInpSpec() [3/3]

BoolInpSpec::BoolInpSpec ( bool  yesno,
const char *  truetxt,
const char *  falsetxt,
bool  isset = true 
)
inline

Member Function Documentation

◆ checked()

bool BoolInpSpec::checked ( ) const

◆ clone()

virtual DataInpSpec* BoolInpSpec::clone ( ) const
virtual

Implements DataInpSpec.

◆ getBoolValue()

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

Reimplemented from DataInpSpec.

◆ getDefaultBoolValue()

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

Reimplemented from DataInpSpec.

◆ isSet()

bool BoolInpSpec::isSet ( ) const
inline

◆ isUndef()

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

Implements DataInpSpec.

◆ setChecked()

void BoolInpSpec::setChecked ( bool  yesno)

◆ setDefaultValue() [1/5]

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

Reimplemented from DataInpSpec.

◆ setDefaultValue() [2/5]

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

Reimplemented from DataInpSpec.

◆ setDefaultValue() [3/5]

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

Reimplemented from DataInpSpec.

◆ setDefaultValue() [4/5]

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

Reimplemented from DataInpSpec.

◆ setDefaultValue() [5/5]

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

Reimplemented from DataInpSpec.

◆ setSet()

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

◆ setText()

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

Implements DataInpSpec.

◆ setTrueFalseTxt() [1/2]

void BoolInpSpec::setTrueFalseTxt ( bool  yn,
const char *  txt 
)
inline

◆ setTrueFalseTxt() [2/2]

void BoolInpSpec::setTrueFalseTxt ( bool  ,
const uiString  
)

◆ setValue() [1/5]

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

Reimplemented from DataInpSpec.

◆ setValue() [2/5]

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

Reimplemented from DataInpSpec.

◆ setValue() [3/5]

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

Reimplemented from DataInpSpec.

◆ setValue() [4/5]

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

Reimplemented from DataInpSpec.

◆ setValue() [5/5]

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

Reimplemented from DataInpSpec.

◆ text()

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

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-2022