comparison view/ViewManager.h @ 815:09026c875301

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 4c8ca536b54f
children d974ed657176
comparison
equal deleted inserted replaced
814:db31266cf606 815:09026c875301
29 29
30 class AudioPlaySource; 30 class AudioPlaySource;
31 class Model; 31 class Model;
32 32
33 enum PlaybackFollowMode { 33 enum PlaybackFollowMode {
34
35 /**
36 * View scrolls continuously during playback, keeping the playback
37 * position at the centre.
38 */
34 PlaybackScrollContinuous, 39 PlaybackScrollContinuous,
40
41 /**
42 * View follows playback page-by-page, but dragging the view
43 * relocates playback to the centre frame. This is the classic
44 * Sonic Visualiser behaviour.
45 */
46 PlaybackScrollPageWithCentre,
47
48 /**
49 * View follows playback page-by-page, and the play head is moved
50 * (by the user) separately from dragging the view. This is
51 * roughly the behaviour of a typical DAW or audio editor.
52 */
35 PlaybackScrollPage, 53 PlaybackScrollPage,
54
55 /**
56 * View is detached from playback. It doesn't follow playback, and
57 * dragging the view does not affect the play head.
58 */
36 PlaybackIgnore 59 PlaybackIgnore
37 }; 60 };
38 61
39 class View; 62 class View;
40 63