indexImageRecognition.setChecked(Global.indexImageRecognition());
automaticWildcard = new QCheckBox(tr("Automatically Wildcard All Searches"));
automaticWildcard.setChecked(Global.automaticWildcardSearches());
specialStrip = new QLineEdit();
specialStrip.setText(Global.getSpecialIndexCharacters());
QVBoxLayout attachmentLayout = new QVBoxLayout();
attachmentLayout.addWidget(indexBody);
attachmentLayout.addWidget(indexTitle);
attachmentLayout.addWidget(indexAttachmentsLocally);
attachmentLayout.addWidget(indexImageRecognition);
attachmentLayout.addWidget(automaticWildcard);
QHBoxLayout specialCharLayout = new QHBoxLayout();
specialCharLayout.addWidget(new QLabel(tr("Special Word Characters")));
specialCharLayout.addWidget(specialStrip);
attachmentLayout.addLayout(specialCharLayout);
attachmentGroup.setLayout(attachmentLayout);
// Index sleep interval
QGroupBox sleepGroup = new QGroupBox(tr("Index Interval"));
QLabel sleepLabel = new QLabel(tr("Seconds between looking for unindexed notes"));
sleepSpinner = new QSpinBox();
sleepSpinner.setRange(30,600);
sleepSpinner.setSingleStep(1);
sleepSpinner.setValue(Global.getIndexThreadSleepInterval());
QHBoxLayout sleepLayout = new QHBoxLayout();
sleepLayout.addWidget(sleepLabel);
sleepLayout.addWidget(sleepSpinner);
sleepGroup.setLayout(sleepLayout);
// Regular Expressions for word parsing
QGroupBox regexGroup = new QGroupBox(tr("Word Parse"));
QLabel regexLabel = new QLabel(tr("Regular Expression"));
regexEdit = new QLineEdit();
regexEdit.setText(Global.getWordRegex());
QHBoxLayout regexLayout = new QHBoxLayout();
regexLayout.addWidget(regexLabel);
regexLayout.addWidget(regexEdit);