Thumbwheel Class Reference

#include <Thumbwheel.h>

Collaboration diagram for Thumbwheel:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 23 of file Thumbwheel.h.

Public Slots

void setMinimumValue (int min)
void setMaximumValue (int max)
void setDefaultValue (int deft)
void setSpeed (float speed)
void setTracking (bool tracking)
void setShowScale (bool show)
void setValue (int value)
void setMappedValue (float mappedValue)
void scroll (bool up)
void resetToDefault ()

Signals

void valueChanged (int)
void mouseEntered ()
void mouseLeft ()

Public Member Functions

 Thumbwheel (Qt::Orientation orientation, QWidget *parent=0)
virtual ~Thumbwheel ()
int getMinimumValue () const
int getMaximumValue () const
int getDefaultValue () const
float getSpeed () const
bool getTracking () const
bool getShowScale () const
int getValue () const
void setRangeMapper (RangeMapper *mapper)
const RangeMappergetRangeMapper () const
float getMappedValue () const
void setShowToolTip (bool show)
QSize sizeHint () const

Protected Slots

void updateMappedValue (int value)

Protected Member Functions

virtual void mousePressEvent (QMouseEvent *e)
virtual void mouseDoubleClickEvent (QMouseEvent *e)
virtual void mouseMoveEvent (QMouseEvent *e)
virtual void mouseReleaseEvent (QMouseEvent *e)
virtual void wheelEvent (QWheelEvent *e)
virtual void paintEvent (QPaintEvent *e)
virtual void enterEvent (QEvent *)
virtual void leaveEvent (QEvent *)

Protected Attributes

int m_min
int m_max
int m_default
int m_value
float m_mappedValue
bool m_noMappedUpdate
float m_rotation
Qt::Orientation m_orientation
float m_speed
bool m_tracking
bool m_showScale
bool m_clicked
bool m_atDefault
QPoint m_clickPos
float m_clickRotation
bool m_showTooltip
RangeMapperm_rangeMapper


Constructor & Destructor Documentation

Thumbwheel::Thumbwheel ( Qt::Orientation  orientation,
QWidget *  parent = 0 
)

Definition at line 31 of file Thumbwheel.cpp.

Thumbwheel::~Thumbwheel (  )  [virtual]

Definition at line 53 of file Thumbwheel.cpp.

References m_rangeMapper.


Member Function Documentation

int Thumbwheel::getMinimumValue (  )  const

Definition at line 98 of file Thumbwheel.cpp.

References m_min.

int Thumbwheel::getMaximumValue (  )  const

Definition at line 118 of file Thumbwheel.cpp.

References m_max.

Referenced by Pane::horizontalThumbwheelMoved().

int Thumbwheel::getDefaultValue (  )  const

Definition at line 161 of file Thumbwheel.cpp.

References m_default.

Referenced by Pane::updateHeadsUpDisplay().

float Thumbwheel::getSpeed (  )  const

Definition at line 257 of file Thumbwheel.cpp.

References m_speed.

bool Thumbwheel::getTracking (  )  const

Definition at line 269 of file Thumbwheel.cpp.

References m_tracking.

bool Thumbwheel::getShowScale (  )  const

Definition at line 281 of file Thumbwheel.cpp.

References m_showScale.

int Thumbwheel::getValue (  )  const

Definition at line 195 of file Thumbwheel.cpp.

References m_value.

Referenced by getMappedValue(), mouseDoubleClickEvent(), mouseMoveEvent(), resetToDefault(), scroll(), setDefaultValue(), setMappedValue(), setRangeMapper(), setShowToolTip(), and wheelEvent().

void Thumbwheel::setRangeMapper ( RangeMapper mapper  ) 

Definition at line 59 of file Thumbwheel.cpp.

References getValue(), m_rangeMapper, updateMappedValue(), and valueChanged().

Referenced by Pane::propertyContainerSelected(), and Pane::updateHeadsUpDisplay().

const RangeMapper* Thumbwheel::getRangeMapper (  )  const [inline]

Definition at line 40 of file Thumbwheel.h.

References m_rangeMapper.

float Thumbwheel::getMappedValue (  )  const

Definition at line 201 of file Thumbwheel.cpp.

References getValue(), m_mappedValue, and m_rangeMapper.

void Thumbwheel::setShowToolTip ( bool  show  ) 

Definition at line 75 of file Thumbwheel.cpp.

References getValue(), m_noMappedUpdate, m_showTooltip, and updateMappedValue().

QSize Thumbwheel::sizeHint (  )  const

