OpendTect  6.6
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Friends | List of all members
uiSpinBox Class Reference
Inheritance diagram for uiSpinBox:
[legend]

Public Member Functions

 uiSpinBox (uiParent *, int nrdecimals=0, const char *nm="SpinBox")
 
 ~uiSpinBox ()
 
void doSnap (bool yn)
 
bool focusChangeTrigger () const
 
float fstep () const
 
bool getBoolValue () const
 
double getDValue () const
 
double getdValue () const
 
StepInterval< float > getFInterval () const
 
float getFValue () const
 
float getfValue () const
 
od_int64 getInt64Value () const
 
StepInterval< int > getInterval () const
 
int getIntValue () const
 
int getValue () const
 
bool handleLongTabletPress ()
 
bool isAlpha () const
 
bool isReadOnly () const
 
bool keyboardTracking () const
 
float maxFValue () const
 
int maxValue () const
 
float minFValue () const
 
int minValue () const
 
void notifyHandler (bool editingfinished)
 
void popupVirtualKeyboard (int globalx=-1, int globaly=-1)
 
uiString prefix () const
 
void setAlpha (bool)
 
void setFocusChangeTrigger (bool)
 
void setInterval (const Interval< int > &i, int s=1)
 
void setInterval (const StepInterval< double > &)
 
void setInterval (const StepInterval< float > &)
 
void setInterval (const StepInterval< int > &)
 
void setInterval (double start, double stop, double s=1)
 
void setInterval (float start, float stop, float s=1)
 
void setInterval (int start, int stop, int s=1)
 
void setKeyboardTracking (bool)
 
void setMaxValue (double)
 
void setMaxValue (float)
 
void setMaxValue (int)
 
void setMinValue (double d)
 
void setMinValue (float)
 
void setMinValue (int)
 
void setNrDecimals (int)
 
void setPrefix (const uiString &)
 
void setReadOnly (bool yn)
 
void setSpecialValueText (const char *)
 
void setStep (double d, bool snap_cur_value=false)
 
void setStep (float, bool snap_cur_value=false)
 
void setStep (int, bool snap_cur_value=false)
 
void setSuffix (const uiString &)
 
void setValue (const char *)
 
void setValue (double)
 
void setValue (float)
 
void setValue (int)
 
void setValue (od_int64)
 
int step () const
 
void stepBy (int nrsteps)
 
uiString suffix () const
 
const char * text () const
 
void translateText ()
 
- Public Member Functions inherited from uiObject
 ~uiObject ()
 
uiSize actualsize (bool inclborder=true) const
 
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 Color backgroundColor () const
 
virtual const ObjectSet< uiBaseObject > * childList () const
 
void close ()
 
void deepRedraw (CallBacker *=0)
 
void disabFocus ()
 
void display (bool yn, bool shrink=false, bool maximized=false)
 
const uiFontfont () const
 
QWidget * getWidget ()
 
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 *)
 
Color roBackgroundColor () const
 
bool sensitive () const
 
virtual void setBackgroundColor (const 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 *)
 
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 Color &)
 
void setToolTip (const char *txt)
 
void setToolTip (const uiString &)
 
void setVSzPol (SzPolicy)
 
void shallowRedraw (CallBacker *=0)
 
int stretch (bool hor) const
 
SzPolicy szPol (bool hor=true) const
 
const uiStringtoolTip () const
 
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 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
 
const QWidget * getWidget () const
 
virtual Notifier< uiBaseObject > & postFinalise ()
 
virtual Notifier< uiBaseObject > & preFinalise ()
 
- 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
 
- 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 &)
 
virtual const name_typename () const
 
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< uiSpinBoxvalueChanged
 
Notifier< uiSpinBoxvalueChanging
 
- 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...
 

Private Member Functions

uiSpinBoxBodymkbody (uiParent *, const char *)
 
void snapToStep (CallBacker *)
 

Private Attributes

