Public Types | Public Slots | Signals | Public Member Functions | Protected Slots | Properties | Private Member Functions

ctkDoubleRangeSlider Class Reference

#include <Libs/Widgets/ctkDoubleRangeSlider.h>

List of all members.

Public Types

typedef QWidget Superclass

Public Slots

void setMaximumValue (double maxVal)
void setMinimumValue (double minVal)
void setValues (double minVal, double maxVal)

Signals

void maximumPositionChanged (double maxPos)
void maximumValueChanged (double maxVal)
void minimumPositionChanged (double minPos)
void minimumValueChanged (double minVal)
void positionsChanged (double minPos, double maxPos)
void sliderPressed ()
void sliderReleased ()
void valuesChanged (double minVal, double maxVal)

Public Member Functions

 ctkDoubleRangeSlider (Qt::Orientation o, QWidget *par=0)
 ctkDoubleRangeSlider (QWidget *par=0)
bool hasTracking () const
double maximum () const
double maximumPosition () const
double maximumValue () const
double minimum () const
double minimumPosition () const
double minimumValue () const
Qt::Orientation orientation () const
void setMaximum (double max)
void setMaximumPosition (double maxPos)
void setMinimum (double min)
void setMinimumPosition (double minPos)
void setOrientation (Qt::Orientation orientation)
void setPositions (double minPos, double maxPos)
void setRange (double min, double max)
void setSingleStep (double ss)
void setTickInterval (double ti)
void setTracking (bool enable)
double singleStep () const
double tickInterval () const
void triggerAction (QAbstractSlider::SliderAction action)

Protected Slots

void onMaxPosChanged (int value)
void onMaxValueChanged (int value)
void onMinPosChanged (int value)
void onMinValueChanged (int value)
void onPositionsChanged (int min, int max)
void onValuesChanged (int min, int max)

Properties

double maximum
double maximumPosition
double maximumValue
double minimum
double minimumPosition
double minimumValue
Qt::Orientation orientation
double singleStep
double tickInterval
bool tracking

Private Member Functions

 CTK_DECLARE_PRIVATE (ctkDoubleRangeSlider)

Detailed Description

Definition at line 33 of file ctkDoubleRangeSlider.h.


Member Typedef Documentation

Definition at line 48 of file ctkDoubleRangeSlider.h.


Constructor & Destructor Documentation

ctkDoubleRangeSlider::ctkDoubleRangeSlider ( Qt::Orientation  o,
QWidget *  par = 0 
)

Definition at line 137 of file ctkDoubleRangeSlider.cpp.

ctkDoubleRangeSlider::ctkDoubleRangeSlider ( QWidget *  par = 0  ) 

Definition at line 130 of file ctkDoubleRangeSlider.cpp.


Member Function Documentation

ctkDoubleRangeSlider::CTK_DECLARE_PRIVATE ( ctkDoubleRangeSlider   )  [private]
bool ctkDoubleRangeSlider::hasTracking (  )  const

Definition at line 378 of file ctkDoubleRangeSlider.cpp.

double ctkDoubleRangeSlider::maximum (  )  const

This property holds the slider's maximum value. When setting this property, the minimum is adjusted if necessary to ensure that the range remains valid. Also the slider's current values are adjusted to be within the new range.

double ctkDoubleRangeSlider::maximumPosition (  )  const

This property holds the current slider maximum position. If tracking is enabled (the default), this is identical to maximumValue.

void ctkDoubleRangeSlider::maximumPositionChanged ( double  maxPos  )  [signal]

This signal is emitted when sliderDown is true and the slider moves. This usually happens when the user is dragging the maximum slider. The value is the new slider maximum position. This signal is emitted even when tracking is turned off.

double ctkDoubleRangeSlider::maximumValue (  )  const

This property holds the slider's current maximum value. The slider forces the maximum value to be within the legal range: minimum <= minvalue <= maxvalue <= maximum. Changing the maximumValue also changes the maximumPosition.

