Mercurial > hg > svgui
comparison layer/ImageLayer.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 | 832d246b327b |
children | d58701996fae |
comparison
equal
deleted
inserted
replaced
358:8b69f36c74be | 359:020c485aa7e0 |
---|---|
800 | 800 |
801 command->finish(); | 801 command->finish(); |
802 } | 802 } |
803 | 803 |
804 void | 804 void |
805 ImageLayer::copy(Selection s, Clipboard &to) | 805 ImageLayer::copy(View *v, Selection s, Clipboard &to) |
806 { | 806 { |
807 if (!m_model) return; | 807 if (!m_model) return; |
808 | 808 |
809 ImageModel::PointList points = | 809 ImageModel::PointList points = |
810 m_model->getPoints(s.getStartFrame(), s.getEndFrame()); | 810 m_model->getPoints(s.getStartFrame(), s.getEndFrame()); |
819 } | 819 } |
820 } | 820 } |
821 } | 821 } |
822 | 822 |
823 bool | 823 bool |
824 ImageLayer::paste(const Clipboard &from, int frameOffset, bool /* interactive */) | 824 ImageLayer::paste(View *v, const Clipboard &from, int frameOffset, bool /* interactive */) |
825 { | 825 { |
826 if (!m_model) return false; | 826 if (!m_model) return false; |
827 | 827 |
828 const Clipboard::PointList &points = from.getPoints(); | 828 const Clipboard::PointList &points = from.getPoints(); |
829 | 829 |