comparison layer/TimeInstantLayer.h @ 359:020c485aa7e0

* More work on aligning copy/paste between layers. It's a surprisingly complicated business.
author Chris Cannam
date Wed, 06 Feb 2008 12:49:49 +0000
parents 8b69f36c74be
children e1a9e478b7f2
comparison
equal deleted inserted replaced
358:8b69f36c74be 359:020c485aa7e0
57 57
58 virtual void moveSelection(Selection s, size_t newStartFrame); 58 virtual void moveSelection(Selection s, size_t newStartFrame);
59 virtual void resizeSelection(Selection s, Selection newSize); 59 virtual void resizeSelection(Selection s, Selection newSize);
60 virtual void deleteSelection(Selection s); 60 virtual void deleteSelection(Selection s);
61 61
62 virtual void copy(Selection s, Clipboard &to); 62 virtual void copy(View *v, Selection s, Clipboard &to);
63 virtual bool paste(const Clipboard &from, int frameOffset, 63 virtual bool paste(View *v, const Clipboard &from, int frameOffset,
64 bool interactive); 64 bool interactive);
65 65
66 virtual const Model *getModel() const { return m_model; } 66 virtual const Model *getModel() const { return m_model; }
67 void setModel(SparseOneDimensionalModel *model); 67 void setModel(SparseOneDimensionalModel *model);
68 68
103 protected: 103 protected:
104 SparseOneDimensionalModel::PointList getLocalPoints(View *v, int) const; 104 SparseOneDimensionalModel::PointList getLocalPoints(View *v, int) const;
105 105
106 virtual int getDefaultColourHint(bool dark, bool &impose); 106 virtual int getDefaultColourHint(bool dark, bool &impose);
107 107
108 bool clipboardAlignmentDiffers(const Clipboard &) const; 108 bool clipboardAlignmentDiffers(View *v, const Clipboard &) const;
109 109
110 SparseOneDimensionalModel *m_model; 110 SparseOneDimensionalModel *m_model;
111 bool m_editing; 111 bool m_editing;
112 SparseOneDimensionalModel::Point m_editingPoint; 112 SparseOneDimensionalModel::Point m_editingPoint;
113 SparseOneDimensionalModel::EditCommand *m_editingCommand; 113 SparseOneDimensionalModel::EditCommand *m_editingCommand;