1 /*
2     SPDX-License-Identifier: GPL-2.0-or-later
3 
4     SPDX-FileCopyrightText: 2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
5 */
6 
7 #ifndef STEREOATTRIBUTEDIALOG_H
8 #define STEREOATTRIBUTEDIALOG_H
9 
10 #include "singlepagedialogbase.h"
11 #include "n_stereoattrs.h"
12 
13 class QGroupBox;
14 class QLabel;
15 class KLineEdit;
16 class QComboBox;
17 class UMLStereotype;
18 
19 /**
20  * @author Oliver Kellogg
21  * Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org
22  */
23 class StereoAttributeDialog : public SinglePageDialogBase
24 {
25     Q_OBJECT
26 public:
27     StereoAttributeDialog(QWidget *parent, UMLStereotype *stereotype);
28     virtual ~StereoAttributeDialog();
29 
30 protected:
31     void setupDialog();
32     bool apply();
33 
34     /**
35      * The Stereotype to represent
36      */
37     UMLStereotype *m_pStereotype;
38 
39     //GUI Widgets
40     QGroupBox * m_pValuesGB;
41     QLabel    * m_pNameLabel        [N_STEREOATTRS];
42     KLineEdit * m_pNameEdit         [N_STEREOATTRS];
43     QLabel    * m_pTypeLabel        [N_STEREOATTRS];
44     QComboBox * m_pTypeCombo        [N_STEREOATTRS];
45     QLabel    * m_pDefaultValueLabel[N_STEREOATTRS];
46     KLineEdit * m_pDefaultValueEdit [N_STEREOATTRS];
47 
48 };
49 
50 #endif
51