umbrello: umbrello/dialogs/umluniqueconstraintdialog.h Source File

umbrello 25.04.0 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 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
15class KComboBox;
16class QLineEdit;
17class QGroupBox;
18class QLabel;
19class QListWidget;
20class QPushButton;
21class UMLUniqueConstraint;
22
30 class UMLUniqueConstraintDialog : public SinglePageDialogBase
31{
32 Q_OBJECT
33public:
34 UMLUniqueConstraintDialog(QWidget* parent, UMLUniqueConstraint* pUniqueConstraint);
35 ~UMLUniqueConstraintDialog();
36
37protected:
38 void setupDialog();
39
40 virtual bool apply();
41
42private:
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;
56public Q_SLOTS:
57 void slotResetWidgetState();
58 void slotAddAttribute();
59 void slotDeleteAttribute();
60
61};
62
63#endif
SinglePageDialogBase::SinglePageDialogBase
SinglePageDialogBase(QWidget *parent, bool withApplyButton=false, bool withSearchButton=false)
Definition singlepagedialogbase.cpp:23
UMLEntityAttributeList
Definition umlentityattributelist.h:20
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