ctkRangeWidget Class Reference

#include <Libs/Widgets/ctkRangeWidget.h>

List of all members.

Public Types

typedef QWidget Superclass
 Superclass typedef.

Public Slots

void reset ()
void setMaximumValue (double value)
void setMinimumValue (double value)
void setValues (double minValue, double maxValue)

Signals

void maximumValueChanged (double value)
void maximumValueIsChanging (double value)
void minimumValueChanged (double value)
void minimumValueIsChanging (double value)

Public Member Functions

 ctkRangeWidget (QWidget *parent=0)
 Constructors.
int decimals () const
bool hasTracking () const
bool isAutoSpinBoxWidth () const
double maximum () const
double maximumValue () const
double minimum () const
double minimumValue () 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

Protected Slots

void changeMaximumValue (double value)
void changeMinimumValue (double value)
void setMaximumToMinimumSpinBox (double maximum)
void setMinimumToMaximumSpinBox (double minimum)
void startChanging ()
void stopChanging ()

Protected Member Functions

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

Properties

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

Private Member Functions

 CTK_DECLARE_PRIVATE (ctkRangeWidget)

Detailed Description

Definition at line 34 of file ctkRangeWidget.h.


Member Typedef Documentation

typedef QWidget ctkRangeWidget::Superclass

Superclass typedef.

Definition at line 52 of file ctkRangeWidget.h.


Constructor & Destructor Documentation

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

Constructors.

Definition at line 119 of file ctkRangeWidget.cpp.


Member Function Documentation

void ctkRangeWidget::changeMaximumValue ( double  value  )  [protected, slot]

Definition at line 347 of file ctkRangeWidget.cpp.

void ctkRangeWidget::changeMinimumValue ( double  value  )  [protected, slot]

Definition at line 333 of file ctkRangeWidget.cpp.

ctkRangeWidget::CTK_DECLARE_PRIVATE ( ctkRangeWidget   )  [private]
int ctkRangeWidget::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 ctkRangeWidget::eventFilter ( QObject *  obj,
QEvent *  event 
) [protected, virtual]

Definition at line 361 of file ctkRangeWidget.cpp.

bool ctkRangeWidget::hasTracking (  )  const

Definition at line 505 of file ctkRangeWidget.cpp.

bool ctkRangeWidget::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 512 of file ctkRangeWidget.cpp.

double ctkRangeWidget::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 ctkRangeWidget::maximumValue (  )  const

This property holds the slider and spinbox maximum value. ctkRangeWidget forces the value to be within the legal range: minimum <= minimumValue <= maximumValue <= maximum.

void ctkRangeWidget::maximumValueChanged ( double  value  )  [signal]
void ctkRangeWidget::maximumValueIsChanging ( double  value  )  [signal]
double ctkRangeWidget::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.

double ctkRangeWidget::minimumValue (  )  const

This property holds the slider and spinbox minimum value. ctkRangeWidget forces the value to be within the legal range: minimum <= minimumValue <= maximumValue <= maximum.

void ctkRangeWidget::minimumValueChanged ( double  value  )  [signal]

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

void ctkRangeWidget::minimumValueIsChanging ( double  value  )  [signal]
QString ctkRangeWidget::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 ctkRangeWidget::reset (  )  [slot]

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

Definition at line 475 of file ctkRangeWidget.cpp.

void ctkRangeWidget::setAutoSpinBoxWidth ( bool  autoWidth  ) 

Definition at line 519 of file ctkRangeWidget.cpp.

void ctkRangeWidget::setDecimals ( int  decimals  ) 

Definition at line 415 of file ctkRangeWidget.cpp.

void ctkRangeWidget::setMaximum ( double  maximum  ) 

Definition at line 176 of file ctkRangeWidget.cpp.

void ctkRangeWidget::setMaximumToMinimumSpinBox ( double  maximum  )  [protected, slot]

Definition at line 295 of file ctkRangeWidget.cpp.

void ctkRangeWidget::setMaximumValue ( double  value  )  [slot]

Definition at line 255 of file ctkRangeWidget.cpp.

void ctkRangeWidget::setMinimum ( double  minimum  ) 

Definition at line 164 of file ctkRangeWidget.cpp.

void ctkRangeWidget::setMinimumToMaximumSpinBox ( double  minimum  )  [protected, slot]

Definition at line 289 of file ctkRangeWidget.cpp.

void ctkRangeWidget::setMinimumValue ( double  value  )  [slot]

Definition at line 239 of file ctkRangeWidget.cpp.

void ctkRangeWidget::setPrefix ( const QString &  prefix  ) 

Definition at line 437 of file ctkRangeWidget.cpp.

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

Description Utility function that set the min/max in once

Definition at line 188 of file ctkRangeWidget.cpp.

void ctkRangeWidget::setSingleStep ( double  step  ) 

Definition at line 396 of file ctkRangeWidget.cpp.

void ctkRangeWidget::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 482 of file ctkRangeWidget.cpp.

void ctkRangeWidget::setSuffix ( const QString &  suffix  ) 

Definition at line 453 of file ctkRangeWidget.cpp.

void ctkRangeWidget::setTickInterval ( double  ti  ) 

Definition at line 468 of file ctkRangeWidget.cpp.

void ctkRangeWidget::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 498 of file ctkRangeWidget.cpp.

void ctkRangeWidget::setValues ( double  minValue,
double  maxValue 
) [slot]

Utility function that set the min and max values at once

Definition at line 271 of file ctkRangeWidget.cpp.

double ctkRangeWidget::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 ctkRangeWidget::spinBoxAlignment (  )  const
void ctkRangeWidget::startChanging (  )  [protected, slot]

Definition at line 301 of file ctkRangeWidget.cpp.

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

Definition at line 314 of file ctkRangeWidget.cpp.

QString ctkRangeWidget::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 ctkRangeWidget::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.


Property Documentation

bool ctkRangeWidget::autoSpinBoxWidth [read, write]

Definition at line 46 of file ctkRangeWidget.h.

int ctkRangeWidget::decimals [read, write]

Definition at line 40 of file ctkRangeWidget.h.

double ctkRangeWidget::maximum [read, write]

Definition at line 38 of file ctkRangeWidget.h.

double ctkRangeWidget::maximumValue [read, write]

Definition at line 42 of file ctkRangeWidget.h.

double ctkRangeWidget::minimum [read, write]

Definition at line 37 of file ctkRangeWidget.h.

double ctkRangeWidget::minimumValue [read, write]

Definition at line 41 of file ctkRangeWidget.h.

QString ctkRangeWidget::prefix [read, write]

Definition at line 43 of file ctkRangeWidget.h.

double ctkRangeWidget::singleStep [read, write]

Definition at line 39 of file ctkRangeWidget.h.

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

Definition at line 47 of file ctkRangeWidget.h.

QString ctkRangeWidget::suffix [read, write]

Definition at line 44 of file ctkRangeWidget.h.

double ctkRangeWidget::tickInterval [read, write]

Definition at line 45 of file ctkRangeWidget.h.

bool ctkRangeWidget::tracking [read, write]

Definition at line 48 of file ctkRangeWidget.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