Definition at line 569 of file Thumbwheel.cpp.

References m_orientation.

void Thumbwheel::valueChanged ( int   )  [signal]

Referenced by mouseMoveEvent(), resetToDefault(), scroll(), setDefaultValue(), setMappedValue(), setRangeMapper(), and wheelEvent().

void Thumbwheel::mouseEntered (  )  [signal]

Referenced by enterEvent().

void Thumbwheel::mouseLeft (  )  [signal]

Referenced by leaveEvent().

void Thumbwheel::setMinimumValue ( int  min  )  [slot]

Definition at line 84 of file Thumbwheel.cpp.

References m_max, m_min, m_rotation, and m_value.

Referenced by Pane::updateHeadsUpDisplay().

void Thumbwheel::setMaximumValue ( int  max  )  [slot]

Definition at line 104 of file Thumbwheel.cpp.

References m_max, m_min, m_rotation, and m_value.

Referenced by Pane::updateHeadsUpDisplay().

void Thumbwheel::setDefaultValue ( int  deft  )  [slot]

Definition at line 124 of file Thumbwheel.cpp.

References getValue(), m_atDefault, m_default, setValue(), and valueChanged().

Referenced by Pane::updateHeadsUpDisplay().

void Thumbwheel::setSpeed ( float  speed  )  [slot]

Definition at line 251 of file Thumbwheel.cpp.

References m_speed.

Referenced by Pane::updateHeadsUpDisplay().

void Thumbwheel::setTracking ( bool  tracking  )  [slot]

Definition at line 263 of file Thumbwheel.cpp.

References m_tracking.

void Thumbwheel::setShowScale ( bool  show  )  [slot]

Definition at line 275 of file Thumbwheel.cpp.

References m_showScale.

void Thumbwheel::setValue ( int  value  )  [slot]

Definition at line 167 of file Thumbwheel.cpp.

References m_atDefault, m_max, m_min, m_rotation, and m_value.

Referenced by mouseDoubleClickEvent(), mouseMoveEvent(), resetToDefault(), scroll(), setDefaultValue(), setMappedValue(), Pane::updateHeadsUpDisplay(), Pane::verticalZoomChanged(), and wheelEvent().

void Thumbwheel::setMappedValue ( float  mappedValue  )  [slot]

Definition at line 137 of file Thumbwheel.cpp.

References RangeMapper::getPositionForValue(), getValue(), m_mappedValue, m_noMappedUpdate, m_rangeMapper, setValue(), and valueChanged().

Referenced by mouseDoubleClickEvent().

void Thumbwheel::scroll ( bool  up  )  [slot]

Definition at line 236 of file Thumbwheel.cpp.

References getValue(), m_speed, m_value, setValue(), and valueChanged().

void Thumbwheel::resetToDefault (  )  [slot]

Definition at line 186 of file Thumbwheel.cpp.

References getValue(), m_atDefault, m_default, m_value, setValue(), and valueChanged().

Referenced by mousePressEvent().

void Thumbwheel::updateMappedValue ( int  value  )  [protected, slot]

Definition at line 211 of file Thumbwheel.cpp.

References RangeMapper::getUnit(), m_mappedValue, m_noMappedUpdate, m_rangeMapper, and m_showTooltip.

Referenced by setRangeMapper(), and setShowToolTip().

void Thumbwheel::mousePressEvent ( QMouseEvent *  e  )  [protected, virtual]

Definition at line 299 of file Thumbwheel.cpp.

References m_clicked, m_clickPos, m_clickRotation, m_rotation, and resetToDefault().

void Thumbwheel::mouseDoubleClickEvent ( QMouseEvent *  e  )  [protected, virtual]

Definition at line 313 of file Thumbwheel.cpp.

References RangeMapper::getUnit(), getValue(), RangeMapper::getValueForPosition(), m_mappedValue, m_max, m_min, m_rangeMapper, setMappedValue(), and setValue().

void Thumbwheel::mouseMoveEvent ( QMouseEvent *  e  )  [protected, virtual]

Definition at line 386 of file Thumbwheel.cpp.

References getValue(), m_clicked, m_clickPos, m_clickRotation, m_max, m_min, m_orientation, m_rotation, m_speed, m_tracking, m_value, setValue(), and valueChanged().

Referenced by mouseReleaseEvent().

void Thumbwheel::mouseReleaseEvent ( QMouseEvent *  e  )  [protected, virtual]

Definition at line 411 of file Thumbwheel.cpp.

References m_clicked, m_tracking, and mouseMoveEvent().

