+ mSMIMEGrp = new QGroupBox(_("Enable the S/MIME support"));
+ mSMIMEGrp->setCheckable(true);
+ mSMIMEGrp->setAlignment(Qt::AlignLeft);
+
+ auto smimeLay = new QVBoxLayout(mSMIMEGrp);
+
+ mPreferSMIMEChk = new QCheckBox(_("Prefer S/MIME when autoresolving recipients"));
+ smimeLay->addWidget(mPreferSMIMEChk);
+
+ baseLay->addWidget(mSMIMEGrp);
+
+ // The general group
+ auto generalGrp = new QGroupBox(_("General"));
+ auto generalLay = new QVBoxLayout(generalGrp);
+ generalGrp->setAlignment(Qt::AlignLeft);
+ mAlwaysSigChk = new QCheckBox(_("&Sign new messages by default"));
+ mAlwaysEncChk = new QCheckBox(_("&Encrypt new messages by default"));
+
+ generalLay->addWidget(mAlwaysSigChk);
+ generalLay->addWidget(mAlwaysEncChk);
+
+ baseLay->addWidget(generalGrp);
+
+ // The automation checkboxes
+ mAutomationGrp = new QGroupBox(_("Automation"));
+ mAutomationGrp->setToolTip(_("Enable or disable any automated key handling."));
+ auto autoLayout = new QVBoxLayout(mAutomationGrp);
+ mAutomationGrp->setCheckable(true);
+
+ mAutoTrustChk = new QCheckBox(QStringLiteral("%1 (%2)").arg(_("Automate OpenPGP trust based on communication history")).arg(_("experimental")));
+ mAutoTrustChk->setToolTip(_("This changes the trust model to \"tofu+pgp\" which tracks the history of key usage. Automated trust can <b>never</b> exceed level 2."));
+
+ mAutoSecureChk = new QCheckBox(_("Automatically secure messages"));
+ mAutoSecureChk->setToolTip(_("Automatically toggles secure if keys with at least level 1 trust were found for all recipients."));