Mercurial > hg > sonic-visualiser
comparison 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 |
comparison
equal
deleted
inserted
replaced
337:a3b2cba73143 | 338:33ae130b951f |
---|---|
622 action->setStatusTip(tr("Insert new time instants at the start and end of the current selected regions, in a new layer if necessary")); | 622 action->setStatusTip(tr("Insert new time instants at the start and end of the current selected regions, in a new layer if necessary")); |
623 connect(action, SIGNAL(triggered()), this, SLOT(insertInstantsAtBoundaries())); | 623 connect(action, SIGNAL(triggered()), this, SLOT(insertInstantsAtBoundaries())); |
624 connect(this, SIGNAL(canInsertInstantsAtBoundaries(bool)), action, SLOT(setEnabled(bool))); | 624 connect(this, SIGNAL(canInsertInstantsAtBoundaries(bool)), action, SLOT(setEnabled(bool))); |
625 m_keyReference->registerShortcut(action); | 625 m_keyReference->registerShortcut(action); |
626 menu->addAction(action); | 626 menu->addAction(action); |
627 | |
628 action = new QAction(tr("Insert Item at Selection"), this); | |
629 action->setShortcut(tr("Ctrl+Shift+Enter")); | |
630 action->setStatusTip(tr("Insert a new note or region item corresponding to the current selection")); | |
631 connect(action, SIGNAL(triggered()), this, SLOT(insertItemAtSelection())); | |
632 connect(this, SIGNAL(canInsertItemAtSelection(bool)), action, SLOT(setEnabled(bool))); | |
633 m_keyReference->registerShortcut(action); | |
634 menu->addAction(action); | |
635 | |
636 menu->addSeparator(); | |
627 | 637 |
628 QMenu *numberingMenu = menu->addMenu(tr("Number New Instants with")); | 638 QMenu *numberingMenu = menu->addMenu(tr("Number New Instants with")); |
629 numberingMenu->setTearOffEnabled(true); | 639 numberingMenu->setTearOffEnabled(true); |
630 QActionGroup *numberingGroup = new QActionGroup(this); | 640 QActionGroup *numberingGroup = new QActionGroup(this); |
631 | 641 |