uiSpinBoxBodybody_
 
bool dosnap_
 
bool focuschgtrigger_
 
float oldvalue_
 
uiString prefix_
 
uiString suffix_
 

Friends

class uiSpinBoxBody
 

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 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...
 
void triggerSetGeometry (const i_LayoutItem *, uiRect &)
 setGeometry should be triggered by this's layoutItem More...
 
void updateToolTip (CallBacker *=0)
 
- Protected Member Functions inherited from uiBaseObject
void setBody (uiBody *b)
 
- Protected Member Functions inherited from NamedCallBacker
void sendDelNotif () const
 
- Protected Attributes inherited from uiObject
uiString tooltip_
 
uiObjEventFilter * uiobjeventfilter_
 
- Protected Attributes inherited from uiBaseObject
Notifier< uiBaseObjectfinaliseDone
 triggered when finalising finished More...
 
Notifier< uiBaseObjectfinaliseStart
 triggered when about to start finalising More...
 
- Protected Attributes inherited from NamedCallBacker
Threads::Atomic< bool > delalreadytriggered_
 
Notifier< NamedCallBackerdelnotif_
 
- Protected Attributes inherited from NamedObject
BufferString name_
 

Detailed Description

<>

Constructor & Destructor Documentation

◆ uiSpinBox()

uiSpinBox::uiSpinBox ( uiParent ,
int  nrdecimals = 0,
const char *  nm = "SpinBox" 
)

◆ ~uiSpinBox()

uiSpinBox::~uiSpinBox ( )

Member Function Documentation

◆ doSnap()

void uiSpinBox::doSnap ( bool  yn)
inline

◆ focusChangeTrigger()

bool uiSpinBox::focusChangeTrigger ( ) const

◆ fstep()

float uiSpinBox::fstep ( ) const

◆ getBoolValue()

bool uiSpinBox::getBoolValue ( ) const

◆ getDValue()

double uiSpinBox::getDValue ( ) const

◆ getdValue()

double uiSpinBox::getdValue ( ) const
inline

◆ getFInterval()

StepInterval<float> uiSpinBox::getFInterval ( ) const

◆ getFValue()

float uiSpinBox::getFValue ( ) const

◆ getfValue()

float uiSpinBox::getfValue ( ) const
inline

◆ getInt64Value()

od_int64 uiSpinBox::getInt64Value ( ) const

◆ getInterval()

StepInterval<int> uiSpinBox::getInterval ( ) const

◆ getIntValue()

int uiSpinBox::getIntValue ( ) const

◆ getValue()

int uiSpinBox::getValue ( ) const
inline

◆ handleLongTabletPress()

bool uiSpinBox::handleLongTabletPress ( )
virtual

Reimplemented from uiObject.

◆ isAlpha()

bool uiSpinBox::isAlpha ( ) const

◆ isReadOnly()

bool uiSpinBox::isReadOnly ( ) const

◆ keyboardTracking()

bool uiSpinBox::keyboardTracking ( ) const

◆ maxFValue()

float uiSpinBox::maxFValue ( ) const

◆ maxValue()

int uiSpinBox::maxValue ( ) const

◆ minFValue()

float uiSpinBox::minFValue ( ) const

◆ minValue()

int uiSpinBox::minValue ( ) const

◆ mkbody()

uiSpinBoxBody& uiSpinBox::mkbody ( uiParent ,
const char *   
)
private

◆ notifyHandler()

void uiSpinBox::notifyHandler ( bool  editingfinished)

◆ popupVirtualKeyboard()

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

◆ prefix()

uiString uiSpinBox::prefix ( ) const

◆ setAlpha()

void uiSpinBox::setAlpha ( bool  )

◆ setFocusChangeTrigger()

void uiSpinBox::setFocusChangeTrigger ( bool  )

◆ setInterval() [1/7]

void uiSpinBox::setInterval ( const Interval< int > &  i,
int  s = 1 
)
inline

