OpendTect-6_4  6.4
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | 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 setNrDecimals (int)
 
void setAlpha (bool)
 
bool isAlpha () const
 
void setSpecialValueText (const char *)
 
void setValue (int)
 
void setValue (float)
 
void setValue (double)
 
void setValue (const char *)
 
int getIntValue () const
 
double getDValue () const
 
float getFValue () const
 
bool getBoolValue () const
 
const char * text () const
 
void setInterval (int start, int stop, int s=1)
 
void setInterval (const Interval< int > &i, int s=1)
 
void setInterval (const StepInterval< int > &)
 
StepInterval< int > getInterval () const
 
void setInterval (float start, float stop, float s=1)
 
void setInterval (const StepInterval< float > &)
 
StepInterval< float > getFInterval () const
 
void setInterval (double start, double stop, double s=1)
 
void setInterval (const StepInterval< double > &)
 
void setMinValue (int)
 
void setMinValue (float)
 
void setMinValue (double d)
 
int minValue () const
 
float minFValue () const
 
void setMaxValue (int)
 
void setMaxValue (float)
 
void setMaxValue (double)
 
int maxValue () const
 
float maxFValue () const
 
void setStep (int, bool snap_cur_value=false)
 
void setStep (float, bool snap_cur_value=false)
 
void setStep (double d, bool snap_cur_value=false)
 
float fstep () const
 
int step () const
 
void stepBy (int nrsteps)
 
uiString prefix () const
 
void setPrefix (const uiString &)
 
uiString suffix () const
 
void setSuffix (const uiString &)
 
void doSnap (bool yn)
 
void setKeyboardTracking (bool)
 
bool keyboardTracking () const
 
void setFocusChangeTrigger (bool)
 
bool focusChangeTrigger () const
 
bool handleLongTabletPress ()
 
void popupVirtualKeyboard (int globalx=-1, int globaly=-1)
 
void notifyHandler (bool editingfinished)
 
void translateText ()
 
int getValue () const
 
float getfValue () const
 
double getdValue () 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< 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

 mODTextTranslationClass (uiSpinBox) friend class uiSpinBoxBody
 
uiSpinBoxBody & mkbody (uiParent *, const char *)
 
void snapToStep (CallBacker *)
 

Private Attributes

float oldvalue_
 
uiString prefix_
 
uiString suffix_
 
uiSpinBoxBody * body_
 
bool dosnap_
 
bool focuschgtrigger_
 

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 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)
 
- Protected Attributes inherited from uiObject
uiString tooltip_
 
uiObjEventFilter * uiobjeventfilter_
 

Detailed Description

Constructor & Destructor Documentation

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

Member Function Documentation

void uiSpinBox::doSnap ( bool  yn)
inline
bool uiSpinBox::focusChangeTrigger ( ) const
float uiSpinBox::fstep ( ) const
bool uiSpinBox::getBoolValue ( ) const
double uiSpinBox::getDValue ( ) const
double uiSpinBox::getdValue ( ) const
inline
StepInterval<float> uiSpinBox::getFInterval ( ) const
float uiSpinBox::getFValue ( ) const
float uiSpinBox::getfValue ( ) const
inline
StepInterval<int> uiSpinBox::getInterval ( ) const
int uiSpinBox::getIntValue ( ) const
int uiSpinBox::getValue ( ) const
inline
bool uiSpinBox::handleLongTabletPress ( )
virtual

Reimplemented from uiObject.

bool uiSpinBox::isAlpha ( ) const
bool uiSpinBox::keyboardTracking ( ) const
float uiSpinBox::maxFValue ( ) const
int uiSpinBox::maxValue ( ) const
float uiSpinBox::minFValue ( ) const
int uiSpinBox::minValue ( ) const
uiSpinBoxBody& uiSpinBox::mkbody ( uiParent ,
const char *   
)
private
uiSpinBox::mODTextTranslationClass ( uiSpinBox  )
private
void uiSpinBox::notifyHandler ( bool  editingfinished)
void uiSpinBox::popupVirtualKeyboard ( int  globalx = -1,
int  globaly = -1 
)
uiString uiSpinBox::prefix ( ) const
void uiSpinBox::setAlpha ( bool  )
void uiSpinBox::setFocusChangeTrigger ( bool  )
void uiSpinBox::setInterval ( int  start,
int  stop,
int  s = 1 
)
inline
void uiSpinBox::setInterval ( const Interval< int > &  i,
int  s = 1 
)
inline
void uiSpinBox::setInterval ( const StepInterval< int > &  )
void uiSpinBox::setInterval ( float  start,
float  stop,
float  s = 1 
)
inline
void uiSpinBox::setInterval ( const StepInterval< float > &  )
void uiSpinBox::setInterval ( double  start,
double  stop,
double  s = 1 
)
inline
void uiSpinBox::setInterval ( const StepInterval< double > &  )
void uiSpinBox::setKeyboardTracking ( bool  )
void uiSpinBox::setMaxValue ( int  )
void uiSpinBox::setMaxValue ( float  )
void uiSpinBox::setMaxValue ( double  )
void uiSpinBox::setMinValue ( int  )
void uiSpinBox::setMinValue ( float  )
void uiSpinBox::setMinValue ( double  d)
inline
void uiSpinBox::setNrDecimals ( int  )
void uiSpinBox::setPrefix ( const uiString )
void uiSpinBox::setSpecialValueText ( const char *  )
void uiSpinBox::setStep ( int  ,
bool  snap_cur_value = false 
)
void uiSpinBox::setStep ( float  ,
bool  snap_cur_value = false 
)
void uiSpinBox::setStep ( double  d,
bool  snap_cur_value = false 
)
void uiSpinBox::setSuffix ( const uiString )
void uiSpinBox::setValue ( int  )
void uiSpinBox::setValue ( float  )
void uiSpinBox::setValue ( double  )
void uiSpinBox::setValue ( const char *  )
void uiSpinBox::snapToStep ( CallBacker )
private
int uiSpinBox::step ( ) const
void uiSpinBox::stepBy ( int  nrsteps)
uiString uiSpinBox::suffix ( ) const
const char* uiSpinBox::text ( ) const
void uiSpinBox::translateText ( )

Member Data Documentation

uiSpinBoxBody* uiSpinBox::body_
private
bool uiSpinBox::dosnap_
private

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

bool uiSpinBox::focuschgtrigger_
private
float uiSpinBox::oldvalue_
private
uiString uiSpinBox::prefix_
private
uiString uiSpinBox::suffix_
private
Notifier<uiSpinBox> uiSpinBox::valueChanged
Notifier<uiSpinBox> uiSpinBox::valueChanging

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