comparison widgets/AudioDial.h @ 946:36cddc3de023 alignment_view

Merge from default branch
author Chris Cannam
date Mon, 20 Apr 2015 09:19:52 +0100
parents 4a578a360011
children a18e78b9c78b
comparison
equal deleted inserted replaced
897:499b637f2a26 946:36cddc3de023
71 const QColor& getMeterColor() const { return m_meterColor; } 71 const QColor& getMeterColor() const { return m_meterColor; }
72 bool getMouseDial() const { return m_mouseDial; } 72 bool getMouseDial() const { return m_mouseDial; }
73 73
74 void setRangeMapper(RangeMapper *mapper); // I take ownership, will delete 74 void setRangeMapper(RangeMapper *mapper); // I take ownership, will delete
75 const RangeMapper *rangeMapper() const { return m_rangeMapper; } 75 const RangeMapper *rangeMapper() const { return m_rangeMapper; }
76 float mappedValue() const; 76 double mappedValue() const;
77 77
78 int defaultValue() const { return m_defaultValue; } 78 int defaultValue() const { return m_defaultValue; }
79 79
80 void setShowToolTip(bool show); 80 void setShowToolTip(bool show);
81 81
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); 110 void setDefaultMappedValue(double mappedValue);
111 111
112 void setMappedValue(float mappedValue); 112 void setMappedValue(double mappedValue);
113 113
114 void setToDefault(); 114 void setToDefault();
115 115
116 protected: 116 protected:
117 void drawTick(QPainter &paint, float angle, int size, bool internal); 117 void drawTick(QPainter &paint, double angle, int size, bool internal);
118 virtual void paintEvent(QPaintEvent *); 118 virtual void paintEvent(QPaintEvent *);
119 119
120 // Alternate mouse behavior event handlers. 120 // Alternate mouse behavior event handlers.
121 virtual void mousePressEvent(QMouseEvent *pMouseEvent); 121 virtual void mousePressEvent(QMouseEvent *pMouseEvent);
122 virtual void mouseMoveEvent(QMouseEvent *pMouseEvent); 122 virtual void mouseMoveEvent(QMouseEvent *pMouseEvent);
131 private: 131 private:
132 QColor m_knobColor; 132 QColor m_knobColor;
133 QColor m_meterColor; 133 QColor m_meterColor;
134 134
135 int m_defaultValue; 135 int m_defaultValue;
136 float m_defaultMappedValue; 136 double m_defaultMappedValue;
137 float m_mappedValue; 137 double m_mappedValue;
138 bool m_noMappedUpdate; 138 bool m_noMappedUpdate;
139 139
140 // Alternate mouse behavior tracking. 140 // Alternate mouse behavior tracking.
141 bool m_mouseDial; 141 bool m_mouseDial;
142 bool m_mousePressed; 142 bool m_mousePressed;