#include <Thumbwheel.h>

Inheritance diagram for Thumbwheel:
Inheritance graph
Collaboration diagram for Thumbwheel:
Collaboration graph

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 (double mappedValue)
 
void scroll (bool up)
 
void resetToDefault ()
 
void edit ()
 

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
 
double getMappedValue () const
 
void setShowToolTip (bool show)
 
void setProvideContextMenu (bool provide)
 
QSize sizeHint () const override
 

Protected Slots

void updateMappedValue (int value)
 
void updateTitle ()
 
void contextMenuRequested (const QPoint &)
 

Protected Member Functions

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

Protected Attributes

int m_min
 
int m_max
 
int m_default
 
int m_value
 
double 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
 
bool m_provideContextMenu
 
QString m_title
 
QMenu * m_lastContextMenu
 
RangeMapper * m_rangeMapper
 
QImage m_cache
 
WheelCounter m_wheelCounter
 

Detailed Description

Definition at line 29 of file Thumbwheel.h.

Constructor & Destructor Documentation

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

Definition at line 34 of file Thumbwheel.cpp.

References contextMenuRequested().

Thumbwheel::~Thumbwheel ( )
virtual

Definition at line 61 of file Thumbwheel.cpp.

References m_lastContextMenu, and m_rangeMapper.

Member Function Documentation

int Thumbwheel::getMinimumValue ( ) const

Definition at line 136 of file Thumbwheel.cpp.

References m_min.

int Thumbwheel::getMaximumValue ( ) const

Definition at line 156 of file Thumbwheel.cpp.

References m_max.

Referenced by Pane::horizontalThumbwheelMoved().

int Thumbwheel::getDefaultValue ( ) const

Definition at line 202 of file Thumbwheel.cpp.

References m_default.

Referenced by Pane::updateHeadsUpDisplay().

float Thumbwheel::getSpeed ( ) const

Definition at line 317 of file Thumbwheel.cpp.

References m_speed.

bool Thumbwheel::getTracking ( ) const

Definition at line 329 of file Thumbwheel.cpp.

References m_tracking.

bool Thumbwheel::getShowScale ( ) const

Definition at line 341 of file Thumbwheel.cpp.

References m_showScale.

int Thumbwheel::getValue ( ) const
void Thumbwheel::setRangeMapper ( RangeMapper *  mapper)
double Thumbwheel::getMappedValue ( ) const

Definition at line 248 of file Thumbwheel.cpp.

References getValue(), m_mappedValue, and m_rangeMapper.

Referenced by getRangeMapper(), and updateTitle().

void Thumbwheel::setShowToolTip ( bool  show)

Definition at line 107 of file Thumbwheel.cpp.

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

Referenced by getRangeMapper().

void Thumbwheel::setProvideContextMenu ( bool  provide)

Definition at line 116 of file Thumbwheel.cpp.

References m_provideContextMenu.

Referenced by getRangeMapper().

QSize Thumbwheel::sizeHint ( ) const
override

Definition at line 642 of file Thumbwheel.cpp.

References m_orientation.

Referenced by getRangeMapper().

void Thumbwheel::valueChanged ( int  )
signal
void Thumbwheel::mouseEntered ( )
signal

Referenced by enterEvent(), and getRangeMapper().

void Thumbwheel::mouseLeft ( )
signal

Referenced by getRangeMapper(), and leaveEvent().

void Thumbwheel::setMinimumValue ( int  min)
slot

Definition at line 122 of file Thumbwheel.cpp.

References m_max, m_min, m_rotation, and m_value.

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

void Thumbwheel::setMaximumValue ( int  max)
slot

Definition at line 142 of file Thumbwheel.cpp.

References m_max, m_min, m_rotation, and m_value.

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

void Thumbwheel::setDefaultValue ( int  deft)
slot
void Thumbwheel::setSpeed ( float  speed)
slot

Definition at line 311 of file Thumbwheel.cpp.

References m_speed.

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

void Thumbwheel::setTracking ( bool  tracking)
slot

Definition at line 323 of file Thumbwheel.cpp.

References m_tracking.

Referenced by getRangeMapper().

void Thumbwheel::setShowScale ( bool  show)
slot

Definition at line 335 of file Thumbwheel.cpp.

References m_showScale.

Referenced by getRangeMapper().

void Thumbwheel::setMappedValue ( double  mappedValue)
slot

Definition at line 176 of file Thumbwheel.cpp.

References getValue(), m_cache, m_mappedValue, m_noMappedUpdate, m_rangeMapper, setValue(), and valueChanged().

Referenced by edit(), and getRangeMapper().

void Thumbwheel::scroll ( bool  up)
slot

Definition at line 296 of file Thumbwheel.cpp.

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

Referenced by getRangeMapper(), and Pane::wheelVertical().

