comparison main/MainWindow.cpp @ 1149:3ba5bee2ace0 3.0-integration

Merge from branch pluginscan
author Chris Cannam
date Fri, 15 Apr 2016 16:26:15 +0100
parents b3b5885e7c2c
children 5e6e1e074080 e0aa911e1a8a
comparison
equal deleted inserted replaced
1143:129910eddd00 1149:3ba5bee2ace0
67 #include "data/fileio/MIDIFileWriter.h" 67 #include "data/fileio/MIDIFileWriter.h"
68 #include "data/fileio/BZipFileDevice.h" 68 #include "data/fileio/BZipFileDevice.h"
69 #include "data/fileio/FileSource.h" 69 #include "data/fileio/FileSource.h"
70 #include "data/midi/MIDIInput.h" 70 #include "data/midi/MIDIInput.h"
71 #include "base/RecentFiles.h" 71 #include "base/RecentFiles.h"
72 #include "plugin/PluginScan.h"
72 #include "transform/TransformFactory.h" 73 #include "transform/TransformFactory.h"
73 #include "transform/ModelTransformerFactory.h" 74 #include "transform/ModelTransformerFactory.h"
74 #include "base/PlayParameterRepository.h" 75 #include "base/PlayParameterRepository.h"
75 #include "base/XmlExportable.h" 76 #include "base/XmlExportable.h"
76 #include "widgets/CommandHistory.h" 77 #include "widgets/CommandHistory.h"
328 } else { 329 } else {
329 m_surveyer = 0; 330 m_surveyer = 0;
330 m_versionTester = 0; 331 m_versionTester = 0;
331 } 332 }
332 333
333 QString warning = TransformFactory::getInstance()->getPluginPopulationWarning(); 334 QString warning = PluginScan::getInstance()->getStartupFailureReport();
334 if (warning != "") pluginPopulationWarning(warning); 335 if (warning != "") {
336 QTimer::singleShot(500, this, SLOT(pluginPopulationWarning()));
337 }
335 } 338 }
336 339
337 MainWindow::~MainWindow() 340 MainWindow::~MainWindow()
338 { 341 {
339 // SVDEBUG << "MainWindow::~MainWindow" << endl; 342 // SVDEBUG << "MainWindow::~MainWindow" << endl;
4139 tr("<b>Overloaded</b><p>Audio playback speed processing has been reduced to a single channel, due to a processing overload.")); 4142 tr("<b>Overloaded</b><p>Audio playback speed processing has been reduced to a single channel, due to a processing overload."));
4140 shownOnce = true; 4143 shownOnce = true;
4141 } 4144 }
4142 4145
4143 void 4146 void
4144 MainWindow::pluginPopulationWarning(QString warning) 4147 MainWindow::pluginPopulationWarning()
4145 { 4148 {
4149 QString warning = PluginScan::getInstance()->getStartupFailureReport();
4146 QMessageBox::warning(this, tr("Problems loading plugins"), warning); 4150 QMessageBox::warning(this, tr("Problems loading plugins"), warning);
4147 } 4151 }
4148 4152
4149 void 4153 void
4150 MainWindow::midiEventsAvailable() 4154 MainWindow::midiEventsAvailable()