diff view/ViewManager.h @ 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 73a58a4dfebd
children c8f45afb83d5 d8fc9659a206
line wrap: on
line diff
--- a/view/ViewManager.h	Mon Jan 30 13:24:55 2012 +0000
+++ b/view/ViewManager.h	Mon Jan 30 16:01:59 2012 +0000
@@ -148,26 +148,28 @@
     enum OverlayMode {
         NoOverlays,
         MinimalOverlays,
-        StandardOverlays,
         AllOverlays
     };
     void setOverlayMode(OverlayMode mode);
     OverlayMode getOverlayMode() const { return m_overlayMode; }
 
-    bool shouldShowCentreLine() const {
+    void setShowCentreLine(bool show);
+    bool shouldShowCentreLine() const { return m_showCentreLine; }
+
+    bool shouldShowDuration() const {
         return m_overlayMode != NoOverlays;
     }
     bool shouldShowFrameCount() const {
+        return m_showCentreLine && shouldShowDuration();
+    }
+    bool shouldShowVerticalScale() const {
         return m_overlayMode != NoOverlays;
     }
-    bool shouldShowDuration() const {
-        return m_overlayMode > MinimalOverlays;
-    }
-    bool shouldShowVerticalScale() const {
-        return m_overlayMode > MinimalOverlays;
+    bool shouldShowVerticalColourScale() const {
+        return m_overlayMode == AllOverlays;
     }
     bool shouldShowSelectionExtents() const {
-        return m_overlayMode > MinimalOverlays;
+        return m_overlayMode != NoOverlays;
     }
     bool shouldShowLayerNames() const {
         return m_overlayMode == AllOverlays;
@@ -232,6 +234,9 @@
     /** Emitted when the overlay mode has been changed. */
     void overlayModeChanged();
 
+    /** Emitted when the centre line visibility has been changed. */
+    void showCentreLineChanged();
+
     /** Emitted when the zoom wheels have been toggled. */
     void zoomWheelsEnabledChanged();
 
@@ -294,6 +299,7 @@
 
     OverlayMode m_overlayMode;
     bool m_zoomWheelsEnabled;
+    bool m_showCentreLine;
     bool m_illuminateLocalFeatures;
     bool m_showWorkTitle;