OpendTect  7.0
Public Member Functions | Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
uiLineEdit Class Reference
Inheritance diagram for uiLineEdit:
[legend]

Public Member Functions

 uiLineEdit (uiParent *, const char *nm)
 pref_empty : return empty string/ null value More...
 
 uiLineEdit (uiParent *, const DataInpSpec &, const char *nm)
 
 ~uiLineEdit ()
 
void backspace ()
 
void cursorBackward (bool mark, int steps=1)
 
void cursorForward (bool mark, int steps=1)
 
int cursorPosition () const
 
void del ()
 
void end ()
 Moves the text cursor to the end of the line. More...
 
const char * getvalue_ () const override
 
bool handleLongTabletPress () override
 
void home ()
 Moves the text cursor to the beginning of the line. More...
 
void insert (const char *)
 
bool isEdited () const
 
bool isReadOnly () const override
 
int maxLength () const
 
void popupVirtualKeyboard (int globalx=-1, int globaly=-1)
 
const char * selectedText () const
 
int selectionStart () const
 
void setCompleter (const BufferStringSet &bs, bool casesensitive=false)
 
void setDefaultStyleSheet ()
 
void setDefaultTextValidator ()
 
void setEdited (bool=true)
 
void setMaxLength (int)
 
void setNrDecimals (int nrdec)
 
void setPasswordMode ()
 
void setPlaceholderText (const uiString &)
 
void setReadOnly (bool=true) override
 
void setSelection (int start, int length)
 
void setTextValidator (const uiTextValidator &)
 
void setToolTip (const uiString &tt) override
 
void setValidator (const uiFloatValidator &)
 
void setValidator (const uiIntValidator &)
 
void setvalue_ (const char *) override
 
bool update_ (const DataInpSpec &) override
 
- Public Member Functions inherited from UserInputObjImpl< const char * >
bool getBoolValue () const override
 
double getDValue () const override
 
float getFValue () const override
 
od_int64 getInt64Value () const override
 
int getIntValue () const override
 
void setEmpty () override
 
void setText (const char *s) override
 
void setValue (bool b) override
 
void setValue (const char *s) override
 
void setValue (double d) override
 
void setValue (float f) override
 
void setValue (int i) override
 
void setValue (od_int64 i) override
 
const char * text () const override
 
- Public Member Functions inherited from UserInputObj
 UserInputObj ()
 
virtual ~UserInputObj ()
 
virtual void addItem (const uiString &)
 
double getdValue () const
 
float getfValue () const
 
bool notifyUpdateRequested (const CallBack &cb)
 
bool notifyValueChanged (const CallBack &cb)
 value change complete cq. commited More...
 
bool notifyValueChanging (const CallBack &cb)
 intermediate value available More...
 
bool update (const DataInpSpec &s)
 return false if not updated for whatever reason. More...
 
- Public Member Functions inherited from uiObject
 ~uiObject ()
 
uiSize actualSize (bool include_border=true) const
 
void attach (constraintType, int margin=-1)
 attaches object to another In case the stretched... options are used, margin=-1 (default) stretches the object not to cross the border. margin=-2 stretches the object to fill the parent's border. This looks nice with separators. More...
 
void attach (constraintType, uiObject *, int margin=-1, bool reciprocal=true)
 
void attach (constraintType, uiParent *, int margin=-1, bool reciprocal=true)
 
virtual OD::Color backgroundColor () const
 
virtual const ObjectSet< uiBaseObject > * childList () const
 
void close ()
 
void deepRedraw ()
 
void disabFocus ()
 
void display (bool yn, bool shrink=false, bool maximized=false)
 
const uiFontfont () const
 
QWidget * getWidget () override
 
bool hasFocus () const
 
virtual int height () const
 Actual size in pixels. More...
 
bool isCursorInside () const
 
bool isDisplayed () const
 
virtual bool isEmpty () const
 
bool isSensitive () const
 
uiMainWinmainwin ()
 
uiParentparent ()
 
const uiParentparent () const
 
int prefHNrPics () const
 
int prefVNrPics () const
 
QWidget * qwidget ()
 
const QWidget * qwidget () const
 
