umbrello 26.03.70-1a62d36 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

umlentityattributedialog.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2002-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef UMLENTITYATTRIBUTEDIALOG_H
7#define UMLENTITYATTRIBUTEDIALOG_H
8
9#include "singlepagedialogbase.h"
10
11 class DefaultValueWidget;
12 class QCheckBox;
13 class QGroupBox;
14 class QLabel;
15 class QRadioButton;
16 class UMLDatatypeWidget;
17 class UMLEntityAttribute;
18 class UMLStereotypeWidget;
19 class KComboBox;
20 class QLineEdit;
21
26 class UMLEntityAttributeDialog : public SinglePageDialogBase
27{
28 Q_OBJECT
29 public:
30 UMLEntityAttributeDialog(QWidget* pParent, UMLEntityAttribute* pEntityAttribute);
31 ~UMLEntityAttributeDialog();
32
33 protected:
34
35 void setupDialog();
36
37 virtual bool apply();
38
39 void insertAttribute(const QString& type, int index = -1);
40
44 UMLEntityAttribute * m_pEntityAttribute;
45
46 //GUI Widgets
47 QGroupBox * m_pAttsGB, * m_pValuesGB;
48 QGroupBox * m_pScopeGB;
49 QRadioButton * m_pPublicRB, * m_pPrivateRB, * m_pProtectedRB, * m_pNoneRB;
50 QLabel * m_pNameL, * m_pInitialL, * m_pValuesL, * m_pAttributesL ;
51 KComboBox * m_pAttributesCB;
52 QLineEdit * m_pNameLE, * m_pInitialLE, * m_pValuesLE;
53 QCheckBox* m_pAutoIncrementCB;
54 QCheckBox* m_pNullCB;
55 UMLDatatypeWidget *m_datatypeWidget;
56 UMLStereotypeWidget *m_stereotypeWidget;
57 DefaultValueWidget *m_defaultValueWidget;
58
59 public Q_SLOTS:
60 void slotAutoIncrementStateChanged(bool checked);
61 void slotNameChanged(const QString &);
62};
63
64#endif
DefaultValueWidget
Definition: defaultvaluewidget.h:26
SinglePageDialogBase
Definition: singlepagedialogbase.h:23
UMLDatatypeWidget
Definition: umldatatypewidget.h:19
UMLEntityAttributeDialog
Definition: umlentityattributedialog.h:27
UMLEntityAttributeDialog::m_pNullCB
QCheckBox * m_pNullCB
Definition: umlentityattributedialog.h:54
UMLEntityAttributeDialog::m_defaultValueWidget
DefaultValueWidget * m_defaultValueWidget
Definition: umlentityattributedialog.h:57
UMLEntityAttributeDialog::apply
virtual bool apply()
Definition: umlentityattributedialog.cpp:159
UMLEntityAttributeDialog::m_pScopeGB
QGroupBox * m_pScopeGB
Definition: umlentityattributedialog.h:48
UMLEntityAttributeDialog::m_pInitialL
QLabel * m_pInitialL
Definition: umlentityattributedialog.h:50
UMLEntityAttributeDialog::m_pValuesLE
QLineEdit * m_pValuesLE
Definition: umlentityattributedialog.h:52
UMLEntityAttributeDialog::m_pAttributesCB
KComboBox * m_pAttributesCB
Definition: umlentityattributedialog.h:51
UMLEntityAttributeDialog::m_stereotypeWidget
UMLStereotypeWidget * m_stereotypeWidget
Definition: umlentityattributedialog.h:56
UMLEntityAttributeDialog::setupDialog
void setupDialog()
Definition: umlentityattributedialog.cpp:55
UMLEntityAttributeDialog::insertAttribute
void insertAttribute(const QString &type, int index=-1)
Definition: umlentityattributedialog.cpp:205
UMLEntityAttributeDialog::m_datatypeWidget
UMLDatatypeWidget * m_datatypeWidget
Definition: umlentityattributedialog.h:55
UMLEntityAttributeDialog::m_pNoneRB
QRadioButton * m_pNoneRB
Definition: umlentityattributedialog.h:49
UMLEntityAttributeDialog::~UMLEntityAttributeDialog
~UMLEntityAttributeDialog()
Definition: umlentityattributedialog.cpp:48
UMLEntityAttributeDialog::m_pValuesGB
QGroupBox * m_pValuesGB
Definition: umlentityattributedialog.h:47
UMLEntityAttributeDialog::m_pAttsGB
QGroupBox * m_pAttsGB
Definition: umlentityattributedialog.h:47
UMLEntityAttributeDialog::m_pAutoIncrementCB
QCheckBox * m_pAutoIncrementCB
Definition: umlentityattributedialog.h:53
UMLEntityAttributeDialog::m_pInitialLE
QLineEdit * m_pInitialLE
Definition: umlentityattributedialog.h:52
UMLEntityAttributeDialog::slotNameChanged
void slotNameChanged(const QString &)
Definition: umlentityattributedialog.cpp:150
UMLEntityAttributeDialog::m_pPrivateRB
QRadioButton * m_pPrivateRB
Definition: umlentityattributedialog.h:49
UMLEntityAttributeDialog::m_pValuesL
QLabel * m_pValuesL
Definition: umlentityattributedialog.h:50
UMLEntityAttributeDialog::m_pPublicRB
QRadioButton * m_pPublicRB
Definition: umlentityattributedialog.h:49
UMLEntityAttributeDialog::m_pAttributesL
QLabel * m_pAttributesL
Definition: umlentityattributedialog.h:50
UMLEntityAttributeDialog::slotAutoIncrementStateChanged
void slotAutoIncrementStateChanged(bool checked)
Definition: umlentityattributedialog.cpp:214
UMLEntityAttributeDialog::m_pProtectedRB
QRadioButton * m_pProtectedRB
Definition: umlentityattributedialog.h:49
UMLEntityAttributeDialog::m_pEntityAttribute
UMLEntityAttribute * m_pEntityAttribute
Definition: umlentityattributedialog.h:44
UMLEntityAttributeDialog::m_pNameLE
QLineEdit * m_pNameLE
Definition: umlentityattributedialog.h:52
UMLEntityAttributeDialog::m_pNameL
QLabel * m_pNameL
Definition: umlentityattributedialog.h:50
UMLEntityAttribute
Sets up entityattribute information.
Definition: umlentityattribute.h:21
UMLStereotypeWidget
Definition: umlstereotypewidget.h:15
singlepagedialogbase.h