239 if(QLayout* layout = this->layout()) {
243 QGridLayout* pGroupBoxArtifactRejection =
new QGridLayout();
244 this->setLayout(pGroupBoxArtifactRejection);
248 QStringList channelTypes;
256 channelTypes <<
"grad";
259 channelTypes <<
"mag";
261 if(kind ==
FIFFV_EEG_CH && !channelTypes.contains(
"eeg", Qt::CaseInsensitive)) {
262 channelTypes <<
"eeg";
264 if(kind ==
FIFFV_EOG_CH && !channelTypes.contains(
"eog", Qt::CaseInsensitive)) {
265 channelTypes <<
"eog";
267 if(kind ==
FIFFV_EMG_CH && !channelTypes.contains(
"emg", Qt::CaseInsensitive)) {
268 channelTypes <<
"emg";
270 if(kind ==
FIFFV_ECG_CH && !channelTypes.contains(
"ecg", Qt::CaseInsensitive)) {
271 channelTypes <<
"ecg";
275 if(!channelTypes.isEmpty()) {
282 for(
int i = 0; i < channelTypes.size(); ++i) {
283 QLabel* pLabel =
new QLabel(channelTypes.at(i));
284 pGroupBoxArtifactRejection->addWidget(pLabel,i+1,0);
286 QDoubleSpinBox* pDoubleSpinBox =
new QDoubleSpinBox();
287 pDoubleSpinBox->setPrefix(
"+/-");
288 pDoubleSpinBox->setMinimum(0.0);
289 pDoubleSpinBox->setMaximum(100000.0);
291 pGroupBoxArtifactRejection->addWidget(pDoubleSpinBox,i+1,1);
292 connect(pDoubleSpinBox,
static_cast<void (QDoubleSpinBox::*)(
double)
>(&QDoubleSpinBox::valueChanged),
296 QSpinBox* pSpinBox =
new QSpinBox();
297 pSpinBox->setPrefix(
"e");
298 pSpinBox->setMaximum(0);
299 pSpinBox->setMinimum(-10000);
301 pGroupBoxArtifactRejection->addWidget(pSpinBox,i+1,2);
302 connect(pSpinBox,
static_cast<void (QSpinBox::*)(
int)
>(&QSpinBox::valueChanged),
330 while (i.hasNext()) {
336 if(i.key().contains(
"grad", Qt::CaseInsensitive)) {
339 if(i.key().contains(
"mag", Qt::CaseInsensitive)) {
342 if(i.key().contains(
"eeg", Qt::CaseInsensitive)) {
345 if(i.key().contains(
"ecg", Qt::CaseInsensitive)) {
348 if(i.key().contains(
"eog", Qt::CaseInsensitive)) {
351 if(i.key().contains(
"emg", Qt::CaseInsensitive)) {