Mercurial > hg > tony
changeset 421:abf3af4fc20b
Minor adjustment to Analyse menu (but new option is not yet hooked up)
author | Chris Cannam |
---|---|
date | Wed, 25 Mar 2015 12:22:16 +0000 |
parents | cddb369fa8d8 |
children | 0a12d7e79b74 |
files | src/MainWindow.cpp |
diffstat | 1 files changed, 14 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/src/MainWindow.cpp Wed Mar 25 11:48:33 2015 +0000 +++ b/src/MainWindow.cpp Wed Mar 25 12:22:16 2015 +0000 @@ -745,15 +745,6 @@ QMenu *menu = menuBar()->addMenu(tr("&Analysis")); menu->setTearOffEnabled(true); - - action = new QAction(tr("&Analyse now!"), this); - action->setStatusTip(tr("Trigger analysis of pitches and notes. (This will delete all existing pitches and notes.)")); - connect(action, SIGNAL(triggered()), this, SLOT(analyseNow())); - menu->addAction(action); - m_keyReference->registerShortcut(action); - - menu->addSeparator(); - QSettings settings; settings.beginGroup("Analyser"); bool autoAnalyse = settings.value("auto-analysis", true).toBool(); @@ -768,6 +759,14 @@ connect(action, SIGNAL(triggered()), this, SLOT(autoAnalysisToggled())); menu->addAction(action); + action = new QAction(tr("&Analyse Now!"), this); + action->setStatusTip(tr("Trigger analysis of pitches and notes. (This will delete all existing pitches and notes.)")); + connect(action, SIGNAL(triggered()), this, SLOT(analyseNow())); + menu->addAction(action); + m_keyReference->registerShortcut(action); + + menu->addSeparator(); + action = new QAction(tr("&Unbiased Timing (slow)"), this); action->setStatusTip(tr("Use a symmetric window in YIN to remove frequency-dependent timing bias. (This is slow!)")); action->setCheckable(true); @@ -782,6 +781,12 @@ connect(action, SIGNAL(triggered()), this, SLOT(lowampAnalysisToggled())); menu->addAction(action); + menu->addSeparator(); + + action = new QAction(tr("Reset Options to Defaults"), this); + action->setStatusTip(tr("Reset all of the Analyse menu options to their default settings.")); + connect(action, SIGNAL(triggered()), this, SLOT(resetAnalyseOptions())); + menu->addAction(action); } void