comparison layer/TimeValueLayer.h @ 76:45ba0b381c5d

* 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 bf306158803d
children 19bf27e4fb29
comparison
equal deleted inserted replaced
75:dfdbf336bb37 76:45ba0b381c5d
53 53
54 virtual void editOpen(View *v, QMouseEvent *); 54 virtual void editOpen(View *v, QMouseEvent *);
55 55
56 virtual void moveSelection(Selection s, size_t newStartFrame); 56 virtual void moveSelection(Selection s, size_t newStartFrame);
57 virtual void resizeSelection(Selection s, Selection newSize); 57 virtual void resizeSelection(Selection s, Selection newSize);
58 virtual void deleteSelection(Selection s);
59
60 virtual void copy(Selection s, Clipboard &to);
61 virtual void paste(const Clipboard &from, int frameOffset);
58 62
59 virtual const Model *getModel() const { return m_model; } 63 virtual const Model *getModel() const { return m_model; }
60 void setModel(SparseTimeValueModel *model); 64 void setModel(SparseTimeValueModel *model);
61 65
62 virtual PropertyList getProperties() const; 66 virtual PropertyList getProperties() const;