umbrello: umbrello/dialogs/umlattributedialog.h Source File

umbrello 2.32.1 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

umlattributedialog.h
Go to the documentation of this file.
1 /***************************************************************************
2 * This program is free software; you can redistribute it and/or modify *
3 * it under the terms of the GNU General Public License as published by *
4 * the Free Software Foundation; either version 2 of the License, or *
5 * (at your option) any later version. *
6 * *
7 * copyright (C) 2002-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef UMLATTRIBUTEDIALOG_H
12 #define UMLATTRIBUTEDIALOG_H
13
14 #include "singlepagedialogbase.h"
15 #include "n_stereoattrs.h"
16
17 class DocumentationWidget;
18 class QCheckBox;
19 class QGridLayout;
20 class QGroupBox;
21 class QRadioButton;
22 class QLabel;
23 class UMLObject;
24 class UMLAttribute;
25 class KLineEdit;
26 class UMLDatatypeWidget;
27 class UMLStereotypeWidget;
28 class VisibilityEnumWidget;
29
34 class UMLAttributeDialog : public SinglePageDialogBase
35 {
36 Q_OBJECT
37 public:
38 UMLAttributeDialog(QWidget * pParent, UMLAttribute * pAttribute);
39 ~UMLAttributeDialog();
40
41 protected:
42 void setupDialog();
43 bool apply();
44
48 UMLAttribute * m_pAttribute;
49
50 //GUI Widgets
51 QGridLayout * m_pValuesLayout;
52 QGroupBox * m_pValuesGB;
53 QLabel * m_pNameL, * m_pInitialL;
54 KLineEdit * m_pNameLE, * m_pInitialLE;
55 QCheckBox* m_pStaticCB;
56 UMLDatatypeWidget *m_datatypeWidget;
57 UMLStereotypeWidget *m_stereotypeWidget;
58 QLabel *m_pTagL [N_STEREOATTRS];
59 KLineEdit *m_pTagLE[N_STEREOATTRS];
60 VisibilityEnumWidget *m_visibilityEnumWidget;
61 DocumentationWidget *m_docWidget;
62
63 public slots:
64 void slotNameChanged(const QString &);
65 void slotStereoTextChanged(const QString &);
66 };
67
68 #endif
DocumentationWidget
Definition: documentationwidget.h:27
SinglePageDialogBase
Definition: singlepagedialogbase.h:36
UMLAttributeDialog
Definition: umlattributedialog.h:35
UMLAttributeDialog::m_pNameL
QLabel * m_pNameL
Definition: umlattributedialog.h:53
UMLAttributeDialog::apply
bool apply()
Definition: umlattributedialog.cpp:124
UMLAttributeDialog::m_datatypeWidget
UMLDatatypeWidget * m_datatypeWidget
Definition: umlattributedialog.h:56
UMLAttributeDialog::m_pStaticCB
QCheckBox * m_pStaticCB
Definition: umlattributedialog.h:55
UMLAttributeDialog::m_pTagLE
KLineEdit * m_pTagLE[N_STEREOATTRS]
Definition: umlattributedialog.h:59
UMLAttributeDialog::m_pValuesGB
QGroupBox * m_pValuesGB
Definition: umlattributedialog.h:52
UMLAttributeDialog::m_pInitialLE
KLineEdit * m_pInitialLE
Definition: umlattributedialog.h:54
UMLAttributeDialog::m_pInitialL
QLabel * m_pInitialL
Definition: umlattributedialog.h:53
UMLAttributeDialog::m_pValuesLayout
QGridLayout * m_pValuesLayout
Definition: umlattributedialog.h:51
UMLAttributeDialog::~UMLAttributeDialog
~UMLAttributeDialog()
Definition: umlattributedialog.cpp:57
UMLAttributeDialog::m_pAttribute
UMLAttribute * m_pAttribute
Definition: umlattributedialog.h:48
UMLAttributeDialog::UMLAttributeDialog
UMLAttributeDialog(QWidget *pParent, UMLAttribute *pAttribute)
Definition: umlattributedialog.cpp:45
UMLAttributeDialog::m_pNameLE
KLineEdit * m_pNameLE
Definition: umlattributedialog.h:54
UMLAttributeDialog::m_stereotypeWidget
UMLStereotypeWidget * m_stereotypeWidget
Definition: umlattributedialog.h:57
UMLAttributeDialog::m_docWidget
DocumentationWidget * m_docWidget
Definition: umlattributedialog.h:61
UMLAttributeDialog::m_pTagL
QLabel * m_pTagL[N_STEREOATTRS]
Definition: umlattributedialog.h:58
UMLAttributeDialog::slotNameChanged
void slotNameChanged(const QString &)
Definition: umlattributedialog.cpp:110
UMLAttributeDialog::slotStereoTextChanged
void slotStereoTextChanged(const QString &)
Definition: umlattributedialog.cpp:115
UMLAttributeDialog::setupDialog
void setupDialog()
Definition: umlattributedialog.cpp:64
UMLAttributeDialog::m_visibilityEnumWidget
VisibilityEnumWidget * m_visibilityEnumWidget
Definition: umlattributedialog.h:60
UMLAttribute
Sets up attribute information.
Definition: attribute.h:28
UMLDatatypeWidget
Definition: umldatatypewidget.h:24
UMLObject
The base class for UML objects.
Definition: umlobject.h:75
UMLStereotypeWidget
Definition: umlstereotypewidget.h:20
VisibilityEnumWidget
Definition: visibilityenumwidget.h:27
n_stereoattrs.h
N_STEREOATTRS
#define N_STEREOATTRS
Definition: n_stereoattrs.h:15
singlepagedialogbase.h