Mercurial > hg > sonic-visualiser
diff main/PreferencesDialog.cpp @ 1275:5a1a3538ff4e piper
Add out-of-process execution to prefs dialog
Also, scale the window shape preview labels 'cos they look funny
author | Chris Cannam |
---|---|
date | Fri, 21 Oct 2016 14:40:48 +0100 |
parents | bd3cb9d6db66 |
children | 0c6cdcf53641 |
line wrap: on
line diff
--- a/main/PreferencesDialog.cpp Fri Oct 21 11:59:14 2016 +0100 +++ b/main/PreferencesDialog.cpp Fri Oct 21 14:40:48 2016 +0100 @@ -80,6 +80,13 @@ connect(m_windowTypeSelector, SIGNAL(windowTypeChanged(WindowType)), this, SLOT(windowTypeChanged(WindowType))); + QCheckBox *vampProcessSeparation = new QCheckBox; + m_runPluginsInProcess = prefs->getRunPluginsInProcess(); + vampProcessSeparation->setCheckState(m_runPluginsInProcess ? Qt::Unchecked : + Qt::Checked); + connect(vampProcessSeparation, SIGNAL(stateChanged(int)), + this, SLOT(vampProcessSeparationChanged(int))); + QComboBox *smoothing = new QComboBox; int sm = prefs->getPropertyRangeAndValue("Spectrogram Y Smoothing", &min, &max, @@ -472,8 +479,13 @@ ("Window Type"))), row, 0); subgrid->addWidget(m_windowTypeSelector, row++, 1, 2, 2); + subgrid->setRowStretch(row, 10); row++; + + subgrid->addWidget(new QLabel(tr("Run Vamp plugins in separate process:")), + row, 0); + subgrid->addWidget(vampProcessSeparation, row++, 1, 1, 1); subgrid->setRowStretch(row, 10); @@ -633,6 +645,14 @@ } void +PreferencesDialog::vampProcessSeparationChanged(int state) +{ + m_runPluginsInProcess = (state == Qt::Unchecked); + m_applyButton->setEnabled(true); + m_changesOnRestart = true; +} + +void PreferencesDialog::networkPermissionChanged(int state) { m_networkPermission = (state == Qt::Checked);