Mailcommon

snippetvariabledialog.h
1/*
2 SPDX-FileCopyrightText: 2010 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.net>
3 SPDX-FileContributor: Tobias Koenig <tokoe@kdab.com>
4
5 SPDX-FileCopyrightText: 2019-2024 Laurent Montel <montel@kde.org>
6
7 SPDX-License-Identifier: LGPL-2.0-or-later
8*/
9
10#pragma once
11
12#include <QDialog>
13
14class QCheckBox;
15namespace TextCustomEditor
16{
17class PlainTextEditorWidget;
18}
19namespace MailCommon
20{
21class SnippetVariableDialog : public QDialog
22{
24
25public:
26 explicit SnippetVariableDialog(const QString &variableName, QMap<QString, QString> *variables, QWidget *parent = nullptr);
27 ~SnippetVariableDialog() override;
28
29 [[nodiscard]] QString variableValue() const;
30 [[nodiscard]] bool saveVariableIsChecked() const;
31
32private:
33 void writeConfig();
34 void readConfig();
35 void slotAccepted();
36 const QString mVariableName;
37 QMap<QString, QString> *mVariables = nullptr;
38 TextCustomEditor::PlainTextEditorWidget *const mVariableValueText;
39 QCheckBox *mSaveVariable = nullptr;
40};
41}
The filter dialog.
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:00:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.