diff main/MainWindow.cpp @ 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 193e0d6eb6de
children 3211f8cef51a
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);