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

umluniqueconstraintdialog.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) 2003-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef UMLUNIQUECONSTRAINTDIALOG_H
12 #define UMLUNIQUECONSTRAINTDIALOG_H
13
14 //app includes
15 #include "umlentityattributelist.h"
16
17 //kde includes
18 #include "singlepagedialogbase.h"
19
20 class KComboBox;
21 class KLineEdit;
22 class QGroupBox;
23 class QLabel;
24 class QListWidget;
25 class QPushButton;
26 class UMLUniqueConstraint;
27
35 class UMLUniqueConstraintDialog : public SinglePageDialogBase
36 {
37 Q_OBJECT
38 public:
39 UMLUniqueConstraintDialog(QWidget* parent, UMLUniqueConstraint* pUniqueConstraint);
40 ~UMLUniqueConstraintDialog();
41
42 protected:
43 void setupDialog();
44
45 virtual bool apply();
46
47 private:
48 UMLUniqueConstraint *m_pUniqueConstraint;
49
50 // GUI Widgets
51 QGroupBox* m_pAttributeListGB;
52 QLabel* m_pNameL;
53 KLineEdit* m_pNameLE;
54 QListWidget* m_pAttributeListLW;
55 KComboBox* m_pAttributeCB;
56 QPushButton* m_pAddPB, *m_pRemovePB;
57
58 // local cache
59 UMLEntityAttributeList m_pEntityAttributeList;
60 UMLEntityAttributeList m_pConstraintAttributeList;
61
62 public slots:
63 void slotResetWidgetState();
64 void slotAddAttribute();
65 void slotDeleteAttribute();
66
67 };
68
69 #endif
UMLEntity
Non-graphical Information for an Entity.
Definition: entity.h:35
template.h
umluniqueconstraintdialog.h
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
entity.h
operation.h
UMLUniqueConstraintDialog::m_pNameL
QLabel * m_pNameL
Definition: umluniqueconstraintdialog.h:52
UMLUniqueConstraintDialog::m_pEntityAttributeList
UMLEntityAttributeList m_pEntityAttributeList
Definition: umluniqueconstraintdialog.h:59
object_factory.h
UMLUniqueConstraintDialog::slotResetWidgetState
void slotResetWidgetState()
Definition: umluniqueconstraintdialog.cpp:259
Uml::SignatureType::SigNoVis
@ SigNoVis
Definition: basictypes.h:165
UMLObject::emitModified
void emitModified()
Definition: umlobject.cpp:385
UMLObject::umlParent
UMLObject * umlParent() const
Definition: umlobject.cpp:671
UMLObject::setName
virtual void setName(const QString &strName)
Definition: umlobject.cpp:192
SinglePageDialogBase
Definition: singlepagedialogbase.h:36
singlepagedialogbase.h
UMLUniqueConstraintDialog::m_pConstraintAttributeList
UMLEntityAttributeList m_pConstraintAttributeList
Definition: umluniqueconstraintdialog.h:60
UMLUniqueConstraintDialog::m_pAttributeListLW
QListWidget * m_pAttributeListLW
Definition: umluniqueconstraintdialog.h:54
UMLObject::asUMLEntityAttribute
UMLEntityAttribute * asUMLEntityAttribute()
Definition: umlobject.cpp:1314
UMLObject::asUMLEntity
UMLEntity * asUMLEntity()
Definition: umlobject.cpp:1313
UMLUniqueConstraint::clearAttributeList
void clearAttributeList()
Definition: uniqueconstraint.cpp:323
UMLUniqueConstraintDialog::m_pNameLE
KLineEdit * m_pNameLE
Definition: umluniqueconstraintdialog.h:53
classifierlistitem.h
entityattribute.h
UMLUniqueConstraintDialog::m_pRemovePB
QPushButton * m_pRemovePB
Definition: umluniqueconstraintdialog.h:56
UMLUniqueConstraintDialog::m_pUniqueConstraint
UMLUniqueConstraint * m_pUniqueConstraint
Definition: umluniqueconstraintdialog.h:48
umlentityattributelist.h
attribute.h
UMLUniqueConstraintDialog
A dialog page to display unique constraint properties.
Definition: umluniqueconstraintdialog.h:36
UMLUniqueConstraintDialog::slotAddAttribute
void slotAddAttribute()
Definition: umluniqueconstraintdialog.cpp:170
UMLUniqueConstraintDialog::slotDeleteAttribute
void slotDeleteAttribute()
Definition: umluniqueconstraintdialog.cpp:201
i18n
#define i18n
Definition: main.cpp:39
UMLObject::ot_EntityAttribute
@ ot_EntityAttribute
Definition: umlobject.h:102
uDebug
#define uDebug()
Definition: debug_utils.h:122
UMLUniqueConstraintDialog::setupDialog
void setupDialog()
Definition: umluniqueconstraintdialog.cpp:65
UMLUniqueConstraintDialog::m_pAddPB
QPushButton * m_pAddPB
Definition: umluniqueconstraintdialog.h:56
UMLEntity::getFilteredList
UMLClassifierListItemList getFilteredList(UMLObject::ObjectType ot) const
Definition: entity.cpp:645
UMLClassifierListItem::toString
virtual QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig, bool withStereotype=false)
Definition: classifierlistitem.cpp:90
MyProject\connect
connect()
Definition: namespaces-multiple.php:5
UMLEntityAttributeList
Definition: umlentityattributelist.h:26
UMLUniqueConstraint::addEntityAttribute
bool addEntityAttribute(UMLEntityAttribute *attr)
Definition: uniqueconstraint.cpp:245
UMLUniqueConstraintDialog::apply
virtual bool apply()
Definition: umluniqueconstraintdialog.cpp:229
UMLClassifierListItemList
Definition: umlclassifierlistitemlist.h:27
classifier.h
UMLUniqueConstraintDialog::~UMLUniqueConstraintDialog
~UMLUniqueConstraintDialog()
Definition: umluniqueconstraintdialog.cpp:58
uniqueconstraint.h
uml.h
enumliteral.h
UMLUniqueConstraintDialog::m_pAttributeCB
KComboBox * m_pAttributeCB
Definition: umluniqueconstraintdialog.h:55
debug_utils.h
UMLUniqueConstraint::getEntityAttributeList
UMLEntityAttributeList getEntityAttributeList() const
Definition: uniqueconstraint.cpp:310
UMLUniqueConstraintDialog::UMLUniqueConstraintDialog
UMLUniqueConstraintDialog(QWidget *parent, UMLUniqueConstraint *pUniqueConstraint)
Definition: umluniqueconstraintdialog.cpp:47
UMLEntityAttribute::toString
QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig, bool withStereotype=false)
Definition: entityattribute.cpp:166
UMLEntityAttribute
Sets up entityattribute information.
Definition: entityattribute.h:26
UMLUniqueConstraintDialog::m_pAttributeListGB
QGroupBox * m_pAttributeListGB
Definition: umluniqueconstraintdialog.h:51
UMLClassifierListItem
A base class for classifier list items (e.g. attributes)
Definition: classifierlistitem.h:30
umldoc.h
UMLUniqueConstraint
Sets up Unique entity constraint information.
Definition: uniqueconstraint.h:29
enum.h