File indexing completed on 2024-11-17 04:44:13
0001 /* 0002 SPDX-FileCopyrightText: 2017-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "externalcomposerconfiguredialog.h" 0008 #include "externalcomposerconfigurewidget.h" 0009 #include <KLocalizedString> 0010 0011 ExternalComposerConfigureDialog::ExternalComposerConfigureDialog(QWidget *parent) 0012 : PimCommon::ConfigurePluginDialog(parent) 0013 { 0014 setWindowTitle(i18nc("@title:window", "Configure \"External Composer\" Plugin")); 0015 initLayout(); 0016 } 0017 0018 ExternalComposerConfigureDialog::~ExternalComposerConfigureDialog() = default; 0019 0020 QWidget *ExternalComposerConfigureDialog::createLayout() 0021 { 0022 mConfigureWidget = new ExternalComposerConfigureWidget(this); 0023 mConfigureWidget->setObjectName(QLatin1StringView("configurewidget")); 0024 return mConfigureWidget; 0025 } 0026 0027 void ExternalComposerConfigureDialog::save() 0028 { 0029 mConfigureWidget->saveSettings(); 0030 } 0031 0032 void ExternalComposerConfigureDialog::load() 0033 { 0034 mConfigureWidget->loadSettings(); 0035 } 0036 0037 void ExternalComposerConfigureDialog::reset() 0038 { 0039 mConfigureWidget->resetSettings(); 0040 } 0041 0042 void ExternalComposerConfigureDialog::help() 0043 { 0044 showHelp(QStringLiteral("kmail2"), mConfigureWidget->helpAnchor()); 0045 } 0046 0047 #include "moc_externalcomposerconfiguredialog.cpp"