diff 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
line wrap: on
line diff
--- a/layer/SpectrogramLayer.h	Thu Aug 03 15:40:11 2006 +0000
+++ b/layer/SpectrogramLayer.h	Fri Aug 04 17:01:37 2006 +0000
@@ -208,6 +208,10 @@
 
     virtual bool isLayerScrollable(const View *v) const { return false; }
 
+    virtual int getVerticalZoomSteps(int &defaultStep) const;
+    virtual int getCurrentVerticalZoomStep() const;
+    virtual void setVerticalZoomStep(int);
+
 protected slots:
     void cacheInvalid();
     void cacheInvalid(size_t startFrame, size_t endFrame);
@@ -237,6 +241,7 @@
     BinDisplay          m_binDisplay;
     bool                m_normalizeColumns;
     bool                m_normalizeVisibleArea;
+    int                 m_lastEmittedZoomStep;
 
     enum { NO_VALUE = 0 }; // colour index for unused pixels