diff view/Pane.cpp @ 280:3c402c6052f6

* Pull peak-picker out of SpectrumLayer and into FFTModel; use combined peak-picker and frequency estimator for SpectrogramLayer (makes the peak frequency spectrogram a bit quicker) * Add more information to spectrum and spectrogram crosshairs
author Chris Cannam
date Wed, 04 Jul 2007 15:29:16 +0000
parents 8acd30ed735c
children 4edaff85875d
line wrap: on
line diff
--- a/view/Pane.cpp	Tue Jul 03 18:56:27 2007 +0000
+++ b/view/Pane.cpp	Wed Jul 04 15:29:16 2007 +0000
@@ -1587,6 +1587,12 @@
 	if (layer && layer->isLayerEditable()) {
 	    if (layer->editOpen(this, e)) relocate = false;
 	}
+
+    } else if (mode == ViewManager::MeasureMode) {
+
+        Layer *layer = getTopLayer();
+        if (layer) layer->measureDoubleClick(this, e);
+        update();
     }
 
     if (relocate) {