comparison layer/TextLayer.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
669 669
670 command->finish(); 670 command->finish();
671 } 671 }
672 672
673 void 673 void
674 TextLayer::copy(Selection s, Clipboard &to) 674 TextLayer::copy(View *v, Selection s, Clipboard &to)
675 { 675 {
676 if (!m_model) return; 676 if (!m_model) return;
677 677
678 TextModel::PointList points = 678 TextModel::PointList points =
679 m_model->getPoints(s.getStartFrame(), s.getEndFrame()); 679 m_model->getPoints(s.getStartFrame(), s.getEndFrame());
687 } 687 }
688 } 688 }
689 } 689 }
690 690
691 bool 691 bool
692 TextLayer::paste(const Clipboard &from, int frameOffset, bool /* interactive */) 692 TextLayer::paste(View *v, const Clipboard &from, int frameOffset, bool /* interactive */)
693 { 693 {
694 if (!m_model) return false; 694 if (!m_model) return false;
695 695
696 const Clipboard::PointList &points = from.getPoints(); 696 const Clipboard::PointList &points = from.getPoints();
697 697