ctkSliderSpinBoxWidget Class Reference

#include <Libs/Widgets/ctkSliderSpinBoxWidget.h>

List of all members.

Public Types

typedef QWidget Superclass
 Superclass typedef.

Public Slots

void reset ()
void setValue (double value)


void valueChanged (double value)
void valueIsChanging (double value)

Public Member Functions

 ctkSliderSpinBoxWidget (QWidget *parent=0)
int decimals () const
bool hasTracking () const
bool isAutoSpinBoxWidth () const
double maximum () const
double minimum () const
QString prefix () const
void setAutoSpinBoxWidth (bool autoWidth)
void setDecimals (int decimals)
void setMaximum (double maximum)
void setMinimum (double minimum)
void setPrefix (const QString &prefix)
void setRange (double min, double max)
void setSingleStep (double step)
void setSpinBoxAlignment (Qt::Alignment alignment)
void setSuffix (const QString &suffix)
void setTickInterval (double ti)
void setTracking (bool enable)
double singleStep () const
Qt::Alignment spinBoxAlignment () const
QString suffix () const
double tickInterval () const
double value () const
virtual ~ctkSliderSpinBoxWidget ()

Protected Slots

void changeValue (double value)
void startChanging ()
void stopChanging ()

Protected Member Functions

virtual bool eventFilter (QObject *obj, QEvent *event)


bool autoSpinBoxWidth
int decimals
double maximum
double minimum
QString prefix
double singleStep
Qt::Alignment spinBoxAlignment
QString suffix
double tickInterval
bool tracking
double value

Private Member Functions

 CTK_DECLARE_PRIVATE (ctkSliderSpinBoxWidget)

Detailed Description

Definition at line 34 of file ctkSliderSpinBoxWidget.h.

Member Typedef Documentation

Superclass typedef.

Definition at line 51 of file ctkSliderSpinBoxWidget.h.

Constructor & Destructor Documentation

ctkSliderSpinBoxWidget::ctkSliderSpinBoxWidget ( QWidget *  parent = 0  )  [explicit]


Definition at line 112 of file ctkSliderSpinBoxWidget.cpp.

virtual ctkSliderSpinBoxWidget::~ctkSliderSpinBoxWidget (  )  [inline, virtual]

Definition at line 55 of file ctkSliderSpinBoxWidget.h.

Member Function Documentation

void ctkSliderSpinBoxWidget::changeValue ( double  value  )  [protected, slot]

Definition at line 258 of file ctkSliderSpinBoxWidget.cpp.

ctkSliderSpinBoxWidget::CTK_DECLARE_PRIVATE ( ctkSliderSpinBoxWidget   )  [private]
int ctkSliderSpinBoxWidget::decimals (  )  const

This property holds the precision of the spin box, in decimals. Sets how many decimals the spinbox will use for displaying and interpreting doubles.

bool ctkSliderSpinBoxWidget::eventFilter ( QObject *  obj,
QEvent *  event 
) [protected, virtual]

Definition at line 272 of file ctkSliderSpinBoxWidget.cpp.

bool ctkSliderSpinBoxWidget::hasTracking (  )  const

Definition at line 402 of file ctkSliderSpinBoxWidget.cpp.

bool ctkSliderSpinBoxWidget::isAutoSpinBoxWidth (  )  const

Set/Get the auto spinbox width When the autoSpinBoxWidth property is on, the width of the SpinBox is set to the same width of the largest QSpinBox of its

Definition at line 409 of file ctkSliderSpinBoxWidget.cpp.

double ctkSliderSpinBoxWidget::maximum (  )  const

This property holds the sliders and spinbox minimum value. FIXME: Test following specs. When setting this property, the maximum is adjusted if necessary to ensure that the range remains valid. Also the slider's current value is adjusted to be within the new range.

double ctkSliderSpinBoxWidget::minimum (  )  const

This property holds the sliders and spinbox minimum value. FIXME: Test following specs. When setting this property, the maximum is adjusted if necessary to ensure that the range remains valid. Also the slider's current value is adjusted to be within the new range.

QString ctkSliderSpinBoxWidget::prefix (  )  const

This property holds the spin box's prefix. The prefix is prepended to the start of the displayed value. Typical use is to display a unit of measurement or a currency symbol

void ctkSliderSpinBoxWidget::reset (  )  [slot]

Reset the slider and spinbox to zero (value and position)

Definition at line 377 of file ctkSliderSpinBoxWidget.cpp.

void ctkSliderSpinBoxWidget::setAutoSpinBoxWidth ( bool  autoWidth  ) 

Definition at line 416 of file ctkSliderSpinBoxWidget.cpp.

void ctkSliderSpinBoxWidget::setDecimals ( int  decimals  ) 

Definition at line 322 of file ctkSliderSpinBoxWidget.cpp.

void ctkSliderSpinBoxWidget::setMaximum ( double  maximum  ) 

Definition at line 161 of file ctkSliderSpinBoxWidget.cpp.