void Thumbwheel::resetToDefault ( )
slot
void Thumbwheel::edit ( )
slot
void Thumbwheel::updateMappedValue ( int  value)
protectedslot
void Thumbwheel::updateTitle ( )
protectedslot

Definition at line 272 of file Thumbwheel.cpp.

References getMappedValue(), m_rangeMapper, m_showTooltip, and m_title.

Referenced by getRangeMapper(), setValue(), and updateMappedValue().

void Thumbwheel::contextMenuRequested ( const QPoint &  pos)
protectedslot
void Thumbwheel::mousePressEvent ( QMouseEvent *  e)
overrideprotected

Definition at line 359 of file Thumbwheel.cpp.

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

Referenced by getRangeMapper().

void Thumbwheel::mouseDoubleClickEvent ( QMouseEvent *  e)
overrideprotected

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

Definition at line 373 of file Thumbwheel.cpp.

References edit().

Referenced by getRangeMapper().

void Thumbwheel::mouseMoveEvent ( QMouseEvent *  e)
overrideprotected
void Thumbwheel::mouseReleaseEvent ( QMouseEvent *  e)
overrideprotected

Definition at line 477 of file Thumbwheel.cpp.

References m_clicked, m_tracking, and mouseMoveEvent().

Referenced by getRangeMapper().

void Thumbwheel::wheelEvent ( QWheelEvent *  e)
overrideprotected

Definition at line 488 of file Thumbwheel.cpp.

References WheelCounter::count(), getValue(), m_value, m_wheelCounter, setValue(), and valueChanged().

Referenced by getRangeMapper().

void Thumbwheel::paintEvent ( QPaintEvent *  e)
overrideprotected

Definition at line 501 of file Thumbwheel.cpp.

References m_cache, m_orientation, m_rotation, and m_showScale.

Referenced by getRangeMapper().

void Thumbwheel::enterEvent ( QEvent *  )
overrideprotected

Definition at line 347 of file Thumbwheel.cpp.

References mouseEntered().

Referenced by getRangeMapper().

void Thumbwheel::leaveEvent ( QEvent *  )
overrideprotected

Definition at line 353 of file Thumbwheel.cpp.

References mouseLeft().

Referenced by getRangeMapper().

Member Data Documentation

int Thumbwheel::m_min
protected
int Thumbwheel::m_max
protected
int Thumbwheel::m_default
protected

Definition at line 90 of file Thumbwheel.h.

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

int Thumbwheel::m_value
protected
double Thumbwheel::m_mappedValue
protected

Definition at line 92 of file Thumbwheel.h.

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

bool Thumbwheel::m_noMappedUpdate
protected

Definition at line 93 of file Thumbwheel.h.

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

float Thumbwheel::m_rotation
protected
Qt::Orientation Thumbwheel::m_orientation
protected

Definition at line 95 of file Thumbwheel.h.

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

float Thumbwheel::m_speed
protected

Definition at line 96 of file Thumbwheel.h.

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

bool Thumbwheel::m_tracking
protected

Definition at line 97 of file Thumbwheel.h.

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

bool Thumbwheel::m_showScale
protected

Definition at line 98 of file Thumbwheel.h.

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

bool Thumbwheel::m_clicked
protected

Definition at line 99 of file Thumbwheel.h.

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

bool Thumbwheel::m_atDefault
protected

Definition at line 100 of file Thumbwheel.h.

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

QPoint Thumbwheel::m_clickPos
protected

Definition at line 101 of file Thumbwheel.h.

Referenced by mouseMoveEvent(), and mousePressEvent().

float Thumbwheel::m_clickRotation
protected

Definition at line 102 of file Thumbwheel.h.

Referenced by mouseMoveEvent(), and mousePressEvent().

bool Thumbwheel::m_showTooltip
protected

Definition at line 103 of file Thumbwheel.h.

Referenced by setShowToolTip(), and updateTitle().

bool Thumbwheel::m_provideContextMenu
protected

Definition at line 104 of file Thumbwheel.h.

Referenced by contextMenuRequested(), and setProvideContextMenu().

QString Thumbwheel::m_title
protected

Definition at line 105 of file Thumbwheel.h.

Referenced by contextMenuRequested(), and updateTitle().

QMenu* Thumbwheel::m_lastContextMenu
protected

Definition at line 106 of file Thumbwheel.h.

Referenced by contextMenuRequested(), and ~Thumbwheel().

RangeMapper* Thumbwheel::m_rangeMapper
protected
QImage Thumbwheel::m_cache
protected

Definition at line 108 of file Thumbwheel.h.

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

WheelCounter Thumbwheel::m_wheelCounter
protected

Definition at line 109 of file Thumbwheel.h.

Referenced by wheelEvent().


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