Mercurial > hg > sonic-visualiser
comparison main/MainWindow.cpp @ 1088:36de09aaa614 3.0-integration
Merge from branch plugin-startup-test
author | Chris Cannam |
---|---|
date | Tue, 19 Jan 2016 12:34:38 +0000 |
parents | 6fcb632384ba |
children | 52cbb3f6b9fa |
comparison
equal
deleted
inserted
replaced
1083:224a6f55445d | 1088:36de09aaa614 |
---|---|
298 connect(CommandHistory::getInstance(), SIGNAL(activity(QString)), | 298 connect(CommandHistory::getInstance(), SIGNAL(activity(QString)), |
299 m_activityLog, SLOT(activityHappened(QString))); | 299 m_activityLog, SLOT(activityHappened(QString))); |
300 connect(this, SIGNAL(activity(QString)), | 300 connect(this, SIGNAL(activity(QString)), |
301 m_activityLog, SLOT(activityHappened(QString))); | 301 m_activityLog, SLOT(activityHappened(QString))); |
302 connect(this, SIGNAL(replacedDocument()), this, SLOT(documentReplaced())); | 302 connect(this, SIGNAL(replacedDocument()), this, SLOT(documentReplaced())); |
303 | |
303 m_activityLog->hide(); | 304 m_activityLog->hide(); |
304 | 305 |
305 m_unitConverter->hide(); | 306 m_unitConverter->hide(); |
306 | 307 |
307 setAudioRecordMode(RecordCreateAdditionalModel); | 308 setAudioRecordMode(RecordCreateAdditionalModel); |
326 this, SLOT(newerVersionAvailable(QString))); | 327 this, SLOT(newerVersionAvailable(QString))); |
327 } else { | 328 } else { |
328 m_surveyer = 0; | 329 m_surveyer = 0; |
329 m_versionTester = 0; | 330 m_versionTester = 0; |
330 } | 331 } |
332 | |
333 QString warning = TransformFactory::getInstance()->getPluginPopulationWarning(); | |
334 if (warning != "") pluginPopulationWarning(warning); | |
331 } | 335 } |
332 | 336 |
333 MainWindow::~MainWindow() | 337 MainWindow::~MainWindow() |
334 { | 338 { |
335 // SVDEBUG << "MainWindow::~MainWindow" << endl; | 339 // SVDEBUG << "MainWindow::~MainWindow" << endl; |
4132 if (shownOnce) return; | 4136 if (shownOnce) return; |
4133 QMessageBox::information | 4137 QMessageBox::information |
4134 (this, tr("Audio processing overload"), | 4138 (this, tr("Audio processing overload"), |
4135 tr("<b>Overloaded</b><p>Audio playback speed processing has been reduced to a single channel, due to a processing overload.")); | 4139 tr("<b>Overloaded</b><p>Audio playback speed processing has been reduced to a single channel, due to a processing overload.")); |
4136 shownOnce = true; | 4140 shownOnce = true; |
4141 } | |
4142 | |
4143 void | |
4144 MainWindow::pluginPopulationWarning(QString warning) | |
4145 { | |
4146 QMessageBox::warning(this, tr("Problems loading plugins"), warning); | |
4137 } | 4147 } |
4138 | 4148 |
4139 void | 4149 void |
4140 MainWindow::midiEventsAvailable() | 4150 MainWindow::midiEventsAvailable() |
4141 { | 4151 { |