1 /*
2     SPDX-License-Identifier: GPL-3.0-or-later
3 
4     SPDX-FileCopyrightText: 2015 Tzvetelin Katchov <katchov@gmail.com>
5     SPDX-FileCopyrightText: 2002-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
6 */
7 
8 #ifndef UMLENUMLITERALDIALOG_H
9 #define UMLENUMLITERALDIALOG_H
10 
11 #include "singlepagedialogbase.h"
12 
13 class QGroupBox;
14 class QLabel;
15 class UMLEnumLiteral;
16 class KLineEdit;
17 
18 /**
19  * @author Tzvetelin Katchov
20  * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org
21  */
22 class UMLEnumLiteralDialog : public SinglePageDialogBase
23 {
24     Q_OBJECT
25 public:
26     UMLEnumLiteralDialog(QWidget * pParent, UMLEnumLiteral * pEnumLiteral);
27     ~UMLEnumLiteralDialog();
28 
29 protected:
30 
31     void setupDialog();
32 
33     bool apply();
34 
35     /**
36      *   The EnumLiteral to represent
37      */
38     UMLEnumLiteral * m_pEnumLiteral;
39 
40     //GUI Widgets
41     QGroupBox * m_pValuesGB;
42     QLabel * m_pNameL, * m_pValueL;
43     KLineEdit * m_pNameLE, * m_pValueLE;
44 
45 public slots:
46     void slotNameChanged(const QString &);
47 };
48 
49 #endif
50