Mercurial > hg > svgui
diff layer/SpectrumLayer.cpp @ 607:5b72899d692b
Give a dedicated key to toggling the centre line, and move it out of the overlay level setting -- reducing number of overlay levels to 3. Introduce two distinct vertical scale types (so that we can hide the spectrogram colour scale part easily)
author | Chris Cannam |
---|---|
date | Mon, 30 Jan 2012 16:01:59 +0000 |
parents | 4806715f7a19 |
children | 1a0dfcbffaf1 |
line wrap: on
line diff
--- a/layer/SpectrumLayer.cpp Mon Jan 30 13:24:55 2012 +0000 +++ b/layer/SpectrumLayer.cpp Mon Jan 30 16:01:59 2012 +0000 @@ -442,7 +442,7 @@ int hoffset = 2; if (m_binScale == LogBins) hoffset = 13; - int sw = getVerticalScaleWidth(v, paint); + int sw = getVerticalScaleWidth(v, false, paint); QRect value(sw, cursorPos.y() - paint.fontMetrics().ascent() - 2, paint.fontMetrics().width("0.0000001 V") + 2, @@ -668,7 +668,7 @@ float thresh = (powf(10, -6) / m_gain) * (m_windowSize / 2.f); // -60dB adj - int xorigin = getVerticalScaleWidth(v, paint) + 1; + int xorigin = getVerticalScaleWidth(v, false, paint) + 1; int w = v->width() - xorigin - 1; int pkh = 0;