219 if(QLayout* layout = this->layout()) {
223 QGridLayout* pGroupBoxArtifactRejection =
new QGridLayout();
224 this->setLayout(pGroupBoxArtifactRejection);
228 QStringList channelTypes;
236 channelTypes <<
"grad";
239 channelTypes <<
"mag";
241 if(kind ==
FIFFV_EEG_CH && !channelTypes.contains(
"eeg", Qt::CaseInsensitive)) {
242 channelTypes <<
"eeg";
244 if(kind ==
FIFFV_EOG_CH && !channelTypes.contains(
"eog", Qt::CaseInsensitive)) {
245 channelTypes <<
"eog";
247 if(kind ==
FIFFV_EMG_CH && !channelTypes.contains(
"emg", Qt::CaseInsensitive)) {
248 channelTypes <<
"emg";
250 if(kind ==
FIFFV_ECG_CH && !channelTypes.contains(
"ecg", Qt::CaseInsensitive)) {
251 channelTypes <<
"ecg";
255 if(!channelTypes.isEmpty()) {
262 for(
int i = 0; i < channelTypes.size(); ++i) {
263 QLabel* pLabel =
new QLabel(channelTypes.at(i));
264 pGroupBoxArtifactRejection->addWidget(pLabel,i+1,0);
266 QDoubleSpinBox* pDoubleSpinBox =
new QDoubleSpinBox();
267 pDoubleSpinBox->setPrefix(
"+/-");
268 pDoubleSpinBox->setMinimum(0.0);
269 pDoubleSpinBox->setMaximum(100000.0);
271 pGroupBoxArtifactRejection->addWidget(pDoubleSpinBox,i+1,1);
272 connect(pDoubleSpinBox,
static_cast<void (QDoubleSpinBox::*)(
double)
>(&QDoubleSpinBox::valueChanged),
276 QSpinBox* pSpinBox =
new QSpinBox();
277 pSpinBox->setPrefix(
"e");
278 pSpinBox->setMaximum(0);
279 pSpinBox->setMinimum(-10000);
281 pGroupBoxArtifactRejection->addWidget(pSpinBox,i+1,2);
282 connect(pSpinBox,
static_cast<void (QSpinBox::*)(
int)
>(&QSpinBox::valueChanged),
310 while (i.hasNext()) {
316 if(i.key().contains(
"grad", Qt::CaseInsensitive)) {
319 if(i.key().contains(
"mag", Qt::CaseInsensitive)) {
322 if(i.key().contains(
"eeg", Qt::CaseInsensitive)) {
325 if(i.key().contains(
"ecg", Qt::CaseInsensitive)) {
328 if(i.key().contains(
"eog", Qt::CaseInsensitive)) {
331 if(i.key().contains(
"emg", Qt::CaseInsensitive)) {