diff layer/TimeValueLayer.cpp @ 67:c4fff27cd651

* Add auto-normalize option to waveform layer * Various fixes to display of dB/metered levels in waveform layer. Still need to fix to ensure they don't waste half the display * Add mix channels option to waveform layer * Use multiple transforms menus, one per transform type -- not sure about this * Give centroid plugin two outputs, for log and linear frequency weightings * Show scale units from plugin in time-value display
author Chris Cannam
date Wed, 29 Mar 2006 12:35:17 +0000
parents e9eac9368e29
children 193b569a975f
line wrap: on
line diff
--- a/layer/TimeValueLayer.cpp	Mon Mar 27 16:44:12 2006 +0000
+++ b/layer/TimeValueLayer.cpp	Wed Mar 29 12:35:17 2006 +0000
@@ -38,7 +38,7 @@
     m_originalPoint(0, 0.0, tr("New Point")),
     m_editingPoint(0, 0.0, tr("New Point")),
     m_editingCommand(0),
-    m_colour(Qt::black),
+    m_colour(Qt::darkGreen),
     m_plotStyle(PlotConnectedPoints),
     m_verticalScale(LinearScale)
 {
@@ -646,6 +646,10 @@
 	val += inc;
     }
 
+    if (m_model->getScaleUnits() != "") {
+        paint.drawText(5, 5 + paint.fontMetrics().ascent(),
+                       m_model->getScaleUnits());
+    }
 }
 
 void