| 86 | |
| 87 | |
| 88 | SetupDialog::SetupDialog( ConfigTabs _tab_to_open ) : |
| 89 | m_bufferSize( ConfigManager::inst()->value( "mixer", |
| 90 | "framesperaudiobuffer" ).toInt() ), |
| 91 | m_toolTips( !ConfigManager::inst()->value( "tooltips", |
| 92 | "disabled" ).toInt() ), |
| 93 | m_warnAfterSetup( !ConfigManager::inst()->value( "app", |
| 94 | "nomsgaftersetup" ).toInt() ), |
| 95 | m_displaydBFS( ConfigManager::inst()->value( "app", |
| 96 | "displaydbfs" ).toInt() ), |
| 97 | m_MMPZ( !ConfigManager::inst()->value( "app", "nommpz" ).toInt() ), |
| 98 | m_disableBackup( !ConfigManager::inst()->value( "app", |
| 99 | "disablebackup" ).toInt() ), |
| 100 | m_openLastProject( ConfigManager::inst()->value( "app", |
| 101 | "openlastproject" ).toInt() ), |
| 102 | m_NaNHandler( ConfigManager::inst()->value( "app", |
| 103 | "nanhandler", "1" ).toInt() ), |
| 104 | m_hqAudioDev( ConfigManager::inst()->value( "mixer", |
| 105 | "hqaudio" ).toInt() ), |
| 106 | m_lang( ConfigManager::inst()->value( "app", |
| 107 | "language" ) ), |
| 108 | m_workingDir( QDir::toNativeSeparators( ConfigManager::inst()->workingDir() ) ), |
| 109 | m_vstDir( QDir::toNativeSeparators( ConfigManager::inst()->vstDir() ) ), |
| 110 | m_artworkDir( QDir::toNativeSeparators( ConfigManager::inst()->artworkDir() ) ), |
| 111 | m_ladDir( QDir::toNativeSeparators( ConfigManager::inst()->ladspaDir() ) ), |
| 112 | m_gigDir( QDir::toNativeSeparators( ConfigManager::inst()->gigDir() ) ), |
| 113 | m_sf2Dir( QDir::toNativeSeparators( ConfigManager::inst()->sf2Dir() ) ), |
| 114 | #ifdef LMMS_HAVE_FLUIDSYNTH |
| 115 | m_defaultSoundfont( QDir::toNativeSeparators( ConfigManager::inst()->defaultSoundfont() ) ), |
| 116 | #endif |
| 117 | #ifdef LMMS_HAVE_STK |
| 118 | m_stkDir( QDir::toNativeSeparators( ConfigManager::inst()->stkDir() ) ), |
| 119 | #endif |
| 120 | m_backgroundArtwork( QDir::toNativeSeparators( ConfigManager::inst()->backgroundArtwork() ) ), |
| 121 | m_smoothScroll( ConfigManager::inst()->value( "ui", "smoothscroll" ).toInt() ), |
| 122 | m_enableAutoSave( ConfigManager::inst()->value( "ui", "enableautosave", "1" ).toInt() ), |
| 123 | m_enableRunningAutoSave( ConfigManager::inst()->value( "ui", "enablerunningautosave", "0" ).toInt() ), |
| 124 | m_saveInterval( ConfigManager::inst()->value( "ui", "saveinterval" ).toInt() < 1 ? |
| 125 | MainWindow::DEFAULT_SAVE_INTERVAL_MINUTES : |
| 126 | ConfigManager::inst()->value( "ui", "saveinterval" ).toInt() ), |
| 127 | m_oneInstrumentTrackWindow( ConfigManager::inst()->value( "ui", |
| 128 | "oneinstrumenttrackwindow" ).toInt() ), |
| 129 | m_compactTrackButtons( ConfigManager::inst()->value( "ui", |
| 130 | "compacttrackbuttons" ).toInt() ), |
| 131 | m_syncVSTPlugins( ConfigManager::inst()->value( "ui", |
| 132 | "syncvstplugins", "1" ).toInt() ), |
| 133 | m_animateAFP(ConfigManager::inst()->value( "ui", |
| 134 | "animateafp", "1" ).toInt() ), |
| 135 | m_printNoteLabels(ConfigManager::inst()->value( "ui", |
| 136 | "printnotelabels").toInt() ), |
| 137 | m_displayWaveform(ConfigManager::inst()->value( "ui", |
| 138 | "displaywaveform").toInt() ), |
| 139 | m_disableAutoQuit(ConfigManager::inst()->value( "ui", |
| 140 | "disableautoquit", "1" ).toInt() ), |
| 141 | m_vstEmbedMethod( ConfigManager::inst()->vstEmbedMethod() ), |
| 142 | m_vstAlwaysOnTop( ConfigManager::inst()->value( "ui", |
| 143 | "vstalwaysontop" ).toInt() ) |
| 144 | { |
| 145 | setWindowIcon( embed::getIconPixmap( "setup_general" ) ); |
nothing calls this directly
no test coverage detected