diff view/View.cpp @ 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 5d3a483856ff
children 10a82b2bbb8b
line wrap: on
line diff
--- a/view/View.cpp	Thu Aug 03 15:40:11 2006 +0000
+++ b/view/View.cpp	Fri Aug 04 17:01:37 2006 +0000
@@ -262,6 +262,18 @@
 //    std::cerr << "View::toolModeChanged(" << m_manager->getToolMode() << ")" << std::endl;
 }
 
+void
+View::overlayModeChanged()
+{
+    update();
+}
+
+void
+View::zoomWheelsEnabledChanged()
+{
+    // subclass might override this
+}
+
 long
 View::getStartFrame() const
 {
@@ -525,7 +537,9 @@
     connect(m_manager, SIGNAL(inProgressSelectionChanged()),
 	    this, SLOT(selectionChanged()));
     connect(m_manager, SIGNAL(overlayModeChanged()),
-            this, SLOT(update()));
+            this, SLOT(overlayModeChanged()));
+    connect(m_manager, SIGNAL(zoomWheelsEnabledChanged()),
+            this, SLOT(zoomWheelsEnabledChanged()));
 
     connect(this, SIGNAL(centreFrameChanged(void *, unsigned long, bool)),
 	    m_manager, SIGNAL(centreFrameChanged(void *, unsigned long, bool)));