void Thumbwheel::wheelEvent ( QWheelEvent *  e  )  [protected, virtual]

Definition at line 422 of file Thumbwheel.cpp.

References getValue(), m_speed, m_value, setValue(), and valueChanged().

void Thumbwheel::paintEvent ( QPaintEvent *  e  )  [protected, virtual]

Definition at line 437 of file Thumbwheel.cpp.

References m_orientation, m_rotation, and m_showScale.

void Thumbwheel::enterEvent ( QEvent *   )  [protected, virtual]

Definition at line 287 of file Thumbwheel.cpp.

References mouseEntered().

void Thumbwheel::leaveEvent ( QEvent *   )  [protected, virtual]

Definition at line 293 of file Thumbwheel.cpp.

References mouseLeft().


Member Data Documentation

int Thumbwheel::m_min [protected]

Definition at line 78 of file Thumbwheel.h.

Referenced by getMinimumValue(), mouseDoubleClickEvent(), mouseMoveEvent(), setMaximumValue(), setMinimumValue(), and setValue().

int Thumbwheel::m_max [protected]

Definition at line 79 of file Thumbwheel.h.

Referenced by getMaximumValue(), mouseDoubleClickEvent(), mouseMoveEvent(), setMaximumValue(), setMinimumValue(), and setValue().

int Thumbwheel::m_default [protected]

Definition at line 80 of file Thumbwheel.h.

Referenced by getDefaultValue(), resetToDefault(), and setDefaultValue().

int Thumbwheel::m_value [protected]

Definition at line 81 of file Thumbwheel.h.

Referenced by getValue(), mouseMoveEvent(), resetToDefault(), scroll(), setMaximumValue(), setMinimumValue(), setValue(), and wheelEvent().

float Thumbwheel::m_mappedValue [protected]

Definition at line 82 of file Thumbwheel.h.

Referenced by getMappedValue(), mouseDoubleClickEvent(), setMappedValue(), and updateMappedValue().

bool Thumbwheel::m_noMappedUpdate [protected]

Definition at line 83 of file Thumbwheel.h.

Referenced by setMappedValue(), setShowToolTip(), and updateMappedValue().

float Thumbwheel::m_rotation [protected]

Definition at line 84 of file Thumbwheel.h.

Referenced by mouseMoveEvent(), mousePressEvent(), paintEvent(), setMaximumValue(), setMinimumValue(), and setValue().

Qt::Orientation Thumbwheel::m_orientation [protected]

Definition at line 85 of file Thumbwheel.h.

Referenced by mouseMoveEvent(), paintEvent(), and sizeHint().

float Thumbwheel::m_speed [protected]

Definition at line 86 of file Thumbwheel.h.

Referenced by getSpeed(), mouseMoveEvent(), scroll(), setSpeed(), and wheelEvent().

bool Thumbwheel::m_tracking [protected]

Definition at line 87 of file Thumbwheel.h.

Referenced by getTracking(), mouseMoveEvent(), mouseReleaseEvent(), and setTracking().

bool Thumbwheel::m_showScale [protected]

Definition at line 88 of file Thumbwheel.h.

Referenced by getShowScale(), paintEvent(), and setShowScale().

bool Thumbwheel::m_clicked [protected]

Definition at line 89 of file Thumbwheel.h.

Referenced by mouseMoveEvent(), mousePressEvent(), and mouseReleaseEvent().

bool Thumbwheel::m_atDefault [protected]

Definition at line 90 of file Thumbwheel.h.

Referenced by resetToDefault(), setDefaultValue(), and setValue().

QPoint Thumbwheel::m_clickPos [protected]

Definition at line 91 of file Thumbwheel.h.

Referenced by mouseMoveEvent(), and mousePressEvent().

float Thumbwheel::m_clickRotation [protected]

Definition at line 92 of file Thumbwheel.h.

Referenced by mouseMoveEvent(), and mousePressEvent().

bool Thumbwheel::m_showTooltip [protected]

Definition at line 93 of file Thumbwheel.h.

Referenced by setShowToolTip(), and updateMappedValue().

RangeMapper* Thumbwheel::m_rangeMapper [protected]

Definition at line 94 of file Thumbwheel.h.

Referenced by getMappedValue(), getRangeMapper(), mouseDoubleClickEvent(), setMappedValue(), setRangeMapper(), updateMappedValue(), and ~Thumbwheel().


The documentation for this class was generated from the following files:
Generated on Wed Feb 20 15:45:36 2008 for SonicVisualiser by  doxygen 1.5.1