◆ setInterval() [2/7]

void uiSpinBox::setInterval ( const StepInterval< double > &  )

◆ setInterval() [3/7]

void uiSpinBox::setInterval ( const StepInterval< float > &  )

◆ setInterval() [4/7]

void uiSpinBox::setInterval ( const StepInterval< int > &  )

◆ setInterval() [5/7]

void uiSpinBox::setInterval ( double  start,
double  stop,
double  s = 1 
)
inline

◆ setInterval() [6/7]

void uiSpinBox::setInterval ( float  start,
float  stop,
float  s = 1 
)
inline

◆ setInterval() [7/7]

void uiSpinBox::setInterval ( int  start,
int  stop,
int  s = 1 
)
inline

◆ setKeyboardTracking()

void uiSpinBox::setKeyboardTracking ( bool  )

◆ setMaxValue() [1/3]

void uiSpinBox::setMaxValue ( double  )

◆ setMaxValue() [2/3]

void uiSpinBox::setMaxValue ( float  )

◆ setMaxValue() [3/3]

void uiSpinBox::setMaxValue ( int  )

◆ setMinValue() [1/3]

void uiSpinBox::setMinValue ( double  d)
inline

◆ setMinValue() [2/3]

void uiSpinBox::setMinValue ( float  )

◆ setMinValue() [3/3]

void uiSpinBox::setMinValue ( int  )

◆ setNrDecimals()

void uiSpinBox::setNrDecimals ( int  )

◆ setPrefix()

void uiSpinBox::setPrefix ( const uiString )

◆ setReadOnly()

void uiSpinBox::setReadOnly ( bool  yn)

◆ setSpecialValueText()

void uiSpinBox::setSpecialValueText ( const char *  )

◆ setStep() [1/3]

void uiSpinBox::setStep ( double  d,
bool  snap_cur_value = false 
)

◆ setStep() [2/3]

void uiSpinBox::setStep ( float  ,
bool  snap_cur_value = false 
)

◆ setStep() [3/3]

void uiSpinBox::setStep ( int  ,
bool  snap_cur_value = false 
)

◆ setSuffix()

void uiSpinBox::setSuffix ( const uiString )

◆ setValue() [1/5]

void uiSpinBox::setValue ( const char *  )

◆ setValue() [2/5]

void uiSpinBox::setValue ( double  )

◆ setValue() [3/5]

void uiSpinBox::setValue ( float  )

◆ setValue() [4/5]

void uiSpinBox::setValue ( int  )

◆ setValue() [5/5]

void uiSpinBox::setValue ( od_int64  )

◆ snapToStep()

void uiSpinBox::snapToStep ( CallBacker )
private

◆ step()

int uiSpinBox::step ( ) const

◆ stepBy()

void uiSpinBox::stepBy ( int  nrsteps)

◆ suffix()

uiString uiSpinBox::suffix ( ) const

◆ text()

const char* uiSpinBox::text ( ) const

◆ translateText()

void uiSpinBox::translateText ( )
virtual

Triggers translation of object and all members to current language.

Reimplemented from uiObject.

Friends And Related Function Documentation

◆ uiSpinBoxBody

friend class uiSpinBoxBody
friend

Member Data Documentation

◆ body_

uiSpinBoxBody* uiSpinBox::body_
private

◆ dosnap_

bool uiSpinBox::dosnap_
private

If true, value in spinbox will be snapped to a value equal to N*step.

◆ focuschgtrigger_

bool uiSpinBox::focuschgtrigger_
private

◆ oldvalue_

float uiSpinBox::oldvalue_
private

◆ prefix_

uiString uiSpinBox::prefix_
private

◆ suffix_

uiString uiSpinBox::suffix_
private

◆ valueChanged

Notifier<uiSpinBox> uiSpinBox::valueChanged

◆ valueChanging

Notifier<uiSpinBox> uiSpinBox::valueChanging

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