DoubleSpinBox Class Reference

#include <DoubleSpinBox.h>

List of all members.

Signals

void valueChanged (double d)

Public Member Functions

int decimals ()
 DoubleSpinBox (const char format= 'g', QWidget *parent=0)
void setDecimals (int prec)
void setMaximum (double max)
void setMinimum (double min)
void setRange (double min, double max)
void setSingleStep (double val)
bool setValue (double val)
QString textFromValue (double value) const
virtual QValidator::State validate (QString &input, int &pos) const
double value ()

Protected Member Functions

void stepBy (int steps)
StepEnabled stepEnabled () const

Private Slots

void interpretText ()

Private Attributes

const char d_format
double d_max_val
double d_min_val
int d_prec
double d_step
double d_value


Constructor & Destructor Documentation

DoubleSpinBox::DoubleSpinBox ( const char  format = 'g',
QWidget *  parent = 0 
)

References d_format, d_prec, d_value, and interpretText().


Member Function Documentation

int DoubleSpinBox::decimals (  )  [inline]

References d_prec.

void DoubleSpinBox::interpretText (  )  [private, slot]

void DoubleSpinBox::setDecimals ( int  prec  )  [inline]

void DoubleSpinBox::setMaximum ( double  max  ) 

References d_max_val.

Referenced by setRange().

void DoubleSpinBox::setMinimum ( double  min  ) 

void DoubleSpinBox::setRange ( double  min,
double  max 
)

void DoubleSpinBox::setSingleStep ( double  val  ) 

bool DoubleSpinBox::setValue ( double  val  ) 

void DoubleSpinBox::stepBy ( int  steps  )  [protected]

QAbstractSpinBox::StepEnabled DoubleSpinBox::stepEnabled (  )  const [protected]

References d_max_val, d_min_val, and d_value.

QString DoubleSpinBox::textFromValue ( double  value  )  const

References d_format, d_min_val, and d_prec.

Referenced by interpretText(), and setValue().

QValidator::State DoubleSpinBox::validate ( QString &  input,
int &  pos 
) const [virtual]

double DoubleSpinBox::value (  )  [inline]

void DoubleSpinBox::valueChanged ( double  d  )  [signal]

Referenced by interpretText(), and stepBy().


Member Data Documentation

const char DoubleSpinBox::d_format [private]

Referenced by DoubleSpinBox(), and textFromValue().

double DoubleSpinBox::d_max_val [private]

double DoubleSpinBox::d_min_val [private]

int DoubleSpinBox::d_prec [private]

double DoubleSpinBox::d_step [private]

Referenced by setSingleStep(), and stepBy().

double DoubleSpinBox::d_value [private]


The documentation for this class was generated from the following files:

Generated on Sun Jun 15 21:32:22 2008 for QtiPlot by  doxygen 1.5.6