# HG changeset patch # User Chris Cannam # Date 1327939334 0 # Node ID f3f9e3d647c1b3f14448a538bd0a93fbce4596b0 # Parent 3240925e00ef523e64aad38271e36c0f7e5c27b7 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) diff -r 3240925e00ef -r f3f9e3d647c1 framework/MainWindowBase.cpp --- a/framework/MainWindowBase.cpp Wed Jan 18 18:13:25 2012 +0000 +++ b/framework/MainWindowBase.cpp Mon Jan 30 16:02:14 2012 +0000 @@ -2272,12 +2272,6 @@ } void -MainWindowBase::showStandardOverlays() -{ - m_viewManager->setOverlayMode(ViewManager::StandardOverlays); -} - -void MainWindowBase::showAllOverlays() { m_viewManager->setOverlayMode(ViewManager::AllOverlays); @@ -2368,6 +2362,16 @@ } void +MainWindowBase::toggleCentreLine() +{ + if (m_viewManager->shouldShowCentreLine()) { + m_viewManager->setShowCentreLine(false); + } else { + m_viewManager->setShowCentreLine(true); + } +} + +void MainWindowBase::preferenceChanged(PropertyContainer::PropertyName name) { if (name == "Property Box Layout") { diff -r 3240925e00ef -r f3f9e3d647c1 framework/MainWindowBase.h --- a/framework/MainWindowBase.h Wed Jan 18 18:13:25 2012 +0000 +++ b/framework/MainWindowBase.h Mon Jan 30 16:02:14 2012 +0000 @@ -172,13 +172,13 @@ virtual void showNoOverlays(); virtual void showMinimalOverlays(); - virtual void showStandardOverlays(); virtual void showAllOverlays(); virtual void toggleTimeRulers(); virtual void toggleZoomWheels(); virtual void togglePropertyBoxes(); virtual void toggleStatusBar(); + virtual void toggleCentreLine(); virtual void play(); virtual void ffwd();