46 #include <QGridLayout>
58 using namespace DISPLIB;
59 using namespace FIFFLIB;
69 , m_pEnableDisableProjectors(Q_NULLPTR)
72 this->setWindowTitle(
"Projectors");
73 this->setMinimumWidth(330);
74 this->setMaximumWidth(330);
100 for(
int i = 0; i <
m_pProjs.size(); ++i) {
101 if(!m_mapProjActive.contains(
m_pProjs.at(i).desc)) {
122 QGridLayout *topLayout =
new QGridLayout;
124 bool bAllActivated =
true;
129 QCheckBox* checkBox =
new QCheckBox(
m_pProjs.at(i).desc);
131 if(
m_pProjs.at(i).active ==
false) {
132 bAllActivated =
false;
137 connect(checkBox, &QCheckBox::toggled,
140 checkBox->setChecked(
m_pProjs.at(i).active);
142 topLayout->addWidget(checkBox, i, 0);
145 QFrame* line =
new QFrame();
146 line->setFrameShape(QFrame::HLine);
147 line->setFrameShadow(QFrame::Sunken);
149 topLayout->addWidget(line, i+1, 0);
157 this->setLayout(topLayout);
170 QSettings settings(
"MNECPP");
172 settings.beginGroup(
m_sSettingsPath + QString(
"/ProjectorsView/projectorsActive"));
174 QMap<QString,bool>::const_iterator iProj = m_mapProjActive.constBegin();
175 while (iProj != m_mapProjActive.constEnd()) {
176 settings.setValue(iProj.key(), iProj.value());
191 QSettings settings(
"MNECPP");
193 settings.beginGroup(
m_sSettingsPath + QString(
"/ProjectorsView/projectorsActive"));
195 QStringList keys = settings.childKeys();
196 foreach (QString key, keys) {
197 m_mapProjActive[key] = settings.value(key).toBool();
207 case GuiMode::Clinical:
219 case ProcessingMode::Offline:
236 for(
int i = 0; i <
m_pProjs.size(); ++i) {
238 m_mapProjActive[
m_pProjs.at(i).desc] = status;
255 bool bAllActivated =
true;
259 bAllActivated =
false;