Mercurial > hg > svgui
comparison layer/WaveformLayer.h @ 261:11021509c4eb
* some more work on measurement tool, and refactor Pane::paintEvent
author | Chris Cannam |
---|---|
date | Thu, 14 Jun 2007 16:28:27 +0000 |
parents | 34bbbcb3c01f |
children | 4ed1446ad604 |
comparison
equal
deleted
inserted
replaced
260:6d113226bb4c | 261:11021509c4eb |
---|---|
177 virtual int getCompletion(View *) const; | 177 virtual int getCompletion(View *) const; |
178 | 178 |
179 virtual bool getValueExtents(float &min, float &max, | 179 virtual bool getValueExtents(float &min, float &max, |
180 bool &log, QString &unit) const; | 180 bool &log, QString &unit) const; |
181 | 181 |
182 virtual bool getYScaleValue(View *v, int y, | |
183 float &value, QString &unit) const; | |
184 | |
182 virtual QString toXmlString(QString indent = "", | 185 virtual QString toXmlString(QString indent = "", |
183 QString extraAttributes = "") const; | 186 QString extraAttributes = "") const; |
184 | 187 |
185 void setProperties(const QXmlAttributes &attributes); | 188 void setProperties(const QXmlAttributes &attributes); |
186 | 189 |
197 size_t getChannelArrangement(size_t &min, size_t &max, | 200 size_t getChannelArrangement(size_t &min, size_t &max, |
198 bool &merging, bool &mixing) const; | 201 bool &merging, bool &mixing) const; |
199 | 202 |
200 int getYForValue(View *v, Scale scale, float value, size_t channel, | 203 int getYForValue(View *v, Scale scale, float value, size_t channel, |
201 size_t minChannel, size_t maxChannel) const; | 204 size_t minChannel, size_t maxChannel) const; |
205 | |
206 float getValueForY(View *v, Scale scale, int y, | |
207 size_t minChannel, size_t maxChannel) const; | |
202 | 208 |
203 float m_gain; | 209 float m_gain; |
204 bool m_autoNormalize; | 210 bool m_autoNormalize; |
205 QColor m_colour; | 211 QColor m_colour; |
206 bool m_showMeans; | 212 bool m_showMeans; |