void reDraw (bool deep)
 
void reParent (uiParent *)
 
OD::Color roBackgroundColor () const
 
bool sensitive () const
 
virtual void setBackgroundColor (const OD::Color &)
 
virtual void setBackgroundPixmap (const uiPixmap &)
 
void setCaption (const uiString &)
 
virtual void setCursor (const MouseCursor &)
 
void setFocus ()
 
void setFont (const uiFont &)
 
void setHSzPol (SzPolicy)
 
void setMaximumHeight (int)
 
void setMaximumHeightInChar (int)
 
void setMaximumWidth (int)
 
void setMaximumWidthInChar (int)
 
void setMinimumHeight (int)
 
void setMinimumHeightInChar (int)
 
void setMinimumWidth (int)
 
void setMinimumWidthInChar (int)
 
virtual void setName (const char *) override
 
virtual void setPrefHeight (int)
 
void setPrefHeightInChar (float)
 
void setPrefHeightInChar (int)
 
virtual void setPrefWidth (int)
 
void setPrefWidthInChar (float)
 
void setPrefWidthInChar (int)
 
void setSensitive (bool yn=true)
 
void setStretch (int hor, int ver)
 Sets stretch factors for object If stretch factor is > 1, then object will already grow at pop-up. More...
 
virtual void setStyleSheet (const char *)
 
virtual void setTextColor (const OD::Color &)
 
void setToolTip (const uiString &)
 
void setVSzPol (SzPolicy)
 
void shallowRedraw ()
 
int stretch (bool hor) const
 
SzPolicy szPol (bool hor=true) const
 
const uiStringtoolTip () const
 
void translateText () override
 
bool visible () const
 
virtual int width () const
 Actual size in pixels. More...
 
- Public Member Functions inherited from uiBaseObject
 uiBaseObject (const char *nm, uiBody *=0)
 
virtual ~uiBaseObject ()
 
int beginCmdRecEvent (const BufferString &msg)
 
int beginCmdRecEvent (const char *msg=0)
 
int beginCmdRecEvent (od_uint64 id, const char *msg=0)
 
uiBodybody ()
 
const uiBodybody () const
 
void clear ()
 
void endCmdRecEvent (int refnr, const char *msg=0)
 
void endCmdRecEvent (od_uint64 id, int refnr, const char *msg=0)
 
void finalise ()
 
bool finalised () const
 
void finalize ()
 
bool finalized () const
 
const QWidget * getWidget () const
 
virtual Notifier< uiBaseObject > & postFinalise ()
 
virtual Notifier< uiBaseObject > & postFinalize ()
 
virtual Notifier< uiBaseObject > & preFinalise ()
 
virtual Notifier< uiBaseObject > & preFinalize ()
 
- Public Member Functions inherited from NamedCallBacker
 NamedCallBacker (const char *nm=0)
 
 NamedCallBacker (const NamedCallBacker &)
 
virtual Notifier< NamedCallBacker > & objectToBeDeleted () const
 
bool operator== (const NamedCallBacker &oth) const
 
bool operator== (const NamedObject &oth) const
 
- Public Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (const NotifierAccess &, const CallBack &, bool onlyifnew=false) const
 
bool attachCB (const NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) const
 
void detachAllNotifiers () const
 Call from the destructor of your inherited object. More...
 
void detachCB (const NotifierAccess &, const CallBack &) const
 
void detachCB (const NotifierAccess *notif, const CallBack &cb) const
 
virtual bool isCapsule () const
 
