Mercurial > hg > sonic-visualiser
comparison main/MainWindow.cpp @ 1639:3dbfe3ba0d1f
More debug output during startup
author | Chris Cannam |
---|---|
date | Sun, 05 Mar 2017 17:14:17 +0000 |
parents | 811fbe905f5e |
children | 81c28e5bc144 |
comparison
equal
deleted
inserted
replaced
1637:c3380c78811f | 1639:3dbfe3ba0d1f |
---|---|
197 cdb->setUseDarkBackground(cdb->addColour(QColor(30, 150, 255), tr("Bright Blue")), true); | 197 cdb->setUseDarkBackground(cdb->addColour(QColor(30, 150, 255), tr("Bright Blue")), true); |
198 cdb->setUseDarkBackground(cdb->addColour(Qt::green, tr("Bright Green")), true); | 198 cdb->setUseDarkBackground(cdb->addColour(Qt::green, tr("Bright Green")), true); |
199 cdb->setUseDarkBackground(cdb->addColour(QColor(225, 74, 255), tr("Bright Purple")), true); | 199 cdb->setUseDarkBackground(cdb->addColour(QColor(225, 74, 255), tr("Bright Purple")), true); |
200 cdb->setUseDarkBackground(cdb->addColour(QColor(255, 188, 80), tr("Bright Orange")), true); | 200 cdb->setUseDarkBackground(cdb->addColour(QColor(255, 188, 80), tr("Bright Orange")), true); |
201 | 201 |
202 SVDEBUG << "MainWindow: Creating main user interface layout" << endl; | |
203 | |
202 QFrame *frame = new QFrame; | 204 QFrame *frame = new QFrame; |
203 setCentralWidget(frame); | 205 setCentralWidget(frame); |
204 | 206 |
205 QGridLayout *layout = new QGridLayout; | 207 QGridLayout *layout = new QGridLayout; |
206 | 208 |
280 connect(m_paneStack, SIGNAL(propertyStacksResized(int)), | 282 connect(m_paneStack, SIGNAL(propertyStacksResized(int)), |
281 this, SLOT(propertyStacksResized(int))); | 283 this, SLOT(propertyStacksResized(int))); |
282 | 284 |
283 frame->setLayout(layout); | 285 frame->setLayout(layout); |
284 | 286 |
287 SVDEBUG << "MainWindow: Creating menus and toolbars" << endl; | |
288 | |
285 #ifdef Q_OS_MAC | 289 #ifdef Q_OS_MAC |
286 // Mac doesn't align menu labels when icons are shown: result is messy | 290 // Mac doesn't align menu labels when icons are shown: result is messy |
287 QApplication::setAttribute(Qt::AA_DontShowIconsInMenus); | 291 QApplication::setAttribute(Qt::AA_DontShowIconsInMenus); |
288 setIconsVisibleInMenus(false); | 292 setIconsVisibleInMenus(false); |
289 #endif | 293 #endif |
311 m_activityLog->hide(); | 315 m_activityLog->hide(); |
312 | 316 |
313 m_unitConverter->hide(); | 317 m_unitConverter->hide(); |
314 | 318 |
315 setAudioRecordMode(RecordCreateAdditionalModel); | 319 setAudioRecordMode(RecordCreateAdditionalModel); |
316 | 320 |
321 SVDEBUG << "MainWindow: Creating new session" << endl; | |
322 | |
317 newSession(); | 323 newSession(); |
318 | 324 |
319 connect(m_midiInput, SIGNAL(eventsAvailable()), | 325 connect(m_midiInput, SIGNAL(eventsAvailable()), |
320 this, SLOT(midiEventsAvailable())); | 326 this, SLOT(midiEventsAvailable())); |
327 | |
328 SVDEBUG << "MainWindow: Creating network permission tester" << endl; | |
321 | 329 |
322 NetworkPermissionTester tester(withOSCSupport); | 330 NetworkPermissionTester tester(withOSCSupport); |
323 bool networkPermission = tester.havePermission(); | 331 bool networkPermission = tester.havePermission(); |
324 if (networkPermission) { | 332 if (networkPermission) { |
325 if (withOSCSupport) { | 333 if (withOSCSupport) { |
334 SVDEBUG << "MainWindow: Creating OSC queue" << endl; | |
326 startOSCQueue(); | 335 startOSCQueue(); |
327 } | 336 } |
337 | |
338 SVDEBUG << "MainWindow: Starting transform population thread" << endl; | |
328 TransformFactory::getInstance()->startPopulationThread(); | 339 TransformFactory::getInstance()->startPopulationThread(); |
340 | |
341 SVDEBUG << "MainWindow: Creating surveyer" << endl; | |
329 m_surveyer = new Surveyer | 342 m_surveyer = new Surveyer |
330 ("sonicvisualiser.org", "survey23-present.txt", "survey23.php"); | 343 ("sonicvisualiser.org", "survey23-present.txt", "survey23.php"); |
344 | |
345 SVDEBUG << "MainWindow: Creating version tester" << endl; | |
331 m_versionTester = new VersionTester | 346 m_versionTester = new VersionTester |
332 ("sonicvisualiser.org", "latest-version.txt", SV_VERSION); | 347 ("sonicvisualiser.org", "latest-version.txt", SV_VERSION); |
333 connect(m_versionTester, SIGNAL(newerVersionAvailable(QString)), | 348 connect(m_versionTester, SIGNAL(newerVersionAvailable(QString)), |
334 this, SLOT(newerVersionAvailable(QString))); | 349 this, SLOT(newerVersionAvailable(QString))); |
335 } else { | 350 } else { |
343 | 358 |
344 QString warning = PluginScan::getInstance()->getStartupFailureReport(); | 359 QString warning = PluginScan::getInstance()->getStartupFailureReport(); |
345 if (warning != "") { | 360 if (warning != "") { |
346 QTimer::singleShot(500, this, SLOT(pluginPopulationWarning())); | 361 QTimer::singleShot(500, this, SLOT(pluginPopulationWarning())); |
347 } | 362 } |
363 | |
364 SVDEBUG << "MainWindow: Constructor done" << endl; | |
348 } | 365 } |
349 | 366 |
350 MainWindow::~MainWindow() | 367 MainWindow::~MainWindow() |
351 { | 368 { |
352 // SVDEBUG << "MainWindow::~MainWindow" << endl; | 369 // SVDEBUG << "MainWindow::~MainWindow" << endl; |