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
UMLEntityAttributeDialog::m_pAttsGB
QGroupBox * m_pAttsGB
Definition: umlentityattributedialog.h:52
UMLEntityAttribute::None
@ None
Definition: entityattribute.h:32
UMLObject::asUMLClassifier
UMLClassifier * asUMLClassifier()
Definition: umlobject.cpp:1309
UMLEntityAttributeDialog::UMLEntityAttributeDialog
UMLEntityAttributeDialog(QWidget *pParent, UMLEntityAttribute *pEntityAttribute)
Definition: umlentityattributedialog.cpp:45
UMLEntityAttributeDialog::insertAttribute
void insertAttribute(const QString &type, int index=-1)
Definition: umlentityattributedialog.cpp:213
defaultvaluewidget.h
UMLEntityAttributeDialog::m_pNoneRB
QRadioButton * m_pNoneRB
Definition: umlentityattributedialog.h:54
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
UMLEntityAttributeDialog::m_defaultValueWidget
DefaultValueWidget * m_defaultValueWidget
Definition: umlentityattributedialog.h:62
UMLDatatypeWidget::apply
bool apply()
Definition: umldatatypewidget.cpp:103
UMLEntityAttribute::setNull
void setNull(const bool null)
Definition: entityattribute.cpp:156
UMLEntityAttributeDialog::m_pNullCB
QCheckBox * m_pNullCB
Definition: umlentityattributedialog.h:59
UMLEntityAttributeDialog::m_pNameLE
KLineEdit * m_pNameLE
Definition: umlentityattributedialog.h:57
UMLClassifierListItem::getType
UMLClassifier * getType() const
Definition: classifierlistitem.cpp:102
UMLAttribute::getInitialValue
QString getInitialValue() const
Definition: attribute.cpp:99
UMLEntityAttribute::setAttributes
void setAttributes(const QString &attributes)
Definition: entityattribute.cpp:84
UMLEntityAttributeDialog::m_pInitialL
QLabel * m_pInitialL
Definition: umlentityattributedialog.h:55
object_factory.h
UMLEntityAttributeDialog::m_pNameL
QLabel * m_pNameL
Definition: umlentityattributedialog.h:55
umlentityattributedialog.h
UMLObject::umlParent
UMLObject * umlParent() const
Definition: umlobject.cpp:671
UMLEntityAttributeDialog::slotNameChanged
void slotNameChanged(const QString &)
Definition: umlentityattributedialog.cpp:158
SinglePageDialogBase
Definition: singlepagedialogbase.h:36
umldatatypewidget.h
Dialog_Utils::makeLabeledEditField
KLineEdit * makeLabeledEditField(QGridLayout *layout, int row, QLabel *&label, const QString &labelText, KLineEdit *&editField, const QString &editFieldText, int columnOffset)
Definition: dialog_utils.cpp:52
UMLAttribute::setName
void setName(const QString &name)
Definition: attribute.cpp:76
singlepagedialogbase.h
UMLEntityAttributeDialog
Definition: umlentityattributedialog.h:32
UMLEntityAttributeDialog::setupDialog
void setupDialog()
Definition: umlentityattributedialog.cpp:60
UMLEntityAttribute::getAttributes
QString getAttributes() const
Definition: entityattribute.cpp:75
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
UMLEntityAttributeDialog::m_pAttributesCB
KComboBox * m_pAttributesCB
Definition: umlentityattributedialog.h:56
UMLEntityAttributeDialog::m_pAutoIncrementCB
QCheckBox * m_pAutoIncrementCB
Definition: umlentityattributedialog.h:58
UMLEntityAttribute::DBIndex_Type
DBIndex_Type
Definition: entityattribute.h:31
UMLEntityAttribute::getValues
QString getValues() const
Definition: entityattribute.cpp:93
UMLEntityAttribute::getNull
bool getNull() const
Definition: entityattribute.cpp:147
UMLAttribute::setInitialValue
void setInitialValue(const QString &iv)
Definition: attribute.cpp:109
UMLEntityAttributeDialog::m_pPublicRB
QRadioButton * m_pPublicRB
Definition: umlentityattributedialog.h:54
UMLStereotypeWidget::apply
void apply()
Definition: umlstereotypewidget.cpp:48
entityattribute.h
UMLEntityAttributeDialog::m_pInitialLE
KLineEdit * m_pInitialLE
Definition: umlentityattributedialog.h:57
UMLEntityAttributeDialog::m_pProtectedRB
QRadioButton * m_pProtectedRB
Definition: umlentityattributedialog.h:54
DefaultValueWidget
Definition: defaultvaluewidget.h:31
UMLEntityAttribute::getAutoIncrement
bool getAutoIncrement() const
Definition: entityattribute.cpp:111
i18n
#define i18n
Definition: main.cpp:39
umlclassifierlist.h
UMLEntityAttributeDialog::slotAutoIncrementStateChanged
void slotAutoIncrementStateChanged(bool checked)
Definition: umlentityattributedialog.cpp:222
UMLEntityAttribute::setValues
void setValues(const QString &values)
Definition: entityattribute.cpp:102
DefaultValueWidget::value
QString value() const
Definition: defaultvaluewidget.cpp:164
UMLEntityAttribute::setAutoIncrement
void setAutoIncrement(const bool autoIncrement)
Definition: entityattribute.cpp:120
ComboBoxWidgetBase::addToLayout
void addToLayout(QGridLayout *layout, int row, int startColumn=0)
Definition: comboboxwidgetbase.cpp:51
MyProject\connect
connect()
Definition: namespaces-multiple.php:5
UMLEntityAttributeDialog::m_pPrivateRB
QRadioButton * m_pPrivateRB
Definition: umlentityattributedialog.h:54
UMLDatatypeWidget
Definition: umldatatypewidget.h:24
UMLStereotypeWidget
Definition: umlstereotypewidget.h:20
UMLCanvasObject::findChildObject
virtual UMLObject * findChildObject(const QString &n, UMLObject::ObjectType t=UMLObject::ot_UMLObject)
Definition: umlcanvasobject.cpp:238
UMLEntityAttribute::setIndexType
void setIndexType(const DBIndex_Type indexType)
Definition: entityattribute.cpp:138
UMLEntityAttributeDialog::apply
virtual bool apply()
Definition: umlentityattributedialog.cpp:167
UMLEntityAttribute::Index
@ Index
Definition: entityattribute.h:34
classifier.h
UMLEntityAttributeDialog::~UMLEntityAttributeDialog
~UMLEntityAttributeDialog()
Definition: umlentityattributedialog.cpp:53
uml.h
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
UMLEntityAttributeDialog::m_pValuesLE
KLineEdit * m_pValuesLE
Definition: umlentityattributedialog.h:57
umlstereotypewidget.h
UMLEntityAttributeDialog::m_pValuesL
QLabel * m_pValuesL
Definition: umlentityattributedialog.h:55
codegenerator.h
DefaultValueWidget::addToLayout
void addToLayout(QGridLayout *layout, int row)
Definition: defaultvaluewidget.cpp:153
dialog_utils.h
UMLEntityAttribute
Sets up entityattribute information.
Definition: entityattribute.h:26
UMLEntityAttributeDialog::m_pValuesGB
QGroupBox * m_pValuesGB
Definition: umlentityattributedialog.h:52
UMLEntityAttributeDialog::m_pScopeGB
QGroupBox * m_pScopeGB
Definition: umlentityattributedialog.h:53
UMLEntityAttributeDialog::m_datatypeWidget
UMLDatatypeWidget * m_datatypeWidget
Definition: umlentityattributedialog.h:60
umldoc.h
UMLEntityAttributeDialog::m_pEntityAttribute
UMLEntityAttribute * m_pEntityAttribute
Definition: umlentityattributedialog.h:49
UMLEntityAttributeDialog::m_stereotypeWidget
UMLStereotypeWidget * m_stereotypeWidget
Definition: umlentityattributedialog.h:61
UMLEntityAttribute::indexType
DBIndex_Type indexType() const
Definition: entityattribute.cpp:129
UMLEntityAttributeDialog::m_pAttributesL
QLabel * m_pAttributesL
Definition: umlentityattributedialog.h:55