Mercurial > hg > tony
comparison src/MainWindow.cpp @ 325:ef75afbe4c67
Wire up "analyse now"
author | Chris Cannam |
---|---|
date | Fri, 13 Jun 2014 14:36:30 +0100 |
parents | ac662fca8058 |
children | b176ea403ee8 |
comparison
equal
deleted
inserted
replaced
324:ac662fca8058 | 325:ef75afbe4c67 |
---|---|
2984 } | 2984 } |
2985 | 2985 |
2986 void | 2986 void |
2987 MainWindow::analyseNow() | 2987 MainWindow::analyseNow() |
2988 { | 2988 { |
2989 //!!! | |
2990 cerr << "analyseNow called" << endl; | 2989 cerr << "analyseNow called" << endl; |
2990 if (!m_analyser) return; | |
2991 | |
2992 CommandHistory::getInstance()->startCompoundOperation | |
2993 (tr("Analyse Audio"), true); | |
2994 | |
2995 QString error = m_analyser->analyseExistingFile(); | |
2996 | |
2997 CommandHistory::getInstance()->endCompoundOperation(); | |
2998 | |
2999 if (error != "") { | |
3000 QMessageBox::warning | |
3001 (this, | |
3002 tr("Failed to analyse audio"), | |
3003 tr("<b>Analysis failed</b><p>%1</p>").arg(error), | |
3004 QMessageBox::Ok); | |
3005 } | |
2991 } | 3006 } |
2992 | 3007 |
2993 void | 3008 void |
2994 MainWindow::analyseNewMainModel() | 3009 MainWindow::analyseNewMainModel() |
2995 { | 3010 { |