Mercurial > hg > svcore
comparison base/ViewManager.h @ 74:47fd14e29813
* Fix long-standing off-by-1 bug in WaveFileModel that was getting us the wrong
values for almost all audio data when merging channels (channel == -1)
* Implement cut, copy and paste
* Make draw mode work properly in time value layer
* Minor fixes to CSV import
author | Chris Cannam |
---|---|
date | Fri, 07 Apr 2006 17:50:33 +0000 |
parents | e1aad27029e3 |
children | 163f3428bbe0 |
comparison
equal
deleted
inserted
replaced
73:e9b8b51f6326 | 74:47fd14e29813 |
---|---|
21 | 21 |
22 #include <map> | 22 #include <map> |
23 | 23 |
24 #include "Selection.h" | 24 #include "Selection.h" |
25 #include "Command.h" | 25 #include "Command.h" |
26 #include "Clipboard.h" | |
26 | 27 |
27 class AudioPlaySource; | 28 class AudioPlaySource; |
28 class Model; | 29 class Model; |
29 | 30 |
30 /** | 31 /** |
71 * If defaultToFollowing is true, and if the frame is not in a | 72 * If defaultToFollowing is true, and if the frame is not in a |
72 * selected area, return the next selection after the given frame. | 73 * selected area, return the next selection after the given frame. |
73 * Return the empty selection if no appropriate selection is found. | 74 * Return the empty selection if no appropriate selection is found. |
74 */ | 75 */ |
75 Selection getContainingSelection(size_t frame, bool defaultToFollowing) const; | 76 Selection getContainingSelection(size_t frame, bool defaultToFollowing) const; |
77 | |
78 Clipboard &getClipboard() { return m_clipboard; } | |
76 | 79 |
77 enum ToolMode { | 80 enum ToolMode { |
78 NavigateMode, | 81 NavigateMode, |
79 SelectMode, | 82 SelectMode, |
80 EditMode, | 83 EditMode, |
150 | 153 |
151 MultiSelection m_selections; | 154 MultiSelection m_selections; |
152 Selection m_inProgressSelection; | 155 Selection m_inProgressSelection; |
153 bool m_inProgressExclusive; | 156 bool m_inProgressExclusive; |
154 | 157 |
158 Clipboard m_clipboard; | |
159 | |
155 ToolMode m_toolMode; | 160 ToolMode m_toolMode; |
156 | 161 |
157 bool m_playLoopMode; | 162 bool m_playLoopMode; |
158 bool m_playSelectionMode; | 163 bool m_playSelectionMode; |
159 | 164 |