comparison layer/TimeValueLayer.cpp @ 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 de4db9b5dcf1
children d58701996fae
comparison
equal deleted inserted replaced
358:8b69f36c74be 359:020c485aa7e0
1183 1183
1184 command->finish(); 1184 command->finish();
1185 } 1185 }
1186 1186
1187 void 1187 void
1188 TimeValueLayer::copy(Selection s, Clipboard &to) 1188 TimeValueLayer::copy(View *v, Selection s, Clipboard &to)
1189 { 1189 {
1190 if (!m_model) return; 1190 if (!m_model) return;
1191 1191
1192 SparseTimeValueModel::PointList points = 1192 SparseTimeValueModel::PointList points =
1193 m_model->getPoints(s.getStartFrame(), s.getEndFrame()); 1193 m_model->getPoints(s.getStartFrame(), s.getEndFrame());
1201 } 1201 }
1202 } 1202 }
1203 } 1203 }
1204 1204
1205 bool 1205 bool
1206 TimeValueLayer::paste(const Clipboard &from, int frameOffset, 1206 TimeValueLayer::paste(View *v, const Clipboard &from, int frameOffset,
1207 bool interactive) 1207 bool interactive)
1208 { 1208 {
1209 if (!m_model) return false; 1209 if (!m_model) return false;
1210 1210
1211 const Clipboard::PointList &points = from.getPoints(); 1211 const Clipboard::PointList &points = from.getPoints();