changeset 379:6a84102c006a

Create separate play scroll modes for (Tony-style, DAW-style) page mode and (SV-style) paging with playhead alignment to centre on drag
author Chris Cannam
date Wed, 02 Jul 2014 17:30:09 +0100
parents a7a643988390
children d8bde801ebd4 71090a49d487
files framework/MainWindowBase.cpp framework/SVFileReader.cpp
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/framework/MainWindowBase.cpp	Wed Jul 02 15:09:51 2014 +0100
+++ b/framework/MainWindowBase.cpp	Wed Jul 02 17:30:09 2014 +0100
@@ -2458,6 +2458,12 @@
         m_statusLabel = new QLabel();
         statusBar()->addWidget(m_statusLabel, 1);
     }
+
+    QList<QFrame *> frames = statusBar()->findChildren<QFrame *>();
+    foreach (QFrame *f, frames) {
+        f->setFrameStyle(QFrame::NoFrame);
+    }
+
     return m_statusLabel;
 }
 
--- a/framework/SVFileReader.cpp	Wed Jul 02 15:09:51 2014 +0100
+++ b/framework/SVFileReader.cpp	Wed Jul 02 17:30:09 2014 +0100
@@ -767,7 +767,8 @@
     view->setFollowGlobalPan(followPan);
     view->setFollowGlobalZoom(followZoom);
     view->setPlaybackFollow(tracking == "scroll" ? PlaybackScrollContinuous :
-			    tracking == "page" ? PlaybackScrollPage
+			    tracking == "page" ? PlaybackScrollPageWithCentre :
+			    tracking == "daw" ? PlaybackScrollPage
 			    : PlaybackIgnore);
 
     // Then set these values