svgui  1.9
Thumbwheel Class Reference

#include <Thumbwheel.h>

List of all members.

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 RangeMapper * getRangeMapper () 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
RangeMapper * m_rangeMapper
QImage m_cache

Detailed Description

Definition at line 26 of file Thumbwheel.h.


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

Definition at line 98 of file Thumbwheel.cpp.

References m_min.

Definition at line 118 of file Thumbwheel.cpp.

References m_max.

Referenced by Pane::horizontalThumbwheelMoved().

Definition at line 164 of file Thumbwheel.cpp.

References m_default.

Referenced by Pane::updateHeadsUpDisplay().

float Thumbwheel::getSpeed ( ) const

Definition at line 262 of file Thumbwheel.cpp.

References m_speed.

bool Thumbwheel::getTracking ( ) const

Definition at line 274 of file Thumbwheel.cpp.

References m_tracking.

bool Thumbwheel::getShowScale ( ) const

Definition at line 286 of file Thumbwheel.cpp.

References m_showScale.

void Thumbwheel::setRangeMapper ( RangeMapper *  mapper)
const RangeMapper* Thumbwheel::getRangeMapper ( ) const [inline]

Definition at line 43 of file Thumbwheel.h.

References m_rangeMapper.

float Thumbwheel::getMappedValue ( ) const

Definition at line 206 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 582 of file Thumbwheel.cpp.

References m_orientation.

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_cache, m_default, setValue(), and valueChanged().

Referenced by Pane::updateHeadsUpDisplay().

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

Definition at line 256 of file Thumbwheel.cpp.

References m_speed.

Referenced by Pane::updateHeadsUpDisplay().

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

Definition at line 268 of file Thumbwheel.cpp.

References m_tracking.

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

Definition at line 280 of file Thumbwheel.cpp.

References m_showScale.

void Thumbwheel::setMappedValue ( float  mappedValue) [slot]
void Thumbwheel::scroll ( bool  up) [slot]

Definition at line 241 of file Thumbwheel.cpp.

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

Referenced by Pane::wheelVertical().

void Thumbwheel::resetToDefault ( ) [slot]

Definition at line 190 of file Thumbwheel.cpp.

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

Referenced by mousePressEvent().

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

Definition at line 216 of file Thumbwheel.cpp.

References m_mappedValue, m_noMappedUpdate, m_rangeMapper, and m_showTooltip.

Referenced by setRangeMapper(), and setShowToolTip().

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

Definition at line 304 of file Thumbwheel.cpp.

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

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

!! needs a common base class with AudioDial (and Panner?)

Definition at line 318 of file Thumbwheel.cpp.

References getValue(), m_mappedValue, m_max, m_min, m_rangeMapper, setMappedValue(), and setValue().

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

Definition at line 416 of file Thumbwheel.cpp.

References m_clicked, m_tracking, and mouseMoveEvent().

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

Definition at line 427 of file Thumbwheel.cpp.

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

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

Definition at line 442 of file Thumbwheel.cpp.

References m_cache, m_orientation, m_rotation, and m_showScale.

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

Definition at line 292 of file Thumbwheel.cpp.

References mouseEntered().

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

Definition at line 298 of file Thumbwheel.cpp.

References mouseLeft().


Member Data Documentation

int Thumbwheel::m_default [protected]

Definition at line 83 of file Thumbwheel.h.

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

float Thumbwheel::m_mappedValue [protected]
bool Thumbwheel::m_noMappedUpdate [protected]

Definition at line 86 of file Thumbwheel.h.

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

Qt::Orientation Thumbwheel::m_orientation [protected]

Definition at line 88 of file Thumbwheel.h.

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

float Thumbwheel::m_speed [protected]

Definition at line 89 of file Thumbwheel.h.

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

bool Thumbwheel::m_tracking [protected]

Definition at line 90 of file Thumbwheel.h.

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

bool Thumbwheel::m_showScale [protected]

Definition at line 91 of file Thumbwheel.h.

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

bool Thumbwheel::m_clicked [protected]

Definition at line 92 of file Thumbwheel.h.

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

bool Thumbwheel::m_atDefault [protected]

Definition at line 93 of file Thumbwheel.h.

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

QPoint Thumbwheel::m_clickPos [protected]

Definition at line 94 of file Thumbwheel.h.

Referenced by mouseMoveEvent(), and mousePressEvent().

float Thumbwheel::m_clickRotation [protected]

Definition at line 95 of file Thumbwheel.h.

Referenced by mouseMoveEvent(), and mousePressEvent().

bool Thumbwheel::m_showTooltip [protected]

Definition at line 96 of file Thumbwheel.h.

Referenced by setShowToolTip(), and updateMappedValue().

QImage Thumbwheel::m_cache [protected]

Definition at line 98 of file Thumbwheel.h.

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


The documentation for this class was generated from the following files: