41 #include "ui_connectivitysettingsview.h"
57 using namespace DISPLIB;
67 , m_pUi(new Ui::ConnectivitySettingsViewWidget)
74 connect(m_pUi->m_comboBox_method,
static_cast<void (QComboBox::*)(
const QString&)
>(&QComboBox::currentTextChanged),
77 connect(m_pUi->m_comboBox_windowType,
static_cast<void (QComboBox::*)(
const QString&)
>(&QComboBox::currentTextChanged),
83 connect(m_pUi->m_spinBox_numberTrials, &QSpinBox::editingFinished,
86 connect(m_pUi->m_comboBox_triggerType,
static_cast<void (QComboBox::*)(
const QString&)
>(&QComboBox::currentTextChanged),
95 connect(m_pUi->m_spinBox_freqLow,
static_cast<void (QDoubleSpinBox::*)(
double)
>(&QDoubleSpinBox::valueChanged),
98 connect(m_pUi->m_spinBox_freqHigh,
static_cast<void (QDoubleSpinBox::*)(
double)
>(&QDoubleSpinBox::valueChanged),
101 this->setWindowTitle(
"Connectivity Settings");
102 this->setMinimumWidth(330);
103 this->setMaximumWidth(330);
119 for(
const QString &sTriggerType : lTriggerTypes) {
120 if(m_pUi->m_comboBox_triggerType->findText(sTriggerType) == -1) {
121 m_pUi->m_comboBox_triggerType->addItem(sTriggerType);
130 m_pUi->m_spinBox_numberTrials->setValue(iNumberTrials);
137 return m_pUi->m_comboBox_method->currentText();
144 return m_pUi->m_comboBox_windowType->currentText();
151 return m_pUi->m_spinBox_numberTrials->value();
158 return m_pUi->m_comboBox_triggerType->currentText();
165 return m_pUi->m_spinBox_freqLow->value();
172 return m_pUi->m_spinBox_freqHigh->value();
183 QSettings settings(
"MNECPP");
185 settings.setValue(
m_sSettingsPath + QString(
"/ConnectivitySettingsView/connMethod"), m_pUi->m_comboBox_method->currentText());
186 settings.setValue(
m_sSettingsPath + QString(
"/ConnectivitySettingsView/connWindowType"), m_pUi->m_comboBox_windowType->currentText());
187 settings.setValue(
m_sSettingsPath + QString(
"/ConnectivitySettingsView/connNrTrials"), m_pUi->m_spinBox_numberTrials->value());
188 settings.setValue(
m_sSettingsPath + QString(
"/ConnectivitySettingsView/connTriggerType"), m_pUi->m_comboBox_triggerType->currentText());
189 settings.setValue(
m_sSettingsPath + QString(
"/ConnectivitySettingsView/connFreqLow"), m_pUi->m_spinBox_freqLow->value());
190 settings.setValue(
m_sSettingsPath + QString(
"/ConnectivitySettingsView/connFreqHigh"), m_pUi->m_spinBox_freqHigh->value());
201 QSettings settings(
"MNECPP");
203 m_pUi->m_comboBox_method->setCurrentText(settings.value(
m_sSettingsPath + QString(
"/ConnectivitySettingsView/connMethod"),
"COR").toString());
204 m_pUi->m_comboBox_windowType->setCurrentText(settings.value(
m_sSettingsPath + QString(
"/ConnectivitySettingsView/connWindowType"),
"Hanning").toString());
205 m_pUi->m_spinBox_numberTrials->setValue(settings.value(
m_sSettingsPath + QString(
"/ConnectivitySettingsView/connNrTrials"), 10).toInt());
207 m_pUi->m_comboBox_triggerType->setCurrentText(settings.value(
m_sSettingsPath + QString(
"/ConnectivitySettingsView/connTriggerType"),
"1").toString());
208 m_pUi->m_spinBox_freqLow->setValue(settings.value(
m_sSettingsPath + QString(
"/ConnectivitySettingsView/connFreqLow"), 7.0).toDouble());
209 m_pUi->m_spinBox_freqHigh->setValue(settings.value(
m_sSettingsPath + QString(
"/ConnectivitySettingsView/connFreqHigh"), 13.0).toDouble());
217 case GuiMode::Clinical:
229 case ProcessingMode::Offline:
280 m_pUi->m_spinBox_freqHigh->value());