Debian Codegraph @

src/libs/widgets/ParameterSubstitutionDialog.h

raw
1 /* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 2019 Dag Andersen <[email protected]>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7 #ifndef PARAMETERSUBSTITUTIONPANEL_H
8 #define PARAMETERSUBSTITUTIONPANEL_H
9
10 #include <kowidgets_export.h>
11
12 #include "ui_ParameterSubstitutionPanel.h"
13
14 #include <KoDialog.h>
15
16 #include <QWidget>
17
18 namespace KPlato
19 {
20
21 class ParameterSubstitutionPanel : public QWidget
22 {
23 Q_OBJECT
24 public:
25 explicit ParameterSubstitutionPanel(const QStringList &parameters, QWidget *parent = nullptr);
26
27 Ui::ParameterSubstitutionPanel ui;
28 };
29
30 class KOWIDGETS_EXPORT ParameterSubstitutionDialog : public KoDialog
31 {
32 Q_OBJECT
33 public:
34 explicit ParameterSubstitutionDialog(const QStringList &parameters, QWidget *parent = nullptr);
35 QMap<QString, QString> parameters() const;
36
37 private:
38 ParameterSubstitutionPanel *m_panel;
39 };
40
41 } //KPlato namespace
42
43 #endif