Mercurial > hg > svgui
comparison layer/SpectrogramLayer.h @ 133:9e6b3e239b9d
* Add zoom thumbwheels to Pane. Implement horizontal thumbwheel, and
vertical depending on layer type (supported for waveform and spectrogram,
though wrong for log-scale spectrogram at the moment).
* Add bare bones of a spectrum layer.
* Add window icon
* Add shortcut for "insert time instant" on laptops without keypad enter (";")
* Delete FFT processing thread when it exits (at least, next time we're asked
for something interesting)
* Get audio file extensions from the file readers, and thus from libsndfile for
the wave file reader -- leads to rather a wide combo box in file dialog though
* Better refresh order for spectrogram (redraw centre section first)
author | Chris Cannam |
---|---|
date | Fri, 04 Aug 2006 17:01:37 +0000 |
parents | 10eec0da9efe |
children | e98130764635 |
comparison
equal
deleted
inserted
replaced
132:5d3a483856ff | 133:9e6b3e239b9d |
---|---|
205 void setProperties(const QXmlAttributes &attributes); | 205 void setProperties(const QXmlAttributes &attributes); |
206 | 206 |
207 virtual void setLayerDormant(const View *v, bool dormant); | 207 virtual void setLayerDormant(const View *v, bool dormant); |
208 | 208 |
209 virtual bool isLayerScrollable(const View *v) const { return false; } | 209 virtual bool isLayerScrollable(const View *v) const { return false; } |
210 | |
211 virtual int getVerticalZoomSteps(int &defaultStep) const; | |
212 virtual int getCurrentVerticalZoomStep() const; | |
213 virtual void setVerticalZoomStep(int); | |
210 | 214 |
211 protected slots: | 215 protected slots: |
212 void cacheInvalid(); | 216 void cacheInvalid(); |
213 void cacheInvalid(size_t startFrame, size_t endFrame); | 217 void cacheInvalid(size_t startFrame, size_t endFrame); |
214 | 218 |
235 QColor m_crosshairColour; | 239 QColor m_crosshairColour; |
236 FrequencyScale m_frequencyScale; | 240 FrequencyScale m_frequencyScale; |
237 BinDisplay m_binDisplay; | 241 BinDisplay m_binDisplay; |
238 bool m_normalizeColumns; | 242 bool m_normalizeColumns; |
239 bool m_normalizeVisibleArea; | 243 bool m_normalizeVisibleArea; |
244 int m_lastEmittedZoomStep; | |
240 | 245 |
241 enum { NO_VALUE = 0 }; // colour index for unused pixels | 246 enum { NO_VALUE = 0 }; // colour index for unused pixels |
242 | 247 |
243 class ColourMap | 248 class ColourMap |
244 { | 249 { |