Mercurial > hg > svgui
comparison widgets/AudioDial.h @ 374:64e84e5efb76 spectrogram-cache-rejig
* Merge from trunk
author | Chris Cannam |
---|---|
date | Wed, 27 Feb 2008 11:59:42 +0000 |
parents | 1a49bd0d8375 |
children | 4a578a360011 |
comparison
equal
deleted
inserted
replaced
332:6440e280122e | 374:64e84e5efb76 |
---|---|
105 | 105 |
106 void setDefaultValue(int defaultValue); | 106 void setDefaultValue(int defaultValue); |
107 | 107 |
108 void setValue(int value); | 108 void setValue(int value); |
109 | 109 |
110 void setDefaultMappedValue(float mappedValue); | |
111 | |
110 void setMappedValue(float mappedValue); | 112 void setMappedValue(float mappedValue); |
113 | |
114 void setToDefault(); | |
111 | 115 |
112 protected: | 116 protected: |
113 void drawTick(QPainter &paint, float angle, int size, bool internal); | 117 void drawTick(QPainter &paint, float angle, int size, bool internal); |
114 virtual void paintEvent(QPaintEvent *); | 118 virtual void paintEvent(QPaintEvent *); |
115 | 119 |
127 private: | 131 private: |
128 QColor m_knobColor; | 132 QColor m_knobColor; |
129 QColor m_meterColor; | 133 QColor m_meterColor; |
130 | 134 |
131 int m_defaultValue; | 135 int m_defaultValue; |
136 float m_defaultMappedValue; | |
132 float m_mappedValue; | 137 float m_mappedValue; |
133 bool m_noMappedUpdate; | 138 bool m_noMappedUpdate; |
134 | 139 |
135 // Alternate mouse behavior tracking. | 140 // Alternate mouse behavior tracking. |
136 bool m_mouseDial; | 141 bool m_mouseDial; |