15 #include "uibasemod.h" 25 : bottom_(-
mUdf(int)), top_(
mUdf(int)) {}
27 : bottom_(bot), top_(top) {}
38 : bottom_(-
mUdf(float)), top_(
mUdf(float))
39 , nrdecimals_(1000), scnotation_(true) {}
41 : bottom_(bot), top_(top)
42 , nrdecimals_(1000), scnotation_(true) {}
60 void setEdited(
bool=
true);
61 bool isEdited()
const;
64 bool casesensitive=
false);
65 void setPlaceholderText(
const uiString&);
67 virtual void setReadOnly(
bool=
true);
68 virtual bool isReadOnly()
const;
71 void setPasswordMode();
75 void setMaxLength(
int);
76 int maxLength()
const;
86 void cursorBackward(
bool mark,
int steps=1);
87 void cursorForward(
bool mark,
int steps=1);
88 int cursorPosition()
const;
89 void insert(
const char* );
91 int selectionStart()
const;
92 const char* selectedText()
const;
93 void setSelection(
int start,
int length);
95 bool handleLongTabletPress();
96 void popupVirtualKeyboard(
int globalx=-1,
int globaly=-1);
104 virtual const char* getvalue_()
const;
105 virtual void setvalue_(
const char* );
113 { textChanged.
notify( cb );
return true;}
115 { editingFinished.
notify( cb );
return true;}
117 { returnPressed.
notify( cb );
return true; }
122 uiLineEditBody& mkbody(
uiParent*,
const char*);
#define mExpClass(module)
Definition: commondefs.h:160
Definition: uilineedit.h:21
Notifier< uiLineEdit > returnPressed
Definition: uilineedit.h:99
float top_
Definition: uilineedit.h:45
void setToolTip(const uiString &)
int nrdecimals_
Definition: uilineedit.h:46
The base class for most UI elements.
Definition: uiobj.h:38
Definition: uistring.h:89
Definition: uiparent.h:26
Set of BufferString objects.
Definition: bufstringset.h:28
uiFloatValidator(float bot, float top)
Definition: uilineedit.h:40
virtual bool notifyValueChanged_(const CallBack &cb)
return false if not available
Definition: uilineedit.h:114
Specification of input characteristics.
Definition: datainpspec.h:89
int top_
Definition: uilineedit.h:30
#define mUdf(type)
Use this macro to get the undefined for simple types.
Definition: undefval.h:272
float bottom_
Definition: uilineedit.h:44
virtual bool notifyUpdateRequested_(const CallBack &cb)
Definition: uilineedit.h:116
void notify(const CallBack &, bool first=false)
void setNrDecimals(int nrdec)
Definition: uilineedit.h:77
bool scnotation_
Definition: uilineedit.h:47
void setToolTip(const uiString &tt)
Definition: uilineedit.h:107
BufferString result_
Definition: uilineedit.h:124
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
Notifier< uiLineEdit > selectionChanged
Definition: uilineedit.h:101
Definition: uilineedit.h:34
uiIntValidator(int bot, int top)
Definition: uilineedit.h:26
Notifier< uiLineEdit > editingFinished
Definition: uilineedit.h:98
Definition: uilineedit.h:51
int bottom_
Definition: uilineedit.h:29
uiIntValidator()
Definition: uilineedit.h:24
int nrdecimals_
Definition: uilineedit.h:125
uiFloatValidator()
Definition: uilineedit.h:37
CallBacks object-oriented (object + method).
Definition: callback.h:57
uiLineEditBody * body_
Definition: uilineedit.h:121
virtual bool notifyValueChanging_(const CallBack &cb)
return false if not available
Definition: uilineedit.h:112
Notifier< uiLineEdit > textChanged
Definition: uilineedit.h:100