comparison view/ViewManager.h @ 1486:ac0a8addabcf

Merge from branch by-id
author Chris Cannam
date Wed, 17 Jul 2019 14:25:16 +0100
parents 9bf8aa2916e9
children
comparison
equal deleted inserted replaced
1468:de41a11cabc2 1486:ac0a8addabcf
27 #include "base/Command.h" 27 #include "base/Command.h"
28 #include "base/Clipboard.h" 28 #include "base/Clipboard.h"
29 #include "base/BaseTypes.h" 29 #include "base/BaseTypes.h"
30 #include "base/ZoomLevel.h" 30 #include "base/ZoomLevel.h"
31 31
32 #include "data/model/Model.h"
33
32 class AudioPlaySource; 34 class AudioPlaySource;
33 class AudioRecordTarget; 35 class AudioRecordTarget;
34 class Model; 36 class Model;
35 37
36 enum PlaybackFollowMode { 38 enum PlaybackFollowMode {
91 ZoomLevel getGlobalZoom() const; 93 ZoomLevel getGlobalZoom() const;
92 94
93 sv_frame_t getPlaybackFrame() const; // the set method is a slot 95 sv_frame_t getPlaybackFrame() const; // the set method is a slot
94 96
95 // Only meaningful in solo mode, and used for optional alignment feature 97 // Only meaningful in solo mode, and used for optional alignment feature
96 Model *getPlaybackModel() const; 98 ModelId getPlaybackModel() const;
97 void setPlaybackModel(Model *); 99 void setPlaybackModel(ModelId);
98 100
99 sv_frame_t alignPlaybackFrameToReference(sv_frame_t) const override; 101 sv_frame_t alignPlaybackFrameToReference(sv_frame_t) const override;
100 sv_frame_t alignReferenceToPlaybackFrame(sv_frame_t) const override; 102 sv_frame_t alignReferenceToPlaybackFrame(sv_frame_t) const override;
101 103
102 bool haveInProgressSelection() const; 104 bool haveInProgressSelection() const;
345 AudioRecordTarget *m_recordTarget; 347 AudioRecordTarget *m_recordTarget;
346 348
347 sv_frame_t m_globalCentreFrame; 349 sv_frame_t m_globalCentreFrame;
348 ZoomLevel m_globalZoom; 350 ZoomLevel m_globalZoom;
349 mutable sv_frame_t m_playbackFrame; 351 mutable sv_frame_t m_playbackFrame;
350 Model *m_playbackModel; //!!! 352 ModelId m_playbackModel;
351 sv_samplerate_t m_mainModelSampleRate; 353 sv_samplerate_t m_mainModelSampleRate;
352 354
353 float m_lastLeft; 355 float m_lastLeft;
354 float m_lastRight; 356 float m_lastRight;
355 357