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