Mercurial > hg > svapp
diff framework/MainWindowBase.cpp @ 256:f3f9e3d647c1
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:02:14 +0000 |
parents | 3240925e00ef |
children | a7ab511107fa |
line wrap: on
line diff
--- 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") {