Mercurial > hg > sonic-visualiser
diff 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 |
line wrap: on
line diff
--- a/main/MainWindow.cpp Mon Oct 25 11:15:47 2010 +0200 +++ b/main/MainWindow.cpp Fri Feb 04 14:33:07 2011 +0000 @@ -550,6 +550,15 @@ menu->addAction(action); m_rightButtonMenu->addAction(action); + action = new QAction(tr("Paste at Playback Position"), this); + action->setShortcut(tr("Ctrl+Shift+V")); + action->setStatusTip(tr("Paste from the clipboard to the current layer, placing the first item at the playback position")); + connect(action, SIGNAL(triggered()), this, SLOT(pasteAtPlaybackPosition())); + connect(this, SIGNAL(canPaste(bool)), action, SLOT(setEnabled(bool))); + m_keyReference->registerShortcut(action); + menu->addAction(action); + m_rightButtonMenu->addAction(action); + m_deleteSelectedAction = new QAction(tr("&Delete Selected Items"), this); m_deleteSelectedAction->setShortcut(tr("Del")); m_deleteSelectedAction->setStatusTip(tr("Delete items in current selection from the current layer"));