41 #include "ui_spharasettingsview.h"
57 using namespace DISPLIB;
67 , m_pUi(new Ui::SpharaSettingsViewWidget)
73 connect(m_pUi->m_checkBox_activateSphara,
static_cast<void (QCheckBox::*)(
bool)
>(&QCheckBox::clicked),
77 connect(m_pUi->m_comboBox_spharaSystem,
static_cast<void (QComboBox::*)(
const QString&)
>(&QComboBox::currentTextChanged),
80 connect(m_pUi->m_spinBox_spharaFirst,
static_cast<void (QSpinBox::*)()
>(&QSpinBox::editingFinished),
83 connect(m_pUi->m_spinBox_spharaSecond,
static_cast<void (QSpinBox::*)()
>(&QSpinBox::editingFinished),
86 this->setWindowTitle(
"SPHARA Settings");
87 this->setMinimumWidth(330);
88 this->setMaximumWidth(330);
109 QSettings settings(
"MNECPP");
121 QSettings settings(
"MNECPP");
129 case GuiMode::Clinical:
141 case ProcessingMode::Offline:
159 m_pUi->m_label_spharaFirst->show();
160 m_pUi->m_spinBox_spharaFirst->show();
162 m_pUi->m_label_spharaSecond->show();
163 m_pUi->m_spinBox_spharaSecond->show();
165 if(m_pUi->m_comboBox_spharaSystem->currentText() ==
"VectorView") {
166 m_pUi->m_label_spharaFirst->setText(
"Mag");
167 m_pUi->m_spinBox_spharaFirst->setMaximum(102);
169 m_pUi->m_label_spharaSecond->setText(
"Grad");
170 m_pUi->m_spinBox_spharaSecond->setMaximum(102);
173 if(m_pUi->m_comboBox_spharaSystem->currentText() ==
"BabyMEG") {
174 m_pUi->m_label_spharaFirst->setText(
"Inner layer");
175 m_pUi->m_spinBox_spharaFirst->setMaximum(270);
177 m_pUi->m_label_spharaSecond->setText(
"Outer layer");
178 m_pUi->m_spinBox_spharaSecond->setMaximum(105);
181 if(m_pUi->m_comboBox_spharaSystem->currentText() ==
"EEG") {
182 m_pUi->m_label_spharaFirst->setText(
"EEG");
183 m_pUi->m_spinBox_spharaFirst->setMaximum(256);
185 m_pUi->m_label_spharaSecond->hide();
186 m_pUi->m_spinBox_spharaSecond->hide();
190 m_pUi->m_spinBox_spharaFirst->value(),
191 m_pUi->m_spinBox_spharaSecond->value());