Mercurial > hg > svgui
comparison widgets/AudioDial.h @ 344:832d246b327b
* better progress reporting in FileSource
* fix set-to-default for audio dials with mappers
author | Chris Cannam |
---|---|
date | Fri, 04 Jan 2008 17:08:10 +0000 |
parents | 1a49bd0d8375 |
children | 4a578a360011 |
comparison
equal
deleted
inserted
replaced
343:1b6879d03cb6 | 344:832d246b327b |
---|---|
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; |