Mercurial > hg > sonic-visualiser
changeset 338:33ae130b951f sv-v1.7
* Add "Insert Item at Selection" (wording could be improved!)
author | Chris Cannam |
---|---|
date | Mon, 28 Sep 2009 10:39:13 +0000 |
parents | a3b2cba73143 |
children | e91910707283 |
files | main/MainWindow.cpp |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/main/MainWindow.cpp Fri Sep 25 12:02:22 2009 +0000 +++ b/main/MainWindow.cpp Mon Sep 28 10:39:13 2009 +0000 @@ -625,6 +625,16 @@ m_keyReference->registerShortcut(action); menu->addAction(action); + action = new QAction(tr("Insert Item at Selection"), this); + action->setShortcut(tr("Ctrl+Shift+Enter")); + action->setStatusTip(tr("Insert a new note or region item corresponding to the current selection")); + connect(action, SIGNAL(triggered()), this, SLOT(insertItemAtSelection())); + connect(this, SIGNAL(canInsertItemAtSelection(bool)), action, SLOT(setEnabled(bool))); + m_keyReference->registerShortcut(action); + menu->addAction(action); + + menu->addSeparator(); + QMenu *numberingMenu = menu->addMenu(tr("Number New Instants with")); numberingMenu->setTearOffEnabled(true); QActionGroup *numberingGroup = new QActionGroup(this);