Mercurial > hg > svgui
comparison layer/NoteLayer.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 | 2f83b6e3b8ca |
children | d58701996fae |
comparison
equal
deleted
inserted
replaced
358:8b69f36c74be | 359:020c485aa7e0 |
---|---|
914 | 914 |
915 command->finish(); | 915 command->finish(); |
916 } | 916 } |
917 | 917 |
918 void | 918 void |
919 NoteLayer::copy(Selection s, Clipboard &to) | 919 NoteLayer::copy(View *v, Selection s, Clipboard &to) |
920 { | 920 { |
921 if (!m_model) return; | 921 if (!m_model) return; |
922 | 922 |
923 NoteModel::PointList points = | 923 NoteModel::PointList points = |
924 m_model->getPoints(s.getStartFrame(), s.getEndFrame()); | 924 m_model->getPoints(s.getStartFrame(), s.getEndFrame()); |
932 } | 932 } |
933 } | 933 } |
934 } | 934 } |
935 | 935 |
936 bool | 936 bool |
937 NoteLayer::paste(const Clipboard &from, int frameOffset, bool /* interactive */) | 937 NoteLayer::paste(View *v, const Clipboard &from, int frameOffset, bool /* interactive */) |
938 { | 938 { |
939 if (!m_model) return false; | 939 if (!m_model) return false; |
940 | 940 |
941 const Clipboard::PointList &points = from.getPoints(); | 941 const Clipboard::PointList &points = from.getPoints(); |
942 | 942 |