comparison main/MainWindow.cpp @ 395:065b61fe7cc3

* Add Paste at Playback Position
author Chris Cannam
date Fri, 04 Feb 2011 14:33:07 +0000
parents 487d208fadb3
children 94bb597df464
comparison
equal deleted inserted replaced
388:5c4943eae166 395:065b61fe7cc3
543 action = new QAction(il.load("editpaste"), 543 action = new QAction(il.load("editpaste"),
544 tr("&Paste"), this); 544 tr("&Paste"), this);
545 action->setShortcut(tr("Ctrl+V")); 545 action->setShortcut(tr("Ctrl+V"));
546 action->setStatusTip(tr("Paste from the clipboard to the current layer")); 546 action->setStatusTip(tr("Paste from the clipboard to the current layer"));
547 connect(action, SIGNAL(triggered()), this, SLOT(paste())); 547 connect(action, SIGNAL(triggered()), this, SLOT(paste()));
548 connect(this, SIGNAL(canPaste(bool)), action, SLOT(setEnabled(bool)));
549 m_keyReference->registerShortcut(action);
550 menu->addAction(action);
551 m_rightButtonMenu->addAction(action);
552
553 action = new QAction(tr("Paste at Playback Position"), this);
554 action->setShortcut(tr("Ctrl+Shift+V"));
555 action->setStatusTip(tr("Paste from the clipboard to the current layer, placing the first item at the playback position"));
556 connect(action, SIGNAL(triggered()), this, SLOT(pasteAtPlaybackPosition()));
548 connect(this, SIGNAL(canPaste(bool)), action, SLOT(setEnabled(bool))); 557 connect(this, SIGNAL(canPaste(bool)), action, SLOT(setEnabled(bool)));
549 m_keyReference->registerShortcut(action); 558 m_keyReference->registerShortcut(action);
550 menu->addAction(action); 559 menu->addAction(action);
551 m_rightButtonMenu->addAction(action); 560 m_rightButtonMenu->addAction(action);
552 561