umbrello: umbrello/dialogs/umlentityattributedialog.h Source File

umbrello 2.37.3 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
11class DefaultValueWidget;
12class QCheckBox;
13class QGroupBox;
14class QLabel;
15class QRadioButton;
16class UMLDatatypeWidget;
17class UMLEntityAttribute;
18class UMLStereotypeWidget;
19class KComboBox;
20class KLineEdit;
21
26 class UMLEntityAttributeDialog : public SinglePageDialogBase
27{
28 Q_OBJECT
29public:
30 UMLEntityAttributeDialog(QWidget* pParent, UMLEntityAttribute* pEntityAttribute);
31 ~UMLEntityAttributeDialog();
32
33protected:
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 KLineEdit * 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
59public slots:
60 void slotAutoIncrementStateChanged(bool checked);
61 void slotNameChanged(const QString &);
62};
63
64#endif
DefaultValueWidget
Definition: defaultvaluewidget.h:26
SinglePageDialogBase
Definition: singlepagedialogbase.h:31
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:162
UMLEntityAttributeDialog::m_pScopeGB
QGroupBox * m_pScopeGB
Definition: umlentityattributedialog.h:48
UMLEntityAttributeDialog::m_pInitialL
QLabel * m_pInitialL
Definition: umlentityattributedialog.h:50
UMLEntityAttributeDialog::m_pInitialLE
KLineEdit * m_pInitialLE
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:208
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_pValuesLE
KLineEdit * m_pValuesLE
Definition: umlentityattributedialog.h:52
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_pNameLE
KLineEdit * m_pNameLE
Definition: umlentityattributedialog.h:52
UMLEntityAttributeDialog::slotNameChanged
void slotNameChanged(const QString &)
Definition: umlentityattributedialog.cpp:153
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:217
UMLEntityAttributeDialog::m_pProtectedRB
QRadioButton * m_pProtectedRB
Definition: umlentityattributedialog.h:49
UMLEntityAttributeDialog::m_pEntityAttribute
UMLEntityAttribute * m_pEntityAttribute
Definition: umlentityattributedialog.h:44
UMLEntityAttributeDialog::m_pNameL
QLabel * m_pNameL
Definition: umlentityattributedialog.h:50
UMLEntityAttribute
Sets up entityattribute information.
Definition: entityattribute.h:21
UMLStereotypeWidget
Definition: umlstereotypewidget.h:15
singlepagedialogbase.h