13 #include "uibasemod.h" 23 : bottom_(-
mUdf(int)), top_(
mUdf(int)) {}
25 : bottom_(bot), top_(top) {}
36 : bottom_(-
mUdf(float)), top_(
mUdf(float))
37 , nrdecimals_(1000), scnotation_(true) {}
39 : bottom_(bot), top_(top)
40 , nrdecimals_(1000), scnotation_(true) {}
58 void setEdited(
bool=
true);
59 bool isEdited()
const;
62 bool casesensitive=
false);
63 void setPlaceholderText(
const uiString&);
65 virtual void setReadOnly(
bool=
true);
66 virtual bool isReadOnly()
const;
69 void setPasswordMode();
73 void setMaxLength(
int);
74 int maxLength()
const;
84 void cursorBackward(
bool mark,
int steps=1);
85 void cursorForward(
bool mark,
int steps=1);
86 int cursorPosition()
const;
87 void insert(
const char* );
89 int selectionStart()
const;
90 const char* selectedText()
const;
91 void setSelection(
int start,
int length);
93 bool handleLongTabletPress();
94 void popupVirtualKeyboard(
int globalx=-1,
int globaly=-1);
102 virtual const char* getvalue_()
const;
103 virtual void setvalue_(
const char* );
111 { textChanged.
notify( cb );
return true;}
113 { editingFinished.
notify( cb );
return true;}
115 { returnPressed.
notify( cb );
return true; }
120 uiLineEditBody& mkbody(
uiParent*,
const char*);
#define mExpClass(module)
Definition: commondefs.h:157
Definition: uilineedit.h:19
Notifier< uiLineEdit > returnPressed
Definition: uilineedit.h:97
float top_
Definition: uilineedit.h:43
void setToolTip(const uiString &)
int nrdecimals_
Definition: uilineedit.h:44
The base class for most UI elements.
Definition: uiobj.h:35
Definition: uistring.h:88
Definition: uiparent.h:24
Set of BufferString objects.
Definition: bufstringset.h:25
uiFloatValidator(float bot, float top)
Definition: uilineedit.h:38
virtual bool notifyValueChanged_(const CallBack &cb)
return false if not available
Definition: uilineedit.h:112
Specification of input characteristics.
Definition: datainpspec.h:88
int top_
Definition: uilineedit.h:28
#define mUdf(type)
Use this macro to get the undefined for simple types.
Definition: undefval.h:270
float bottom_
Definition: uilineedit.h:42
virtual bool notifyUpdateRequested_(const CallBack &cb)
Definition: uilineedit.h:114
void setNrDecimals(int nrdec)
Definition: uilineedit.h:75
bool scnotation_
Definition: uilineedit.h:45
void setToolTip(const uiString &tt)
Definition: uilineedit.h:105
BufferString result_
Definition: uilineedit.h:122
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:38
Notifier< uiLineEdit > selectionChanged
Definition: uilineedit.h:99
Definition: uilineedit.h:32
uiIntValidator(int bot, int top)
Definition: uilineedit.h:24
Notifier< uiLineEdit > editingFinished
Definition: uilineedit.h:96
Definition: uilineedit.h:49
int bottom_
Definition: uilineedit.h:27
uiIntValidator()
Definition: uilineedit.h:22
int nrdecimals_
Definition: uilineedit.h:123
uiFloatValidator()
Definition: uilineedit.h:35
CallBacks object-oriented (object + method).
Definition: callback.h:62
uiLineEditBody * body_
Definition: uilineedit.h:119
virtual bool notifyValueChanging_(const CallBack &cb)
return false if not available
Definition: uilineedit.h:110
Notifier< uiLineEdit > textChanged
Definition: uilineedit.h:98
void notify(const CallBack &, bool first=false) const