Pimcommon

templateeditdialog.h
1/*
2 SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include <QDialog>
10
11class QLineEdit;
12namespace TextCustomEditor
13{
14class PlainTextEditorWidget;
15}
16namespace PimCommon
17{
18class TemplateEditDialog : public QDialog
19{
21public:
22 explicit TemplateEditDialog(QWidget *parent = nullptr, bool defaultTemplate = false);
23 ~TemplateEditDialog() override;
24
25 void setTemplateName(const QString &name);
26 [[nodiscard]] QString templateName() const;
27
28 void setScript(const QString &);
29 [[nodiscard]] QString script() const;
30
31private:
32 void slotTemplateChanged();
33 void readConfig();
34 void writeConfig();
36 QLineEdit *const mTemplateNameEdit;
37 QPushButton *mOkButton = nullptr;
38};
39}
folderdialogacltab.h
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:02:55 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.