diff view/ViewManager.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 33929e0c3c6b
children dbd34ff746c7
line wrap: on
line diff
--- a/view/ViewManager.h	Thu Aug 03 15:40:11 2006 +0000
+++ b/view/ViewManager.h	Fri Aug 04 17:01:37 2006 +0000
@@ -105,6 +105,9 @@
     void setOverlayMode(OverlayMode mode);
     OverlayMode getOverlayMode() const { return m_overlayMode; }
 
+    void setZoomWheelsEnabled(bool enable);
+    bool getZoomWheelsEnabled() const { return m_zoomWheelsEnabled; }
+
 signals:
     /** Emitted when a widget pans.  The originator identifies the widget. */
     void centreFrameChanged(void *originator, unsigned long frame, bool locked);
@@ -112,6 +115,9 @@
     /** Emitted when a widget zooms.  The originator identifies the widget. */
     void zoomLevelChanged(void *originator, unsigned long zoom, bool locked);
 
+    /** Emitted when a widget zooms. */
+    void zoomLevelChanged();
+
     /** Emitted when the playback frame changes. */
     void playbackFrameChanged(unsigned long frame);
 
@@ -136,6 +142,9 @@
     /** Emitted when the overlay mode has been changed. */
     void overlayModeChanged();
 
+    /** Emitted when the zoom wheels have been toggled. */
+    void zoomWheelsEnabledChanged();
+
 protected slots:
     void checkPlayStatus();
     void playStatusChanged(bool playing);
@@ -182,6 +191,7 @@
     };
 
     OverlayMode m_overlayMode;
+    bool m_zoomWheelsEnabled;
 };
 
 #endif