46 #include <QGridLayout>
50 #include <QMapIterator>
60 using namespace DISPLIB;
67 const QString &sSettingsPath,
73 this->setWindowTitle(
"Modality Selection");
74 this->setMinimumWidth(330);
75 this->setMaximumWidth(330);
78 for(
int i = 0; i < lChannelList.size(); ++i) {
125 QSettings settings(
"MNECPP");
155 QSettings settings(
"MNECPP");
157 bool flag = settings.value(
m_sSettingsPath + QString(
"/ModalitySelectionView/modalityMAG"),
true).toBool();
160 flag = settings.value(
m_sSettingsPath + QString(
"/ModalitySelectionView/modalityGRAD"),
true).toBool();
163 flag = settings.value(
m_sSettingsPath + QString(
"/ModalitySelectionView/modalityEEG"),
true).toBool();
166 flag = settings.value(
m_sSettingsPath + QString(
"/ModalitySelectionView/modalityEOG"),
true).toBool();
169 flag = settings.value(
m_sSettingsPath + QString(
"/ModalitySelectionView/modalitySTIM"),
true).toBool();
172 flag = settings.value(
m_sSettingsPath + QString(
"/ModalitySelectionView/modalityMISC"),
true).toBool();
181 case GuiMode::Clinical:
193 case ProcessingMode::Offline:
216 QGridLayout* topLayout =
static_cast<QGridLayout*
>(this->layout());
218 topLayout =
new QGridLayout();
222 while ((child = topLayout->takeAt(0)) != 0) {
223 delete child->widget();
230 while (i.hasNext()) {
234 QCheckBox* t_pCheckBoxModality =
new QCheckBox(i.key());
235 t_pCheckBoxModality->setChecked(i.value());
237 connect(t_pCheckBoxModality,&QCheckBox::stateChanged,
239 topLayout->addWidget(t_pCheckBoxModality,count,0);
245 this->setLayout(topLayout);