void ctkDoubleRangeSlider::maximumValueChanged ( double  maxVal  )  [signal]

This signal is emitted when the slider maximum value has changed, with the new slider value as argument.

double ctkDoubleRangeSlider::minimum (  )  const

This property holds the sliders's minimum value. When setting this property, the maximum is adjusted if necessary to ensure that the range remains valid. Also the slider's current values are adjusted to be within the new range.

double ctkDoubleRangeSlider::minimumPosition (  )  const

This property holds the current slider minimum position. If tracking is enabled (the default), this is identical to minimumValue.

void ctkDoubleRangeSlider::minimumPositionChanged ( double  minPos  )  [signal]

This signal is emitted when sliderDown is true and the slider moves. This usually happens when the user is dragging the minimum slider. The value is the new slider minimum position. This signal is emitted even when tracking is turned off.

double ctkDoubleRangeSlider::minimumValue (  )  const

This property holds the slider's current minimum value. The slider forces the minimum value to be within the legal range: minimum <= minvalue <= maxvalue <= maximum. Changing the minimumValue also changes the minimumPosition.

void ctkDoubleRangeSlider::minimumValueChanged ( double  minVal  )  [signal]

This signal is emitted when the slider minimum value has changed, with the new slider value as argument.

void ctkDoubleRangeSlider::onMaxPosChanged ( int  value  )  [protected, slot]

Definition at line 453 of file ctkDoubleRangeSlider.cpp.

void ctkDoubleRangeSlider::onMaxValueChanged ( int  value  )  [protected, slot]

Definition at line 426 of file ctkDoubleRangeSlider.cpp.

void ctkDoubleRangeSlider::onMinPosChanged ( int  value  )  [protected, slot]

Definition at line 446 of file ctkDoubleRangeSlider.cpp.

void ctkDoubleRangeSlider::onMinValueChanged ( int  value  )  [protected, slot]

Definition at line 413 of file ctkDoubleRangeSlider.cpp.

void ctkDoubleRangeSlider::onPositionsChanged ( int  min,
int  max 
) [protected, slot]

Definition at line 459 of file ctkDoubleRangeSlider.cpp.

void ctkDoubleRangeSlider::onValuesChanged ( int  min,
int  max 
) [protected, slot]

Definition at line 439 of file ctkDoubleRangeSlider.cpp.

Qt::Orientation ctkDoubleRangeSlider::orientation (  )  const

This property holds the orientation of the slider. The orientation must be Qt::Vertical (the default) or Qt::Horizontal.

void ctkDoubleRangeSlider::positionsChanged ( double  minPos,
double  maxPos 
) [signal]

Utility signal that is fired when minimum or maximum positions have changed.

void ctkDoubleRangeSlider::setMaximum ( double  max  ) 

Definition at line 169 of file ctkDoubleRangeSlider.cpp.

void ctkDoubleRangeSlider::setMaximumPosition ( double  maxPos  ) 

Definition at line 238 of file ctkDoubleRangeSlider.cpp.

void ctkDoubleRangeSlider::setMaximumValue ( double  maxVal  )  [slot]

This property holds the slider's current maximum value. The slider forces the maximum value to be within the legal range: minimum <= minvalue <= maxvalue <= maximum. Changing the maximumValue also changes the maximumPosition.

Definition at line 296 of file ctkDoubleRangeSlider.cpp.

void ctkDoubleRangeSlider::setMinimum ( double  min  ) 

Definition at line 146 of file ctkDoubleRangeSlider.cpp.

void ctkDoubleRangeSlider::setMinimumPosition ( double  minPos  ) 

Definition at line 224 of file ctkDoubleRangeSlider.cpp.

void ctkDoubleRangeSlider::setMinimumValue ( double  minVal  )  [slot]

This property holds the slider's current minimum value. The slider forces the minimum value to be within the legal range: minimum <= minvalue <= maxvalue <= maximum. Changing the minimumValue also changes the minimumPosition.

