changeset 822:d974ed657176 tonioni

code to remove duration/sample rate from panes
author matthiasm
date Wed, 16 Jul 2014 14:35:00 +0100
parents ec0906aef9bf
children 22fe9bcb7206
files view/Pane.h view/ViewManager.cpp view/ViewManager.h
diffstat 3 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/view/Pane.h	Tue Jul 15 15:54:41 2014 +0100
+++ b/view/Pane.h	Wed Jul 16 14:35:00 2014 +0100
@@ -62,6 +62,12 @@
 
     static void registerShortcuts(KeyReference &kr);
 
+    enum PaneType {
+        Normal = 0,
+        TonyMain = 1,
+        TonySelection = 2
+    };
+
 signals:
     void paneInteractedWith();
     void rightButtonMenuRequested(QPoint position);
--- a/view/ViewManager.cpp	Tue Jul 15 15:54:41 2014 +0100
+++ b/view/ViewManager.cpp	Wed Jul 16 14:35:00 2014 +0100
@@ -48,6 +48,7 @@
     m_showCentreLine(true),
     m_illuminateLocalFeatures(true),
     m_showWorkTitle(false),
+    m_showDuration(true),
     m_lightPalette(QApplication::palette()),
     m_darkPalette(QApplication::palette())
 {
--- a/view/ViewManager.h	Tue Jul 15 15:54:41 2014 +0100
+++ b/view/ViewManager.h	Wed Jul 16 14:35:00 2014 +0100
@@ -158,6 +158,7 @@
 
     void setIlluminateLocalFeatures(bool i) { m_illuminateLocalFeatures = i; }
     void setShowWorkTitle(bool show) { m_showWorkTitle = show; }
+    void setShowDuration(bool show) { m_showDuration = show; }
 
     /**
      * The sample rate that is used for playback.  This is usually the
@@ -196,7 +197,7 @@
     bool shouldShowCentreLine() const { return m_showCentreLine; }
 
     bool shouldShowDuration() const {
-        return m_overlayMode != NoOverlays;
+        return m_overlayMode != NoOverlays && m_showDuration;
     }
     bool shouldShowFrameCount() const {
         return m_showCentreLine && shouldShowDuration();
@@ -350,6 +351,7 @@
     bool m_showCentreLine;
     bool m_illuminateLocalFeatures;
     bool m_showWorkTitle;
+    bool m_showDuration;
 
     QPalette m_lightPalette;
     QPalette m_darkPalette;