QwpDoubleSlider Class Reference

The QwpDoubleSlider widget provides a double-precision floating-point vertical or horizontal slider. More...

#include <qwpdoubleslider.h>

Inheritance diagram for QwpDoubleSlider:

QwpHDoubleSlider QwpVDoubleSlider List of all members.

Public Slots

void setOrientation (Qt::Orientation orientation)
void setValue (double value)

Signals

void actionTriggered (int action)
void rangeChanged (double min, double max)
void sliderMoved (double value)
void sliderPressed ()
void sliderReleased ()
void valueChanged (double value)

Public Member Functions

 Q_ENUMS (Qt::Orientation)
 Q_ENUMS (QSlider::TickPosition)
 QwpDoubleSlider (QWidget *parent)
 QwpDoubleSlider (Qt::Orientation orientation, QWidget *parent)
double value () const
double minimum () const
double maximum () const
void setMinimum (double min)
void setMaximum (double max)
void setRange (double min, double max)
Qt::Orientation orientation () const
bool hasTracking () const
bool invertedAppearance () const
bool invertedControls () const
bool isSliderDown () const
double pageStep () const
double sliderPosition () const
double singleStep () const
void setTracking (bool enable)
void setInvertedAppearance (bool enable)
void setInvertedControls (bool enable)
void setPageStep (double step)
void setSliderDown (bool enable)
void setSliderPosition (double position)
void setSingleStep (double step)
double tickInterval () const
void setTickInterval (double interval)
QSlider::TickPosition tickPosition () const
void setTickPosition (QSlider::TickPosition position)
void triggerAction (QSlider::SliderAction action)
QSize sizeHint () const

Protected Member Functions

QSlider * slider () const
double sliderValueToDouble (int value) const
int doubleToSliderValue (double value) const
void resizeEvent (QResizeEvent *event)

Properties

double minimum
double maximum
double singleStep
double pageStep
double value
bool sliderDown
double sliderPosition
bool tracking
Qt::Orientation orientation
bool invertedAppearance
bool invertedControls
QSlider::TickPosition tickPosition
double tickInterval

Detailed Description

The QwpDoubleSlider widget provides a double-precision floating-point vertical or horizontal slider.

Reasons for using an internal QSlider, rather than drawing the slider using the style and looking after the control ourself: 1. There are lots of control issues, which differ across platforms - lots of work. 2. The styles cheat a bit, as they check if a widget is actually a QSlider before they perfrom some operations.


Constructor & Destructor Documentation

QwpDoubleSlider::QwpDoubleSlider ( QWidget *  parent  ) 

QwpDoubleSlider::QwpDoubleSlider ( Qt::Orientation  orientation,
QWidget *  parent 
)


Member Function Documentation

QwpDoubleSlider::Q_ENUMS ( Qt::Orientation   ) 

QwpDoubleSlider::Q_ENUMS ( QSlider::TickPosition   ) 

double QwpDoubleSlider::value (  )  const

double QwpDoubleSlider::minimum (  )  const

double QwpDoubleSlider::maximum (  )  const

void QwpDoubleSlider::setMinimum ( double  min  ) 

void QwpDoubleSlider::setMaximum ( double  max  ) 

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

Sets the slider's minimum to min and its maximum to max.

If max is smaller than min, min becomes the only legal value.

Qt::Orientation QwpDoubleSlider::orientation (  )  const

bool QwpDoubleSlider::hasTracking (  )  const

bool QwpDoubleSlider::invertedAppearance (  )  const

bool QwpDoubleSlider::invertedControls (  )  const

bool QwpDoubleSlider::isSliderDown (  )  const

double QwpDoubleSlider::pageStep (  )  const

double QwpDoubleSlider::sliderPosition (  )  const

double QwpDoubleSlider::singleStep (  )  const

void QwpDoubleSlider::setTracking ( bool  enable  ) 

void QwpDoubleSlider::setInvertedAppearance ( bool  enable  ) 

void QwpDoubleSlider::setInvertedControls ( bool  enable  ) 

void QwpDoubleSlider::setPageStep ( double  step  ) 

void QwpDoubleSlider::setSliderDown ( bool  enable  ) 

void QwpDoubleSlider::setSliderPosition ( double  position  ) 

void QwpDoubleSlider::setSingleStep ( double  step  ) 

double QwpDoubleSlider::tickInterval (  )  const

void QwpDoubleSlider::setTickInterval ( double  interval  ) 

QSlider::TickPosition QwpDoubleSlider::tickPosition (  )  const

void QwpDoubleSlider::setTickPosition ( QSlider::TickPosition  position  ) 

void QwpDoubleSlider::triggerAction ( QSlider::SliderAction  action  ) 

QSize QwpDoubleSlider::sizeHint (  )  const

void QwpDoubleSlider::actionTriggered ( int  action  )  [signal]

void QwpDoubleSlider::rangeChanged ( double  min,
double  max 
) [signal]

void QwpDoubleSlider::sliderMoved ( double  value  )  [signal]

void QwpDoubleSlider::sliderPressed (  )  [signal]

void QwpDoubleSlider::sliderReleased (  )  [signal]

void QwpDoubleSlider::valueChanged ( double  value  )  [signal]

void QwpDoubleSlider::setOrientation ( Qt::Orientation  orientation  )  [slot]

void QwpDoubleSlider::setValue ( double  value  )  [slot]

QSlider * QwpDoubleSlider::slider (  )  const [protected]

double QwpDoubleSlider::sliderValueToDouble ( int  value  )  const [protected]

int QwpDoubleSlider::doubleToSliderValue ( double  value  )  const [protected]

void QwpDoubleSlider::resizeEvent ( QResizeEvent *  event  )  [protected]


Property Documentation

double QwpDoubleSlider::minimum [read, write]

double QwpDoubleSlider::maximum [read, write]

double QwpDoubleSlider::singleStep [read, write]

double QwpDoubleSlider::pageStep [read, write]

double QwpDoubleSlider::value [read, write]

bool QwpDoubleSlider::sliderDown [read, write]

double QwpDoubleSlider::sliderPosition [read, write]

bool QwpDoubleSlider::tracking [read, write]

Qt::Orientation QwpDoubleSlider::orientation [read, write]

bool QwpDoubleSlider::invertedAppearance [read, write]

bool QwpDoubleSlider::invertedControls [read, write]

QSlider::TickPosition QwpDoubleSlider::tickPosition [read, write]

double QwpDoubleSlider::tickInterval [read, write]


The documentation for this class was generated from the following files:
Generated on Mon Jul 30 09:46:53 2007 for Digest by  doxygen 1.5.2