Definition at line 259 of file ctkDoubleRangeSlider.cpp.

void ctkDoubleRangeSlider::setOrientation ( Qt::Orientation  orientation  ) 

Definition at line 399 of file ctkDoubleRangeSlider.cpp.

void ctkDoubleRangeSlider::setPositions ( double  minPos,
double  maxPos 
)

Utility function that set the minimum position and maximum position at once.

Definition at line 245 of file ctkDoubleRangeSlider.cpp.

void ctkDoubleRangeSlider::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.

Definition at line 192 of file ctkDoubleRangeSlider.cpp.

void ctkDoubleRangeSlider::setSingleStep ( double  ss  ) 

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

Definition at line 340 of file ctkDoubleRangeSlider.cpp.

void ctkDoubleRangeSlider::setTickInterval ( double  ti  ) 

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.

Definition at line 371 of file ctkDoubleRangeSlider.cpp.

void ctkDoubleRangeSlider::setTracking ( bool  enable  ) 

This property holds whether slider tracking is enabled. If tracking is enabled (the default), the slider emits the minimumValueChanged() signal while the left/bottom handler is being dragged and the slider emits the maximumValueChanged() signal while the right/top handler is being dragged. If tracking is disabled, the slider emits the minimumValueChanged() and maximumValueChanged() signals only when the user releases the slider.

Definition at line 385 of file ctkDoubleRangeSlider.cpp.

void ctkDoubleRangeSlider::setValues ( double  minVal,
double  maxVal 
) [slot]

Utility function that set the minimum value and maximum value at once.

Definition at line 326 of file ctkDoubleRangeSlider.cpp.

double ctkDoubleRangeSlider::singleStep (  )  const
void ctkDoubleRangeSlider::sliderPressed (  )  [signal]

This signal is emitted when the user presses one slider with the mouse, or programmatically when setSliderDown(true) is called.

void ctkDoubleRangeSlider::sliderReleased (  )  [signal]

This signal is emitted when the user releases one slider with the mouse, or programmatically when setSliderDown(false) is called.

double ctkDoubleRangeSlider::tickInterval (  )  const
void ctkDoubleRangeSlider::triggerAction ( QAbstractSlider::SliderAction  action  ) 

Triggers a slider action on the current slider. Possible actions are SliderSingleStepAdd, SliderSingleStepSub, SliderPageStepAdd, SliderPageStepSub, SliderToMinimum, SliderToMaximum, and SliderMove.

Definition at line 392 of file ctkDoubleRangeSlider.cpp.

void ctkDoubleRangeSlider::valuesChanged ( double  minVal,
double  maxVal 
) [signal]

Utility signal that is fired when minimum or maximum values have changed.


Property Documentation

double ctkDoubleRangeSlider::maximum [read, write]

Definition at line 37 of file ctkDoubleRangeSlider.h.

double ctkDoubleRangeSlider::maximumPosition [read, write]

Definition at line 42 of file ctkDoubleRangeSlider.h.

double ctkDoubleRangeSlider::maximumValue [read, write]

Definition at line 40 of file ctkDoubleRangeSlider.h.

double ctkDoubleRangeSlider::minimum [read, write]

Definition at line 36 of file ctkDoubleRangeSlider.h.

double ctkDoubleRangeSlider::minimumPosition [read, write]

Definition at line 41 of file ctkDoubleRangeSlider.h.

double ctkDoubleRangeSlider::minimumValue [read, write]

Definition at line 39 of file ctkDoubleRangeSlider.h.

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

Definition at line 44 of file ctkDoubleRangeSlider.h.

double ctkDoubleRangeSlider::singleStep [read, write]

Definition at line 38 of file ctkDoubleRangeSlider.h.

double ctkDoubleRangeSlider::tickInterval [read, write]

Definition at line 45 of file ctkDoubleRangeSlider.h.

bool ctkDoubleRangeSlider::tracking [read, write]

Definition at line 43 of file ctkDoubleRangeSlider.h.


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