# HG changeset patch # User Chris Cannam # Date 1254134353 0 # Node ID 33ae130b951ff9ee3ca7d5c4a5b45e05ce10f870 # Parent a3b2cba73143fca0e4ef26154698d32cf34cf10b * Add "Insert Item at Selection" (wording could be improved!) diff -r a3b2cba73143 -r 33ae130b951f main/MainWindow.cpp --- 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);