Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Friends

uiSpinBox Class Reference

Inheritance diagram for uiSpinBox:
uiObject uiBaseObject NamedObject CallBacker

List of all members.

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 d)
void setValue (const char *)
int getValue () const
float getFValue () const
void setInterval (int start, int stop, int mystep=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 thestep=1)
void setInterval (const StepInterval< float > &)
StepInterval< float > getFInterval () const
void setInterval (double v0, double v1, double vs=1)
void setInterval (const StepInterval< double > &si)
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 d)
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 scv=false)
float fstep () const
int step () const
void stepBy (int nrsteps)
const char * prefix () const
void setPrefix (const char *)
const char * suffix () const
void setSuffix (const char *)
void doSnap (bool yn)
void setKeyboardTracking (bool)
bool keyboardTracking () const
bool handleLongTabletPress ()
void popupVirtualKeyboard (int globalx=-1, int globaly=-1)
void notifyHandler (bool editingfinished)

Public Attributes

Notifier< uiSpinBoxvalueChanged
Notifier< uiSpinBoxvalueChanging

Private Member Functions

uiSpinBoxBody & mkbody (uiParent *, const char *)
void snapToStep (CallBacker *)

Private Attributes

float oldvalue_
int factor_
uiSpinBoxBody * body_
bool dosnap_

Friends

class uiSpinBoxBody

Constructor & Destructor Documentation

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

Member Function Documentation

void uiSpinBox::doSnap ( bool  yn  )  [inline]
float uiSpinBox::fstep (  )  const
StepInterval<float> uiSpinBox::getFInterval (  )  const
float uiSpinBox::getFValue (  )  const
StepInterval<int> uiSpinBox::getInterval (  )  const
int uiSpinBox::getValue (  )  const
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]
void uiSpinBox::notifyHandler ( bool  editingfinished  ) 
void uiSpinBox::popupVirtualKeyboard ( int  globalx = -1,
int  globaly = -1 
)
const char* uiSpinBox::prefix (  )  const
void uiSpinBox::setAlpha ( bool   ) 
void uiSpinBox::setInterval ( int  start,
int  stop,
int  mystep = 1 
) [inline]
void uiSpinBox::setInterval ( const StepInterval< float > &   ) 
void uiSpinBox::setInterval ( double  v0,
double  v1,
double  vs = 1 
) [inline]
void uiSpinBox::setInterval ( const StepInterval< double > &  si  )  [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  thestep = 1 
) [inline]
void uiSpinBox::setKeyboardTracking ( bool   ) 
void uiSpinBox::setMaxValue ( double  d  )  [inline]
void uiSpinBox::setMaxValue ( int   ) 
void uiSpinBox::setMaxValue ( float   ) 
void uiSpinBox::setMinValue ( int   ) 
void uiSpinBox::setMinValue ( float   ) 
void uiSpinBox::setMinValue ( double  d  )  [inline]
void uiSpinBox::setNrDecimals ( int   ) 
void uiSpinBox::setPrefix ( const char *   ) 
void uiSpinBox::setSpecialValueText ( const char *   ) 
void uiSpinBox::setStep ( double  d,
bool  scv = false 
) [inline]
void uiSpinBox::setStep ( int  ,
bool  snap_cur_value = false 
)
void uiSpinBox::setStep ( float  ,
bool  snap_cur_value = false 
)
void uiSpinBox::setSuffix ( const char *   ) 
void uiSpinBox::setValue ( double  d  )  [inline]
void uiSpinBox::setValue ( int   ) 
void uiSpinBox::setValue ( const char *   ) 
void uiSpinBox::setValue ( float   ) 
void uiSpinBox::snapToStep ( CallBacker  )  [private]
int uiSpinBox::step (  )  const
void uiSpinBox::stepBy ( int  nrsteps  ) 
const char* uiSpinBox::suffix (  )  const

Friends And Related Function Documentation

friend class uiSpinBoxBody [friend]

Member Data Documentation

uiSpinBoxBody* uiSpinBox::body_ [private]

Reimplemented from uiBaseObject.

bool uiSpinBox::dosnap_ [private]

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

int uiSpinBox::factor_ [private]
float uiSpinBox::oldvalue_ [private]