// super(parent);
// Recognition weight
QGroupBox weightGroup = new QGroupBox(tr("Recognition"));
QLabel weightLabel = new QLabel(tr("Minimum Recognition Weight"));
weightSpinner = new QSpinBox();
weightSpinner.setRange(1,100);
weightSpinner.setSingleStep(1);
weightSpinner.setValue(Global.getRecognitionWeight());
QHBoxLayout weightLayout = new QHBoxLayout();
weightLayout.addWidget(weightLabel);
weightLayout.addWidget(weightSpinner);
weightGroup.setLayout(weightLayout);
// Local attachment indexing
QGroupBox attachmentGroup = new QGroupBox(tr("Content"));
indexBody = new QCheckBox(tr("Index Note Body"));
indexBody.setChecked(Global.indexNoteBody());
indexTitle = new QCheckBox(tr("Index Note Title"));
indexTitle.setChecked(Global.indexNoteTitle());
indexAttachmentsLocally = new QCheckBox(tr("Index Attachments Locally"));
indexAttachmentsLocally.setChecked(Global.indexAttachmentsLocally());
indexImageRecognition = new QCheckBox(tr("Index Image Recognition"));
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();