# HG changeset patch # User Chris Cannam # Date 1427286136 0 # Node ID abf3af4fc20b1d6785fa9e008cd54a3eb6245cbb # Parent cddb369fa8d8dfa9734d0b51ae9c8ac600a7ce63 Minor adjustment to Analyse menu (but new option is not yet hooked up) diff -r cddb369fa8d8 -r abf3af4fc20b src/MainWindow.cpp --- 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