File indexing completed on 2025-02-16 04:49:30

0001 /*
0002    SPDX-FileCopyrightText: 2016-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #include "checkbeforesendconfiguredialog.h"
0008 #include "checkbeforesendconfigurewidget.h"
0009 #include <KLocalizedString>
0010 
0011 CheckBeforeSendConfigureDialog::CheckBeforeSendConfigureDialog(QWidget *parent)
0012     : PimCommon::ConfigurePluginDialog(parent)
0013 {
0014     setWindowTitle(i18nc("@title:window", "Configure \"Check Before Send Mail\" Plugin"));
0015     initLayout();
0016 }
0017 
0018 CheckBeforeSendConfigureDialog::~CheckBeforeSendConfigureDialog() = default;
0019 
0020 QWidget *CheckBeforeSendConfigureDialog::createLayout()
0021 {
0022     mConfigureWidget = new CheckBeforeSendConfigureWidget(this);
0023     return mConfigureWidget;
0024 }
0025 
0026 void CheckBeforeSendConfigureDialog::save()
0027 {
0028     mConfigureWidget->saveSettings();
0029 }
0030 
0031 void CheckBeforeSendConfigureDialog::load()
0032 {
0033     mConfigureWidget->loadSettings();
0034 }
0035 
0036 void CheckBeforeSendConfigureDialog::reset()
0037 {
0038     mConfigureWidget->resetSettings();
0039 }
0040 
0041 void CheckBeforeSendConfigureDialog::help()
0042 {
0043     showHelp(QStringLiteral("kmail2"), mConfigureWidget->helpAnchor());
0044 }
0045 
0046 #include "moc_checkbeforesendconfiguredialog.cpp"