Mercurial > hg > svcore
comparison base/Layer.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 | d397ea0a79f5 |
children | af2725b5d6fe |
comparison
equal
deleted
inserted
replaced
73:e9b8b51f6326 | 74:47fd14e29813 |
---|---|
30 class ZoomConstraint; | 30 class ZoomConstraint; |
31 class Model; | 31 class Model; |
32 class QPainter; | 32 class QPainter; |
33 class View; | 33 class View; |
34 class QMouseEvent; | 34 class QMouseEvent; |
35 class Clipboard; | |
35 | 36 |
36 /** | 37 /** |
37 * The base class for visual representations of the data found in a | 38 * The base class for visual representations of the data found in a |
38 * Model. Layers are expected to be able to draw themselves onto a | 39 * Model. Layers are expected to be able to draw themselves onto a |
39 * View, and may also be editable. | 40 * View, and may also be editable. |
137 | 138 |
138 virtual void moveSelection(Selection s, size_t newStartFrame) { } | 139 virtual void moveSelection(Selection s, size_t newStartFrame) { } |
139 virtual void resizeSelection(Selection s, Selection newSize) { } | 140 virtual void resizeSelection(Selection s, Selection newSize) { } |
140 virtual void deleteSelection(Selection s) { } | 141 virtual void deleteSelection(Selection s) { } |
141 | 142 |
143 virtual void copy(Selection s, Clipboard &to) { } | |
144 virtual void paste(const Clipboard &from, int frameOffset) { } | |
142 | 145 |
143 // Text mode: | 146 // Text mode: |
144 // | 147 // |
145 // Label nearest feature. We need to get the feature coordinates | 148 // Label nearest feature. We need to get the feature coordinates |
146 // and current label from the layer, and then the pane can pop up | 149 // and current label from the layer, and then the pane can pop up |