OpendTect-6_4  6.4
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)
 
void setEdited (bool=true)
 
bool isEdited () const
 
void setCompleter (const BufferStringSet &bs, bool casesensitive=false)
 
void setPlaceholderText (const uiString &)
 
virtual void setReadOnly (bool=true)
 
virtual bool isReadOnly () const
 
virtual bool update_ (const DataInpSpec &)
 
void setPasswordMode ()
 
void setValidator (const uiIntValidator &)
 
void setValidator (const uiFloatValidator &)
 
void setMaxLength (int)
 
int maxLength () const
 
void setNrDecimals (int nrdec)
 
void home ()
 Moves the text cursor to the beginning of the line. More...
 
void end ()
 Moves the text cursor to the end of the line. More...
 
void backspace ()
 
void del ()
 
void cursorBackward (bool mark, int steps=1)
 
void cursorForward (bool mark, int steps=1)
 
int cursorPosition () const
 
void insert (const char *)
 
int selectionStart () const
 
const char * selectedText () const
 
void setSelection (int start, int length)
 
bool handleLongTabletPress ()
 
void popupVirtualKeyboard (int globalx=-1, int globaly=-1)
 
virtual const char * getvalue_ () const
 
virtual void setvalue_ (const char *)
 
void setToolTip (const uiString &tt)
 
- Public Member Functions inherited from UserInputObjImpl< const char * >
virtual const char * text () const
 
virtual int getIntValue () const
 
virtual double getDValue () const
 
virtual float getFValue () const
 
virtual bool getBoolValue () const
 
virtual void setText (const char *s)
 
virtual void setValue (const char *s)
 
virtual void setValue (int i)
 
virtual void setValue (double d)
 
virtual void setValue (float f)
 
virtual void setValue (bool b)
 
void setEmpty ()
 
- Public Member Functions inherited from UserInputObj
 UserInputObj ()
 
virtual ~UserInputObj ()
 
virtual void addItem (const uiString &)
 
bool notifyValueChanging (const CallBack &cb)
 intermediate value available More...
 
bool notifyValueChanged (const CallBack &cb)
 value change complete cq. commited More...
 
bool notifyUpdateRequested (const CallBack &cb)
 
bool update (const DataInpSpec &s)
 return false if not updated for whatever reason. More...
 
double getdValue () const
 
float getfValue () const
 
- Public Member Functions inherited from uiObject
 uiObject (uiParent *, const char *nm)
 
 uiObject (uiParent *, const char *nm, uiObjectBody &)
 
 ~uiObject ()
 
void setHSzPol (SzPolicy)
 
void setVSzPol (SzPolicy)
 
SzPolicy szPol (bool hor=true) const
 
virtual int width () const
 Actual size in pixels. More...
 
virtual int height () const
 Actual size in pixels. More...
 
virtual void setName (const char *)
 
void setToolTip (const uiString &)
 
const uiStringtoolTip () const
 
void translateText ()
 
void display (bool yn, bool shrink=false, bool maximized=false)
 
void setFocus ()
 
bool hasFocus () const
 
void disabFocus ()
 
virtual void setCursor (const MouseCursor &)
 
bool isCursorInside () const
 
virtual void setStyleSheet (const char *)
 
virtual Color backgroundColor () const
 
Color roBackgroundColor () const
 
virtual void setBackgroundColor (const Color &)
 
virtual void setBackgroundPixmap (const uiPixmap &)
 
virtual void setTextColor (const Color &)
 
void setSensitive (bool yn=true)
 
bool sensitive () const
 
bool visible () const
 
bool isDisplayed () const
 
int prefHNrPics () const
 
virtual void setPrefWidth (int)
 
void setPrefWidthInChar (int)
 
void setPrefWidthInChar (float)
 
void setMinimumWidth (int)
 
void setMaximumWidth (int)
 
int prefVNrPics () const
 
virtual void setPrefHeight (int)
 
void setPrefHeightInChar (int)
 
void setPrefHeightInChar (float)
 
void setMinimumHeight (int)
 
void setMaximumHeight (int)
 
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...
 
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)
 
void setFont (const uiFont &)
 
const uiFontfont () const
 
void setCaption (const uiString &)
 
void shallowRedraw (CallBacker *=0)
 
void deepRedraw (CallBacker *=0)
 
void reDraw (bool deep)
 
uiSize actualsize (bool include_border=true) const
 
