Mercurial > hg > svgui
diff widgets/AudioDial.h @ 167:53b9c7656798
* Use RangeMappers in various places in plugin parameters, layer properties,
playback parameters &c
author | Chris Cannam |
---|---|
date | Mon, 16 Oct 2006 20:42:23 +0000 |
parents | 705f05ab42e3 |
children | d4be66d61c04 |
line wrap: on
line diff
--- a/widgets/AudioDial.h Mon Oct 16 13:13:57 2006 +0000 +++ b/widgets/AudioDial.h Mon Oct 16 20:42:23 2006 +0000 @@ -41,6 +41,8 @@ #include <QDial> #include <map> +class RangeMapper; + /** * AudioDial is a nicer-looking QDial that by default reacts to mouse * movement on horizontal and vertical axes instead of in a radial @@ -69,6 +71,10 @@ const QColor& getMeterColor() const { return m_meterColor; } bool getMouseDial() const { return m_mouseDial; } + void setRangeMapper(RangeMapper *mapper); // I take ownership, will delete + + float mappedValue() const; + public slots: /** * Set the colour of the knob. The default is to inherit the @@ -111,6 +117,8 @@ bool m_mouseDial; bool m_mousePressed; QPoint m_posMouse; + + RangeMapper *m_rangeMapper; };