Mercurial > hg > sonic-visualiser
comparison main/main.cpp @ 1045:691a8210e480 recording
Start stubbing in audio record
| author | Chris Cannam |
|---|---|
| date | Tue, 18 Aug 2015 14:04:47 +0100 |
| parents | 62198dde171e |
| children | 2f8018eb1573 |
comparison
equal
deleted
inserted
replaced
| 1044:be5b29ce283b | 1045:691a8210e480 |
|---|---|
| 221 QStringList m_filepathQueue; | 221 QStringList m_filepathQueue; |
| 222 | 222 |
| 223 protected: | 223 protected: |
| 224 MainWindow *m_mainWindow; | 224 MainWindow *m_mainWindow; |
| 225 bool event(QEvent *); | 225 bool event(QEvent *); |
| 226 | |
| 227 }; | 226 }; |
| 228 | 227 |
| 229 int | 228 int |
| 230 main(int argc, char **argv) | 229 main(int argc, char **argv) |
| 231 { | 230 { |
| 343 StoreStartupLocale(); | 342 StoreStartupLocale(); |
| 344 | 343 |
| 345 // Permit size_t and PropertyName to be used as args in queued signal calls | 344 // Permit size_t and PropertyName to be used as args in queued signal calls |
| 346 qRegisterMetaType<PropertyContainer::PropertyName>("PropertyContainer::PropertyName"); | 345 qRegisterMetaType<PropertyContainer::PropertyName>("PropertyContainer::PropertyName"); |
| 347 | 346 |
| 348 MainWindow *gui = new MainWindow(audioOutput, oscSupport); | 347 MainWindow::SoundOptions options = MainWindow::WithEverything; |
| 348 if (!audioOutput) options = 0; | |
| 349 | |
| 350 MainWindow *gui = new MainWindow(options, oscSupport); | |
| 349 application.setMainWindow(gui); | 351 application.setMainWindow(gui); |
| 350 InteractiveFileFinder::setParentWidget(gui); | 352 InteractiveFileFinder::setParentWidget(gui); |
| 351 TransformUserConfigurator::setParentWidget(gui); | 353 TransformUserConfigurator::setParentWidget(gui); |
| 352 if (splash) { | 354 if (splash) { |
| 353 QObject::connect(gui, SIGNAL(hideSplash()), splash, SLOT(hide())); | 355 QObject::connect(gui, SIGNAL(hideSplash()), splash, SLOT(hide())); |
