1 #ifndef uigeninput_impl_h 2 #define uigeninput_impl_h 37 virtual int nElems()
const {
return 1; }
45 virtual bool isUndef(
int)
const;
46 const char*
text(
int)
const;
59 if ( sb ) sb->setValue( t );
69 virtual void setText(
const char*,
int);
109 const char* nm=
"Bool Input");
113 const char* nm=
"Bool Input");
115 virtual const char*
text()
const;
116 virtual void setText(
const char* t);
119 { valueChanged.notify(cb);
return true; }
128 virtual void setToolTip(
const uiString&);
135 virtual void setvalue_(
bool );
139 { valueChanged.
notify(cb);
return true; }
160 const char* nm=
"Int Input");
162 const char* nm=
"Int Input");
167 virtual void setToolTip(
const uiString&);
171 virtual int getvalue_()
const;
172 virtual void setvalue_(
int);
174 virtual bool notifyValueChanging_(
const CallBack&);
175 virtual bool notifyValueChanged_(
const CallBack&);
176 virtual bool notifyUpdateRequested_(
const CallBack&);
#define mIsUdf(val)
Use mIsUdf to check for undefinedness of simple types.
Definition: undefval.h:287
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
Definition: uistrings.h:24
The base class for most UI elements.
Definition: uiobj.h:38
Definition: uistring.h:89
Definition: uiparent.h:26
Specification of input characteristics.
Definition: datainpspec.h:89
void notify(const CallBack &, bool first=false)
Definition: uispinbox.h:24
#define mDynamicCastGet(typ, out, in)
Definition: commondefs.h:131
CallBacks object-oriented (object + method).
Definition: callback.h:57
Definition: uibutton.h:134