Mercurial > hg > svcore
comparison base/ViewManager.h @ 28:4b16526b011b
* Add LED button
* Add note model playback (currently assuming that value == MIDI pitch)
* Reorganise PlayParameters and move repository from ViewManager to new
PlayParameterRepository class
author | Chris Cannam |
---|---|
date | Wed, 15 Feb 2006 17:58:35 +0000 |
parents | bb9291d84810 |
children | 5e28cbb431d0 |
comparison
equal
deleted
inserted
replaced
27:070e9e1e40ea | 28:4b16526b011b |
---|---|
16 #include <map> | 16 #include <map> |
17 | 17 |
18 #include "Selection.h" | 18 #include "Selection.h" |
19 | 19 |
20 class AudioPlaySource; | 20 class AudioPlaySource; |
21 class PlayParameters; | |
22 class Model; | 21 class Model; |
23 | 22 |
24 /** | 23 /** |
25 * The ViewManager manages properties that may need to be synchronised | 24 * The ViewManager manages properties that may need to be synchronised |
26 * between separate Views. For example, it handles signals associated | 25 * between separate Views. For example, it handles signals associated |
37 | 36 |
38 public: | 37 public: |
39 ViewManager(); | 38 ViewManager(); |
40 | 39 |
41 void setAudioPlaySource(AudioPlaySource *source); | 40 void setAudioPlaySource(AudioPlaySource *source); |
42 | |
43 //!!! No way to remove a model! | |
44 PlayParameters *getPlayParameters(const Model *model); | |
45 void clearPlayParameters(); | |
46 | 41 |
47 bool isPlaying() const; | 42 bool isPlaying() const; |
48 | 43 |
49 unsigned long getGlobalCentreFrame() const; | 44 unsigned long getGlobalCentreFrame() const; |
50 unsigned long getGlobalZoom() const; | 45 unsigned long getGlobalZoom() const; |
138 | 133 |
139 ToolMode m_toolMode; | 134 ToolMode m_toolMode; |
140 | 135 |
141 bool m_playLoopMode; | 136 bool m_playLoopMode; |
142 bool m_playSelectionMode; | 137 bool m_playSelectionMode; |
143 | |
144 std::map<const Model *, PlayParameters *> m_playParameters; | |
145 }; | 138 }; |
146 | 139 |
147 #endif | 140 #endif |
148 | 141 |