comparison view/ViewManager.h @ 333:e74b56f07c73

* Some work on correct alignment when moving panes during playback * Overhaul alignment for playback frame values (view manager now always refers to reference-timeline values, only the play source deals in playback model timeline values) * When making a selection, ensure the selection regions shown in other panes (and used for playback constraints if appropriate) are aligned correctly. This may be the coolest feature ever implemented in any program ever.
author Chris Cannam
date Thu, 22 Nov 2007 14:17:19 +0000
parents 4f4f38a11cd2
children 2f83b6e3b8ca
comparison
equal deleted inserted replaced
331:d2d2521a6c7e 333:e74b56f07c73
64 64
65 unsigned long getPlaybackFrame() const; 65 unsigned long getPlaybackFrame() const;
66 void setPlaybackFrame(unsigned long frame); 66 void setPlaybackFrame(unsigned long frame);
67 67
68 // Only meaningful in solo mode, and used for optional alignment feature 68 // Only meaningful in solo mode, and used for optional alignment feature
69
70 //!!! We probably don't want to do this. It's probably better to
71 // always have playback frame aligned against the reference model,
72 // and have the ViewManager know which is the reference model.
73 // That way the ViewManager can assume that all Views report in
74 // reference model timeline, and it can convert the playback frame
75 // received from the play source (which always operates in literal
76 // audio sample frames, i.e. playback model timeline) to the
77 // reference timeline itself so the view never has to worry about
78 // the difference between playback and reference model. Of course
79 // that does mean the ViewManager needs to know about both.
80
69 Model *getPlaybackModel() const; 81 Model *getPlaybackModel() const;
70 void setPlaybackModel(Model *); 82 void setPlaybackModel(Model *);
83
84 size_t alignPlaybackFrameToReference(size_t) const;
85 size_t alignReferenceToPlaybackFrame(size_t) const;
71 86
72 bool haveInProgressSelection() const; 87 bool haveInProgressSelection() const;
73 const Selection &getInProgressSelection(bool &exclusive) const; 88 const Selection &getInProgressSelection(bool &exclusive) const;
74 void setInProgressSelection(const Selection &selection, bool exclusive); 89 void setInProgressSelection(const Selection &selection, bool exclusive);
75 void clearInProgressSelection(); 90 void clearInProgressSelection();