Mercurial > hg > svgui
comparison view/View.cpp @ 583:4c484636d5ec
Record and show any error that occurs during layer processing (e.g. spectrogram layer runs out of disc space for feature files)
author | Chris Cannam |
---|---|
date | Thu, 14 Apr 2011 15:21:21 +0100 |
parents | bb1035a24958 |
children | 1fe7951a61e8 |
comparison
equal
deleted
inserted
replaced
582:bde4aa56862b | 583:4c484636d5ec |
---|---|
31 #include <QRect> | 31 #include <QRect> |
32 #include <QApplication> | 32 #include <QApplication> |
33 #include <QProgressDialog> | 33 #include <QProgressDialog> |
34 #include <QTextStream> | 34 #include <QTextStream> |
35 #include <QFont> | 35 #include <QFont> |
36 #include <QMessageBox> | |
36 | 37 |
37 #include <iostream> | 38 #include <iostream> |
38 #include <cassert> | 39 #include <cassert> |
39 #include <cmath> | 40 #include <cmath> |
40 | 41 |
1434 // timer prompts it to go back into "indeterminate" mode | 1435 // timer prompts it to go back into "indeterminate" mode |
1435 QTimer *timer = i->second.checkTimer; | 1436 QTimer *timer = i->second.checkTimer; |
1436 | 1437 |
1437 int completion = i->first->getCompletion(this); | 1438 int completion = i->first->getCompletion(this); |
1438 QString text = i->first->getPropertyContainerName(); | 1439 QString text = i->first->getPropertyContainerName(); |
1440 QString error = i->first->getError(this); | |
1441 | |
1442 if (error != "" && error != m_lastError) { | |
1443 QMessageBox::critical(this, tr("Layer rendering error"), error); | |
1444 m_lastError = error; | |
1445 } | |
1439 | 1446 |
1440 Model *model = i->first->getModel(); | 1447 Model *model = i->first->getModel(); |
1441 RangeSummarisableTimeValueModel *wfm = | 1448 RangeSummarisableTimeValueModel *wfm = |
1442 dynamic_cast<RangeSummarisableTimeValueModel *>(model); | 1449 dynamic_cast<RangeSummarisableTimeValueModel *>(model); |
1443 | 1450 |