# HG changeset patch # User matthiasm # Date 1405517700 -3600 # Node ID d974ed6571766953ecbb8abb70cb683c46ea3c6d # Parent ec0906aef9bf5542603135efa6078f66715490b9 code to remove duration/sample rate from panes diff -r ec0906aef9bf -r d974ed657176 view/Pane.h --- 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); diff -r ec0906aef9bf -r d974ed657176 view/ViewManager.cpp --- 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()) { diff -r ec0906aef9bf -r d974ed657176 view/ViewManager.h --- 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;