comparison widgets/AudioDial.h @ 373:0895517bb2d1 1.2-stable

* merge from trunk (1.2 ended up being tracked from trunk, but we may want this branch for fixes later)
author Chris Cannam
date Wed, 27 Feb 2008 10:32:45 +0000
parents 1a49bd0d8375
children 4a578a360011
comparison
equal deleted inserted replaced
337:813170c57b13 373:0895517bb2d1
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;