svgui
1.9
|
#include <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 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 |
Definition at line 26 of file Thumbwheel.h.
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.
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 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.
int Thumbwheel::getValue | ( | ) | const |
Definition at line 200 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 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::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_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::setValue | ( | int | value | ) | [slot] |
Definition at line 170 of file Thumbwheel.cpp.
References m_atDefault, m_cache, 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 138 of file Thumbwheel.cpp.
References getValue(), m_cache, m_mappedValue, m_noMappedUpdate, m_rangeMapper, setValue(), and valueChanged().
Referenced by mouseDoubleClickEvent().
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] |
Definition at line 391 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 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().
int Thumbwheel::m_min [protected] |
Definition at line 81 of file Thumbwheel.h.
Referenced by getMinimumValue(), mouseDoubleClickEvent(), mouseMoveEvent(), setMaximumValue(), setMinimumValue(), and setValue().
int Thumbwheel::m_max [protected] |
Definition at line 82 of file Thumbwheel.h.
Referenced by getMaximumValue(), mouseDoubleClickEvent(), mouseMoveEvent(), setMaximumValue(), setMinimumValue(), and setValue().
int Thumbwheel::m_default [protected] |
Definition at line 83 of file Thumbwheel.h.
Referenced by getDefaultValue(), resetToDefault(), and setDefaultValue().
int Thumbwheel::m_value [protected] |
Definition at line 84 of file Thumbwheel.h.
Referenced by getValue(), mouseMoveEvent(), resetToDefault(), scroll(), setMaximumValue(), setMinimumValue(), setValue(), and wheelEvent().
float Thumbwheel::m_mappedValue [protected] |
Definition at line 85 of file Thumbwheel.h.
Referenced by getMappedValue(), mouseDoubleClickEvent(), setMappedValue(), and updateMappedValue().
bool Thumbwheel::m_noMappedUpdate [protected] |
Definition at line 86 of file Thumbwheel.h.
Referenced by setMappedValue(), setShowToolTip(), and updateMappedValue().
float Thumbwheel::m_rotation [protected] |
Definition at line 87 of file Thumbwheel.h.
Referenced by mouseMoveEvent(), mousePressEvent(), paintEvent(), setMaximumValue(), setMinimumValue(), and setValue().
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().
RangeMapper* Thumbwheel::m_rangeMapper [protected] |
Definition at line 97 of file Thumbwheel.h.
Referenced by getMappedValue(), getRangeMapper(), mouseDoubleClickEvent(), setMappedValue(), setRangeMapper(), updateMappedValue(), and ~Thumbwheel().
QImage Thumbwheel::m_cache [protected] |
Definition at line 98 of file Thumbwheel.h.
Referenced by paintEvent(), resetToDefault(), setDefaultValue(), setMappedValue(), and setValue().