umbrello: umbrello/dialogs/umlentityattributedialog.h Source File

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

umlentityattributedialog.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 UMLENTITYATTRIBUTEDIALOG_H
12 #define UMLENTITYATTRIBUTEDIALOG_H
13
14 #include "singlepagedialogbase.h"
15
16 class DefaultValueWidget;
17 class QCheckBox;
18 class QGroupBox;
19 class QLabel;
20 class QRadioButton;
21 class UMLDatatypeWidget;
22 class UMLEntityAttribute;
23 class UMLStereotypeWidget;
24 class KComboBox;
25 class KLineEdit;
26
31 class UMLEntityAttributeDialog : public SinglePageDialogBase
32 {
33 Q_OBJECT
34 public:
35 UMLEntityAttributeDialog(QWidget* pParent, UMLEntityAttribute* pEntityAttribute);
36 ~UMLEntityAttributeDialog();
37
38 protected:
39
40 void setupDialog();
41
42 virtual bool apply();
43
44 void insertAttribute(const QString& type, int index = -1);
45
49 UMLEntityAttribute * m_pEntityAttribute;
50
51 //GUI Widgets
52 QGroupBox * m_pAttsGB, * m_pValuesGB;
53 QGroupBox * m_pScopeGB;
54 QRadioButton * m_pPublicRB, * m_pPrivateRB, * m_pProtectedRB, * m_pNoneRB;
55 QLabel * m_pNameL, * m_pInitialL, * m_pValuesL, * m_pAttributesL ;
56 KComboBox * m_pAttributesCB;
57 KLineEdit * m_pNameLE, * m_pInitialLE, * m_pValuesLE;
58 QCheckBox* m_pAutoIncrementCB;
59 QCheckBox* m_pNullCB;
60 UMLDatatypeWidget *m_datatypeWidget;
61 UMLStereotypeWidget *m_stereotypeWidget;
62 DefaultValueWidget *m_defaultValueWidget;
63
64 public slots:
65 void slotAutoIncrementStateChanged(bool checked);
66 void slotNameChanged(const QString &);
67 };
68
69 #endif
DefaultValueWidget
Definition: defaultvaluewidget.h:31
SinglePageDialogBase
Definition: singlepagedialogbase.h:36
UMLDatatypeWidget
Definition: umldatatypewidget.h:24
UMLEntityAttributeDialog
Definition: umlentityattributedialog.h:32
UMLEntityAttributeDialog::m_pNullCB
QCheckBox * m_pNullCB
Definition: umlentityattributedialog.h:59
UMLEntityAttributeDialog::m_defaultValueWidget
DefaultValueWidget * m_defaultValueWidget
Definition: umlentityattributedialog.h:62
UMLEntityAttributeDialog::apply
virtual bool apply()
Definition: umlentityattributedialog.cpp:167
UMLEntityAttributeDialog::m_pScopeGB
QGroupBox * m_pScopeGB
Definition: umlentityattributedialog.h:53
UMLEntityAttributeDialog::m_pInitialL
QLabel * m_pInitialL
Definition: umlentityattributedialog.h:55
UMLEntityAttributeDialog::m_pInitialLE
KLineEdit * m_pInitialLE
Definition: umlentityattributedialog.h:57
UMLEntityAttributeDialog::m_pAttributesCB
KComboBox * m_pAttributesCB
Definition: umlentityattributedialog.h:56
UMLEntityAttributeDialog::m_stereotypeWidget
UMLStereotypeWidget * m_stereotypeWidget
Definition: umlentityattributedialog.h:61
UMLEntityAttributeDialog::setupDialog
void setupDialog()
Definition: umlentityattributedialog.cpp:60
UMLEntityAttributeDialog::insertAttribute
void insertAttribute(const QString &type, int index=-1)
Definition: umlentityattributedialog.cpp:213
UMLEntityAttributeDialog::m_datatypeWidget
UMLDatatypeWidget * m_datatypeWidget
Definition: umlentityattributedialog.h:60
UMLEntityAttributeDialog::m_pNoneRB
QRadioButton * m_pNoneRB
Definition: umlentityattributedialog.h:54
UMLEntityAttributeDialog::UMLEntityAttributeDialog
UMLEntityAttributeDialog(QWidget *pParent, UMLEntityAttribute *pEntityAttribute)
Definition: umlentityattributedialog.cpp:45
UMLEntityAttributeDialog::~UMLEntityAttributeDialog
~UMLEntityAttributeDialog()
Definition: umlentityattributedialog.cpp:53
UMLEntityAttributeDialog::m_pValuesLE
KLineEdit * m_pValuesLE
Definition: umlentityattributedialog.h:57
UMLEntityAttributeDialog::m_pValuesGB
QGroupBox * m_pValuesGB
Definition: umlentityattributedialog.h:52
UMLEntityAttributeDialog::m_pAttsGB
QGroupBox * m_pAttsGB
Definition: umlentityattributedialog.h:52
UMLEntityAttributeDialog::m_pAutoIncrementCB
QCheckBox * m_pAutoIncrementCB
Definition: umlentityattributedialog.h:58
UMLEntityAttributeDialog::m_pNameLE
KLineEdit * m_pNameLE
Definition: umlentityattributedialog.h:57
UMLEntityAttributeDialog::slotNameChanged
void slotNameChanged(const QString &)
Definition: umlentityattributedialog.cpp:158
UMLEntityAttributeDialog::m_pPrivateRB
QRadioButton * m_pPrivateRB
Definition: umlentityattributedialog.h:54
UMLEntityAttributeDialog::m_pValuesL
QLabel * m_pValuesL
Definition: umlentityattributedialog.h:55
UMLEntityAttributeDialog::m_pPublicRB
QRadioButton * m_pPublicRB
Definition: umlentityattributedialog.h:54
UMLEntityAttributeDialog::m_pAttributesL
QLabel * m_pAttributesL
Definition: umlentityattributedialog.h:55
UMLEntityAttributeDialog::slotAutoIncrementStateChanged
void slotAutoIncrementStateChanged(bool checked)
Definition: umlentityattributedialog.cpp:222
UMLEntityAttributeDialog::m_pProtectedRB
QRadioButton * m_pProtectedRB
Definition: umlentityattributedialog.h:54
UMLEntityAttributeDialog::m_pEntityAttribute
UMLEntityAttribute * m_pEntityAttribute
Definition: umlentityattributedialog.h:49
UMLEntityAttributeDialog::m_pNameL
QLabel * m_pNameL
Definition: umlentityattributedialog.h:55
UMLEntityAttribute
Sets up entityattribute information.
Definition: entityattribute.h:26
UMLStereotypeWidget
Definition: umlstereotypewidget.h:20
singlepagedialogbase.h