diff view/View.h @ 211:e2baee498ec8

* Rejig handling of scrolling views. Ensures, among other things, that playing when there is a scroll mode view present (e.g. a spectrum) does not drag any page mode views into scroll mode with it.
author Chris Cannam
date Thu, 01 Mar 2007 11:55:46 +0000
parents 6b023411087b
children 34bbbcb3c01f
line wrap: on
line diff
--- a/view/View.h	Wed Feb 28 11:20:14 2007 +0000
+++ b/view/View.h	Thu Mar 01 11:55:46 2007 +0000
@@ -189,11 +189,6 @@
 	return false;
     }
 
-    enum PlaybackFollowMode {
-	PlaybackScrollContinuous,
-	PlaybackScrollPage,
-	PlaybackIgnore
-    };
     virtual void setPlaybackFollow(PlaybackFollowMode m);
     virtual PlaybackFollowMode getPlaybackFollow() const { return m_followPlay; }
 
@@ -240,7 +235,10 @@
     void propertyContainerNameChanged(PropertyContainer *pc);
     void propertyChanged(PropertyContainer::PropertyName);
 
-    void centreFrameChanged(void *, unsigned long, bool);
+    void centreFrameChanged(unsigned long frame,
+                            bool globalScroll,
+                            PlaybackFollowMode followMode);
+
     void zoomLevelChanged(void *, unsigned long, bool);
 
     void contextHelpChanged(const QString &);
@@ -254,7 +252,8 @@
     virtual void layerParameterRangesChanged();
     virtual void layerNameChanged();
 
-    virtual void viewManagerCentreFrameChanged(void *, unsigned long, bool);
+    virtual void globalCentreFrameChanged(unsigned long);
+    virtual void viewCentreFrameChanged(View *, unsigned long);
     virtual void viewManagerPlaybackFrameChanged(unsigned long);
     virtual void viewManagerZoomLevelChanged(void *, unsigned long, bool);