changeset 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 368b1f7c7325
files framework/MainWindowBase.cpp framework/MainWindowBase.h
diffstat 2 files changed, 11 insertions(+), 7 deletions(-) [+]
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") {
--- 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();