comparison framework/MainWindowBase.cpp @ 86:dd74c5332b49

* 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 40d0c964ad24
children 1b217963e53a
comparison
equal deleted inserted replaced
85:40d0c964ad24 86:dd74c5332b49
570 570
571 CommandHistory::getInstance()->startCompoundOperation(tr("Cut"), true); 571 CommandHistory::getInstance()->startCompoundOperation(tr("Cut"), true);
572 572
573 for (MultiSelection::SelectionList::iterator i = selections.begin(); 573 for (MultiSelection::SelectionList::iterator i = selections.begin();
574 i != selections.end(); ++i) { 574 i != selections.end(); ++i) {
575 layer->copy(*i, clipboard); 575 layer->copy(currentPane, *i, clipboard);
576 layer->deleteSelection(*i); 576 layer->deleteSelection(*i);
577 } 577 }
578 578
579 CommandHistory::getInstance()->endCompoundOperation(); 579 CommandHistory::getInstance()->endCompoundOperation();
580 } 580 }
593 593
594 MultiSelection::SelectionList selections = m_viewManager->getSelections(); 594 MultiSelection::SelectionList selections = m_viewManager->getSelections();
595 595
596 for (MultiSelection::SelectionList::iterator i = selections.begin(); 596 for (MultiSelection::SelectionList::iterator i = selections.begin();
597 i != selections.end(); ++i) { 597 i != selections.end(); ++i) {
598 layer->copy(*i, clipboard); 598 layer->copy(currentPane, *i, clipboard);
599 } 599 }
600 } 600 }
601 601
602 void 602 void
603 MainWindowBase::paste() 603 MainWindowBase::paste()
626 626
627 long frameOffset = long(m_viewManager->getGlobalCentreFrame()) - minFrame; 627 long frameOffset = long(m_viewManager->getGlobalCentreFrame()) - minFrame;
628 628
629 layer->paste(clipboard, frameOffset); 629 layer->paste(clipboard, frameOffset);
630 */ 630 */
631 layer->paste(clipboard, 0, true); 631 layer->paste(currentPane, clipboard, 0, true);
632 } 632 }
633 633
634 void 634 void
635 MainWindowBase::deleteSelected() 635 MainWindowBase::deleteSelected()
636 { 636 {