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

- Main Page
- Related Pages
- Topics
- Namespaces
- Classes
- Files

- File List
- File Members

umluniqueconstraintdialog.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2003-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef UMLUNIQUECONSTRAINTDIALOG_H
7#define UMLUNIQUECONSTRAINTDIALOG_H
8
9//app includes
10#include "umlentityattributelist.h"
11
12//kde includes
13#include "singlepagedialogbase.h"
14
15 class KComboBox;
16 class QLineEdit;
17 class QGroupBox;
18 class QLabel;
19 class QListWidget;
20 class QPushButton;
21 class UMLUniqueConstraint;
22
30 class UMLUniqueConstraintDialog : public SinglePageDialogBase
31{
32 Q_OBJECT
33 public:
34 UMLUniqueConstraintDialog(QWidget* parent, UMLUniqueConstraint* pUniqueConstraint);
35 ~UMLUniqueConstraintDialog();
36
37 protected:
38 void setupDialog();
39
40 virtual bool apply();
41
42 private:
43 UMLUniqueConstraint *m_pUniqueConstraint;
44
45 // GUI Widgets
46 QGroupBox* m_pAttributeListGB;
47 QLabel* m_pNameL;
48 QLineEdit* m_pNameLE;
49 QListWidget* m_pAttributeListLW;
50 KComboBox* m_pAttributeCB;
51 QPushButton* m_pAddPB, *m_pRemovePB;
52
53 // local cache
54 UMLEntityAttributeList m_pEntityAttributeList;
55 UMLEntityAttributeList m_pConstraintAttributeList;
56
57 public slots:
58 void slotResetWidgetState();
59 void slotAddAttribute();
60 void slotDeleteAttribute();
61
62};
63
64#endif
SinglePageDialogBase
Definition singlepagedialogbase.h:23
UMLEntityAttributeList
Definition umlentityattributelist.h:20
UMLUniqueConstraintDialog
A dialog page to display unique constraint properties.
Definition umluniqueconstraintdialog.h:31
UMLUniqueConstraintDialog::m_pAttributeListLW
QListWidget * m_pAttributeListLW
Definition umluniqueconstraintdialog.h:49
UMLUniqueConstraintDialog::slotDeleteAttribute
void slotDeleteAttribute()
Definition umluniqueconstraintdialog.cpp:187
UMLUniqueConstraintDialog::m_pAddPB
QPushButton * m_pAddPB
Definition umluniqueconstraintdialog.h:51
UMLUniqueConstraintDialog::m_pUniqueConstraint
UMLUniqueConstraint * m_pUniqueConstraint
Definition umluniqueconstraintdialog.h:43
UMLUniqueConstraintDialog::m_pNameL
QLabel * m_pNameL
Definition umluniqueconstraintdialog.h:47
UMLUniqueConstraintDialog::m_pConstraintAttributeList
UMLEntityAttributeList m_pConstraintAttributeList
Definition umluniqueconstraintdialog.h:55
UMLUniqueConstraintDialog::m_pAttributeCB
KComboBox * m_pAttributeCB
Definition umluniqueconstraintdialog.h:50
UMLUniqueConstraintDialog::apply
virtual bool apply()
Definition umluniqueconstraintdialog.cpp:215
UMLUniqueConstraintDialog::m_pEntityAttributeList
UMLEntityAttributeList m_pEntityAttributeList
Definition umluniqueconstraintdialog.h:54
UMLUniqueConstraintDialog::slotAddAttribute
void slotAddAttribute()
Definition umluniqueconstraintdialog.cpp:156
UMLUniqueConstraintDialog::~UMLUniqueConstraintDialog
~UMLUniqueConstraintDialog()
Definition umluniqueconstraintdialog.cpp:52
UMLUniqueConstraintDialog::m_pNameLE
QLineEdit * m_pNameLE
Definition umluniqueconstraintdialog.h:48
UMLUniqueConstraintDialog::UMLUniqueConstraintDialog
UMLUniqueConstraintDialog(QWidget *parent, UMLUniqueConstraint *pUniqueConstraint)
Definition umluniqueconstraintdialog.cpp:41
UMLUniqueConstraintDialog::setupDialog
void setupDialog()
Definition umluniqueconstraintdialog.cpp:59
UMLUniqueConstraintDialog::m_pRemovePB
QPushButton * m_pRemovePB
Definition umluniqueconstraintdialog.h:51
UMLUniqueConstraintDialog::m_pAttributeListGB
QGroupBox * m_pAttributeListGB
Definition umluniqueconstraintdialog.h:46
UMLUniqueConstraintDialog::slotResetWidgetState
void slotResetWidgetState()
Definition umluniqueconstraintdialog.cpp:245
UMLUniqueConstraint
Sets up Unique entity constraint information.
Definition uniqueconstraint.h:24
singlepagedialogbase.h
umlentityattributelist.h