15 #ifndef _AUDIO_DIAL_H_ 16 #define _AUDIO_DIAL_H_ 117 void drawTick(QPainter &paint,
float angle,
int size,
bool internal);
151 #endif // __AudioDial_h
void setDefaultValue(int defaultValue)
void setMeterColor(const QColor &color)
Set the colour of the meter (the highlighted area around the knob that shows the current value).
float mappedValue() const
const QColor & getMeterColor() const
void setMappedValue(float mappedValue)
void setDefaultMappedValue(float mappedValue)
void setMouseDial(bool mouseDial)
Specify that the dial should respond to radial mouse movements in the same way as QDial.
bool getMouseDial() const
AudioDial is a nicer-looking QDial that by default reacts to mouse movement on horizontal and vertica...
virtual void enterEvent(QEvent *)
virtual void mouseDoubleClickEvent(QMouseEvent *pMouseEvent)
const QColor & getKnobColor() const
float m_defaultMappedValue
void drawTick(QPainter &paint, float angle, int size, bool internal)
RangeMapper * m_rangeMapper
void setKnobColor(const QColor &color)
Set the colour of the knob.
void setRangeMapper(RangeMapper *mapper)
virtual void paintEvent(QPaintEvent *)
virtual void mouseReleaseEvent(QMouseEvent *pMouseEvent)
virtual void mousePressEvent(QMouseEvent *pMouseEvent)
void updateMappedValue(int value)
virtual void leaveEvent(QEvent *)
virtual void mouseMoveEvent(QMouseEvent *pMouseEvent)
const RangeMapper * rangeMapper() const
void setShowToolTip(bool show)