bool isNotifierAttached (const NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 
void stopReceivingNotifications () const
 
virtual CallBackertrueCaller ()
 
- Public Member Functions inherited from NamedObject
 NamedObject (const char *nm=nullptr)
 
 NamedObject (const NamedObject &oth)
 
virtual ~NamedObject ()
 
virtual BufferString getName () const
 
bool getNameFromPar (const IOPar &)
 
const name_typename () const override
 
NamedObjectoperator= (const NamedObject &)
 
bool operator== (const NamedObject &oth) const
 
- Public Member Functions inherited from ObjectWithName
virtual ~ObjectWithName ()
 
bool hasName (const char *nm) const
 
bool hasName (const name_type &nm) const
 
void putNameInPar (IOPar &) const
 

Public Attributes

Notifier< uiLineEditeditingFinished
 
Notifier< uiLineEditreturnPressed
 
Notifier< uiLineEditselectionChanged
 
Notifier< uiLineEdittextChanged
 
- Public Attributes inherited from uiObject
Notifier< uiObjectclosed
 Triggered when object closes. More...
 
CNotifier< uiObject, uiRect & > setGeometry
 triggered when getting a new geometry A reference to the new geometry is passed which can be manipulated, before the geometry is actually set to the QWidget. More...
 

Protected Member Functions

bool notifyUpdateRequested_ (const CallBack &cb) override
 
bool notifyValueChanged_ (const CallBack &cb) override
 return false if not available More...
 
bool notifyValueChanging_ (const CallBack &cb) override
 return false if not available More...
 
- Protected Member Functions inherited from UserInputObjImpl< const char * >
virtual bool setEmpty_ ()
 
- Protected Member Functions inherited from uiObject
 uiObject (uiParent *, const char *nm)
 
 uiObject (uiParent *, const char *nm, uiObjectBody &)
 
virtual bool closeOK ()
 hook. Accepts/denies closing of window. More...
 
uiObjectBodyobjBody ()
 
const uiObjectBodyobjBody () const
 
void triggerSetGeometry (const i_LayoutItem *, uiRect &)
 setGeometry should be triggered by this's layoutItem More...
 
void updateToolTip (CallBacker *=nullptr)
 
- Protected Member Functions inherited from uiBaseObject
void setBody (uiBody *b)
 
- Protected Member Functions inherited from NamedCallBacker
void sendDelNotif () const
 

Private Member Functions

uiLineEditBody & mkbody (uiParent *, const char *)
 

Private Attributes

uiLineEditBody * body_
 
int nrdecimals_
 
BufferString result_
 

Additional Inherited Members

- Public Types inherited from uiObject
enum  SzPolicy {
  Undef , Small , Medium , Wide ,
  SmallVar , MedVar , WideVar , SmallMax ,
  MedMax , WideMax
}
 How should the object's size behave? Undef : use default. Small : 1 base sz. Medium : 2* base sz + 1. Wide : 4* base sz + 3. The xxVar options specify that the element may have a bigger internal preferred size. In that case, the maximum is taken. The xxMax options specify that the element should take all available space ( stretch = 2 ) More...
 
- Public Types inherited from ObjectWithName
typedef OD::String name_type
 
- Static Public Member Functions inherited from uiObject
static int baseFldSize ()
 
static int iconSize ()
 
static void setTabOrder (uiObject *first, uiObject *second)
 
static void updateToolTips ()
 
- Static Public Member Functions inherited from uiBaseObject
static void addCmdRecorder (const CallBack &)
 
static void removeCmdRecorder (const CallBack &)
 
- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 
- Protected Attributes inherited from uiObject
uiString tooltip_
 
uiObjEventFilter * uiobjeventfilter_
 
- Protected Attributes inherited from NamedCallBacker
Threads::Atomic< bool > delalreadytriggered_
 
Notifier< NamedCallBackerdelnotif_
 
- Protected Attributes inherited from NamedObject
BufferString name_
 

Detailed Description

<>

Constructor & Destructor Documentation

◆ uiLineEdit() [1/2]

uiLineEdit::uiLineEdit ( uiParent ,
const char *  nm 
)

pref_empty : return empty string/ null value

◆ uiLineEdit() [2/2]

uiLineEdit::uiLineEdit ( uiParent ,
const DataInpSpec ,
const char *  nm 
)

◆ ~uiLineEdit()

uiLineEdit::~uiLineEdit ( )

Member Function Documentation

◆ backspace()

void uiLineEdit::backspace ( )

◆ cursorBackward()

void uiLineEdit::cursorBackward ( bool  mark,
int  steps = 1 
)

◆ cursorForward()

void uiLineEdit::cursorForward ( bool  mark,
int  steps = 1 
)

◆ cursorPosition()

int uiLineEdit::cursorPosition ( ) const

◆ del()

void uiLineEdit::del ( )

◆ end()

void uiLineEdit::end ( )

Moves the text cursor to the end of the line.

◆ getvalue_()

const char* uiLineEdit::getvalue_ ( ) const
overridevirtual

◆ handleLongTabletPress()

bool uiLineEdit::handleLongTabletPress ( )
overridevirtual

Reimplemented from uiObject.

◆ home()

void uiLineEdit::home ( )

Moves the text cursor to the beginning of the line.

◆ insert()

void uiLineEdit::insert ( const char *  )

◆ isEdited()

bool uiLineEdit::isEdited ( ) const

◆ isReadOnly()

bool uiLineEdit::isReadOnly ( ) const
overridevirtual

Implements UserInputObj.

◆ maxLength()

int uiLineEdit::maxLength ( ) const

◆ mkbody()

uiLineEditBody& uiLineEdit::mkbody ( uiParent ,
const char *   
)
private

◆ notifyUpdateRequested_()

bool uiLineEdit::notifyUpdateRequested_ ( const CallBack cb)
inlineoverrideprotectedvirtual

Implements UserInputObj.

◆ notifyValueChanged_()

bool uiLineEdit::notifyValueChanged_ ( const CallBack )
inlineoverrideprotectedvirtual

return false if not available

Implements UserInputObj.

◆ notifyValueChanging_()

bool uiLineEdit::notifyValueChanging_ ( const CallBack )
inlineoverrideprotectedvirtual

return false if not available

Implements UserInputObj.

◆ popupVirtualKeyboard()

void uiLineEdit::popupVirtualKeyboard ( int  globalx = -1,
int  globaly = -1 
)

◆ selectedText()

const char* uiLineEdit::selectedText ( ) const

◆ selectionStart()

int uiLineEdit::selectionStart ( ) const

◆ setCompleter()

void uiLineEdit::setCompleter ( const BufferStringSet bs,
bool  casesensitive = false 
)

◆ setDefaultStyleSheet()

void uiLineEdit::setDefaultStyleSheet ( )

◆ setDefaultTextValidator()

void uiLineEdit::setDefaultTextValidator ( )

◆ setEdited()

void uiLineEdit::setEdited ( bool  = true)

◆ setMaxLength()

void uiLineEdit::setMaxLength ( int  )

◆ setNrDecimals()

void uiLineEdit::setNrDecimals ( int  nrdec)
inline

◆ setPasswordMode()

void uiLineEdit::setPasswordMode ( )

◆ setPlaceholderText()

void uiLineEdit::setPlaceholderText ( const uiString )

◆ setReadOnly()

void uiLineEdit::setReadOnly ( bool  = true)
overridevirtual

Implements UserInputObj.

◆ setSelection()

void uiLineEdit::setSelection ( int  start,
int  length 
)

◆ setTextValidator()

void uiLineEdit::setTextValidator ( const uiTextValidator )

◆ setToolTip()

void uiLineEdit::setToolTip ( const uiString tt)
inlineoverridevirtual

Implements UserInputObj.

◆ setValidator() [1/2]

void uiLineEdit::setValidator ( const uiFloatValidator )

◆ setValidator() [2/2]

void uiLineEdit::setValidator ( const uiIntValidator )

◆ setvalue_()

void uiLineEdit::setvalue_ ( const char *  )
overridevirtual

◆ update_()

bool uiLineEdit::update_ ( const DataInpSpec )
overridevirtual

Implements UserInputObj.

Member Data Documentation

◆ body_

uiLineEditBody* uiLineEdit::body_
private

◆ editingFinished

Notifier<uiLineEdit> uiLineEdit::editingFinished

◆ nrdecimals_

int uiLineEdit::nrdecimals_
private

◆ result_

BufferString uiLineEdit::result_
mutableprivate

◆ returnPressed

Notifier<uiLineEdit> uiLineEdit::returnPressed

◆ selectionChanged

Notifier<uiLineEdit> uiLineEdit::selectionChanged

◆ textChanged

Notifier<uiLineEdit> uiLineEdit::textChanged

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