uiParentparent ()
 
const uiParentparent () const
 
void reParent (uiParent *)
 
uiMainWinmainwin ()
 
 mQtclass (QWidget *) getWidget()
 
 mQtclass (QWidget *) qwidget()
 
const mQtclass (QWidget *) qwidget() const
 
virtual const ObjectSet< uiBaseObject > * childList () const
 
void close ()
 

Public Attributes

Notifier< uiLineEditeditingFinished
 
Notifier< uiLineEditreturnPressed
 
Notifier< uiLineEdittextChanged
 
Notifier< uiLineEditselectionChanged
 
- 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

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

Private Member Functions

uiLineEditBody & mkbody (uiParent *, const char *)
 

Private Attributes

uiLineEditBody * body_
 
BufferString result_
 
int nrdecimals_
 

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...
 
- Static Public Member Functions inherited from uiObject
static void updateToolTips ()
 
static void setTabOrder (uiObject *first, uiObject *second)
 
static int baseFldSize ()
 
static int iconSize ()
 
- Protected Attributes inherited from uiObject
uiString tooltip_
 
uiObjEventFilter * uiobjeventfilter_
 

Detailed Description

Constructor & Destructor Documentation

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

pref_empty : return empty string/ null value

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

Member Function Documentation

void uiLineEdit::backspace ( )
void uiLineEdit::cursorBackward ( bool  mark,
int  steps = 1 
)
void uiLineEdit::cursorForward ( bool  mark,
int  steps = 1 
)
int uiLineEdit::cursorPosition ( ) const
void uiLineEdit::del ( )
void uiLineEdit::end ( )

Moves the text cursor to the end of the line.

virtual const char* uiLineEdit::getvalue_ ( ) const
virtual
bool uiLineEdit::handleLongTabletPress ( )
virtual

Reimplemented from uiObject.

void uiLineEdit::home ( )

Moves the text cursor to the beginning of the line.

void uiLineEdit::insert ( const char *  )
bool uiLineEdit::isEdited ( ) const
virtual bool uiLineEdit::isReadOnly ( ) const
virtual

Implements UserInputObj.

int uiLineEdit::maxLength ( ) const
uiLineEditBody& uiLineEdit::mkbody ( uiParent ,
const char *   
)
private
virtual bool uiLineEdit::notifyUpdateRequested_ ( const CallBack cb)
inlineprotectedvirtual

Implements UserInputObj.

virtual bool uiLineEdit::notifyValueChanged_ ( const CallBack )
inlineprotectedvirtual

return false if not available

Implements UserInputObj.

virtual bool uiLineEdit::notifyValueChanging_ ( const CallBack )
inlineprotectedvirtual

return false if not available

Implements UserInputObj.

void uiLineEdit::popupVirtualKeyboard ( int  globalx = -1,
int  globaly = -1 
)
const char* uiLineEdit::selectedText ( ) const
int uiLineEdit::selectionStart ( ) const
void uiLineEdit::setCompleter ( const BufferStringSet bs,
bool  casesensitive = false 
)
void uiLineEdit::setEdited ( bool  = true)
void uiLineEdit::setMaxLength ( int  )
void uiLineEdit::setNrDecimals ( int  nrdec)
inline
void uiLineEdit::setPasswordMode ( )
void uiLineEdit::setPlaceholderText ( const uiString )
virtual void uiLineEdit::setReadOnly ( bool  = true)
virtual

Implements UserInputObj.

void uiLineEdit::setSelection ( int  start,
int  length 
)
void uiLineEdit::setToolTip ( const uiString tt)
inlinevirtual

Implements UserInputObj.

void uiLineEdit::setValidator ( const uiIntValidator )
void uiLineEdit::setValidator ( const uiFloatValidator )
virtual void uiLineEdit::setvalue_ ( const char *  )
virtual
virtual bool uiLineEdit::update_ ( const DataInpSpec )
virtual

Implements UserInputObj.

Member Data Documentation

uiLineEditBody* uiLineEdit::body_
private
Notifier<uiLineEdit> uiLineEdit::editingFinished
int uiLineEdit::nrdecimals_
private
BufferString uiLineEdit::result_
mutableprivate
Notifier<uiLineEdit> uiLineEdit::returnPressed
Notifier<uiLineEdit> uiLineEdit::selectionChanged
Notifier<uiLineEdit> uiLineEdit::textChanged

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