comparison main/MainWindow.cpp @ 1087:6fcb632384ba plugin-startup-test

Show warning to the user when plugin population has problems
author Chris Cannam
date Tue, 19 Jan 2016 12:32:30 +0000
parents 1f92fc7a6b05
children 52cbb3f6b9fa
comparison
equal deleted inserted replaced
1086:744f1bbc6222 1087:6fcb632384ba
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 {