comparison src/MainWindow.cpp @ 333:ef298f4e16bf

improved Analysis menu labels
author matthiasm
date Fri, 13 Jun 2014 16:09:11 +0100
parents df4899aef78f
children ed9296a27a27 b5ed315a8b93
comparison
equal deleted inserted replaced
331:71f0b7c24c90 333:ef298f4e16bf
812 QAction *action = 0; 812 QAction *action = 0;
813 813
814 QMenu *menu = menuBar()->addMenu(tr("&Analysis")); 814 QMenu *menu = menuBar()->addMenu(tr("&Analysis"));
815 menu->setTearOffEnabled(true); 815 menu->setTearOffEnabled(true);
816 816
817 m_keyReference->setCategory(tr("Analysis")); 817
818 818 action = new QAction(tr("&Analyse now!"), this);
819 action = new QAction(tr("&Analyse now"), this); 819 action->setStatusTip(tr("Trigger analysis of pitches and notes. (This will delete all existing pitches and notes.)"));
820 action->setShortcut(tr("Ctrl+P"));
821 action->setStatusTip(tr("Analyse audio now to extract pitches and notes. (This will delete all existing pitches and notes.)"));
822 connect(action, SIGNAL(triggered()), this, SLOT(analyseNow())); 820 connect(action, SIGNAL(triggered()), this, SLOT(analyseNow()));
823 menu->addAction(action); 821 menu->addAction(action);
824 m_keyReference->registerShortcut(action); 822 m_keyReference->registerShortcut(action);
825 823
826 menu->addSeparator(); 824 menu->addSeparator();
829 settings.beginGroup("Analyser"); 827 settings.beginGroup("Analyser");
830 bool autoAnalyse = settings.value("auto-analysis", true).toBool(); 828 bool autoAnalyse = settings.value("auto-analysis", true).toBool();
831 bool precise = settings.value("precision-analysis", false).toBool(); 829 bool precise = settings.value("precision-analysis", false).toBool();
832 settings.endGroup(); 830 settings.endGroup();
833 831
834 action = new QAction(tr("Automatically Analyse &New Audio"), this); 832 action = new QAction(tr("Auto-Analyse &New Audio"), this);
833 action->setStatusTip(tr("Automatically trigger analysis upon opening of a new audio file."));
835 action->setCheckable(true); 834 action->setCheckable(true);
836 action->setChecked(autoAnalyse); 835 action->setChecked(autoAnalyse);
837 connect(action, SIGNAL(triggered()), this, SLOT(autoAnalysisToggled())); 836 connect(action, SIGNAL(triggered()), this, SLOT(autoAnalysisToggled()));
838 menu->addAction(action); 837 menu->addAction(action);
839 838
840 action = new QAction(tr("Analyse &Without Frequency-dependent Timing Bias (slow)"), this); 839 action = new QAction(tr("&Unbiased Timing (slow)"), this);
840 action->setStatusTip(tr("Use a symmetric window in YIN to remove frequency-dependent timing bias. (This is slow!)"));
841 action->setCheckable(true); 841 action->setCheckable(true);
842 action->setChecked(precise); 842 action->setChecked(precise);
843 connect(action, SIGNAL(triggered()), this, SLOT(precisionAnalysisToggled())); 843 connect(action, SIGNAL(triggered()), this, SLOT(precisionAnalysisToggled()));
844 menu->addAction(action); 844 menu->addAction(action);
845 } 845 }