void ctkSliderSpinBoxWidget::setMinimum ( double  minimum  ) 

Definition at line 149 of file ctkSliderSpinBoxWidget.cpp.

void ctkSliderSpinBoxWidget::setPrefix ( const QString &  prefix  ) 

Definition at line 342 of file ctkSliderSpinBoxWidget.cpp.

void ctkSliderSpinBoxWidget::setRange ( double  min,
double  max 

Description Utility function that set the min/max in once

Definition at line 173 of file ctkSliderSpinBoxWidget.cpp.

void ctkSliderSpinBoxWidget::setSingleStep ( double  step  ) 

Definition at line 306 of file ctkSliderSpinBoxWidget.cpp.

void ctkSliderSpinBoxWidget::setSpinBoxAlignment ( Qt::Alignment  alignment  ) 

This property holds the alignment of the spin box. Possible Values are Qt::AlignLeft, Qt::AlignRight, and Qt::AlignHCenter. By default, the alignment is Qt::AlignLeft

Definition at line 383 of file ctkSliderSpinBoxWidget.cpp.

void ctkSliderSpinBoxWidget::setSuffix ( const QString &  suffix  ) 

Definition at line 356 of file ctkSliderSpinBoxWidget.cpp.

void ctkSliderSpinBoxWidget::setTickInterval ( double  ti  ) 

Definition at line 370 of file ctkSliderSpinBoxWidget.cpp.

void ctkSliderSpinBoxWidget::setTracking ( bool  enable  ) 

This property holds whether slider tracking is enabled. If tracking is enabled (the default), the widget emits the valueChanged() signal while the slider or spinbox is being dragged. If tracking is disabled, the widget emits the valueChanged() signal only when the user releases the slider or spinbox.

Definition at line 395 of file ctkSliderSpinBoxWidget.cpp.

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

Definition at line 215 of file ctkSliderSpinBoxWidget.cpp.

double ctkSliderSpinBoxWidget::singleStep (  )  const

This property holds the single step. The smaller of two natural steps that the slider provides and typically corresponds to the user pressing an arrow key.

Qt::Alignment ctkSliderSpinBoxWidget::spinBoxAlignment (  )  const
void ctkSliderSpinBoxWidget::startChanging (  )  [protected, slot]

Definition at line 231 of file ctkSliderSpinBoxWidget.cpp.

void ctkSliderSpinBoxWidget::stopChanging (  )  [protected, slot]

Definition at line 243 of file ctkSliderSpinBoxWidget.cpp.

QString ctkSliderSpinBoxWidget::suffix (  )  const

This property holds the spin box's suffix. The suffix is appended to the end of the displayed value. Typical use is to display a unit of measurement or a currency symbol

double ctkSliderSpinBoxWidget::tickInterval (  )  const

This property holds the interval between tickmarks. This is a value interval, not a pixel interval. If it is 0, the slider will choose between lineStep() and pageStep(). The default value is 0.

double ctkSliderSpinBoxWidget::value (  )  const

This property holds the current slider position. If tracking is enabled (the default), this is identical to value. This property holds the slider and spinbox current value. ctkSliderSpinBoxWidget forces the value to be within the legal range: minimum <= value <= maximum.

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

Use with care: sliderMoved is emitted only when the user moves the slider

void ctkSliderSpinBoxWidget::valueIsChanging ( double  value  )  [signal]

Property Documentation

bool ctkSliderSpinBoxWidget::autoSpinBoxWidth [read, write]

Definition at line 45 of file ctkSliderSpinBoxWidget.h.

int ctkSliderSpinBoxWidget::decimals [read, write]

Definition at line 41 of file ctkSliderSpinBoxWidget.h.

double ctkSliderSpinBoxWidget::maximum [read, write]

Definition at line 38 of file ctkSliderSpinBoxWidget.h.

double ctkSliderSpinBoxWidget::minimum [read, write]

Definition at line 37 of file ctkSliderSpinBoxWidget.h.

QString ctkSliderSpinBoxWidget::prefix [read, write]

Definition at line 42 of file ctkSliderSpinBoxWidget.h.

double ctkSliderSpinBoxWidget::singleStep [read, write]

Definition at line 40 of file ctkSliderSpinBoxWidget.h.

Qt::Alignment ctkSliderSpinBoxWidget::spinBoxAlignment [read, write]

Definition at line 46 of file ctkSliderSpinBoxWidget.h.

QString ctkSliderSpinBoxWidget::suffix [read, write]

Definition at line 43 of file ctkSliderSpinBoxWidget.h.

double ctkSliderSpinBoxWidget::tickInterval [read, write]

Definition at line 44 of file ctkSliderSpinBoxWidget.h.

bool ctkSliderSpinBoxWidget::tracking [read, write]

Definition at line 47 of file ctkSliderSpinBoxWidget.h.

double ctkSliderSpinBoxWidget::value [read, write]

Definition at line 39 of file ctkSliderSpinBoxWidget.h.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated on 21 May 2010 for CTK by  doxygen 1.6.1