OpendTect-6_4  6.4
Public Member Functions | Protected Attributes | Private Member Functions | 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 &)
 
virtual bool isUndef (int idx=0) const
 
virtual DataInpSpecclone () 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)
 

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::BoolInpSpec ( bool  yesno,
const uiString truetxt = uiStrings::sYes(),
const uiString falsetxt = uiStrings::sNo(),
bool  isset = true 
)
BoolInpSpec::BoolInpSpec ( const BoolInpSpec )

Member Function Documentation

bool BoolInpSpec::checked ( ) const
virtual DataInpSpec* BoolInpSpec::clone ( ) const
virtual

Implements DataInpSpec.

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

Reimplemented from DataInpSpec.

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

Reimplemented from DataInpSpec.

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

Implements DataInpSpec.

BoolInpSpec::mODTextTranslationClass ( BoolInpSpec  )
private
void BoolInpSpec::setChecked ( bool  yesno)
virtual void BoolInpSpec::setDefaultValue ( bool  ,
int  idx = 0 
)
virtual

Reimplemented from DataInpSpec.

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

Reimplemented from DataInpSpec.

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

Reimplemented from DataInpSpec.

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

Reimplemented from DataInpSpec.

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

Reimplemented from DataInpSpec.

void BoolInpSpec::setSet ( bool  yesno = true)
inline
virtual bool BoolInpSpec::setText ( const char *  s,
int  idx = 0 
)
virtual

Implements DataInpSpec.

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

Reimplemented from DataInpSpec.

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

Reimplemented from DataInpSpec.

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

Reimplemented from DataInpSpec.

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

Reimplemented from DataInpSpec.

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

Implements DataInpSpec.

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

Member Data Documentation

bool BoolInpSpec::defaultyn_
protected
uiString BoolInpSpec::falsetext_
protected
bool BoolInpSpec::isset_
protected
uiString BoolInpSpec::truetext_
protected
bool BoolInpSpec::yn_
protected

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