umbrello: umbrello/dialogs/umluniqueconstraintdialog.h Source File

umbrello 2.32.1 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
SinglePageDialogBase
Definition: singlepagedialogbase.h:36
UMLEntityAttributeList
Definition: umlentityattributelist.h:26
UMLUniqueConstraintDialog
A dialog page to display unique constraint properties.
Definition: umluniqueconstraintdialog.h:36
UMLUniqueConstraintDialog::m_pAttributeListLW
QListWidget * m_pAttributeListLW
Definition: umluniqueconstraintdialog.h:54
UMLUniqueConstraintDialog::slotDeleteAttribute
void slotDeleteAttribute()
Definition: umluniqueconstraintdialog.cpp:201
UMLUniqueConstraintDialog::m_pAddPB
QPushButton * m_pAddPB
Definition: umluniqueconstraintdialog.h:56
UMLUniqueConstraintDialog::m_pUniqueConstraint
UMLUniqueConstraint * m_pUniqueConstraint
Definition: umluniqueconstraintdialog.h:48
UMLUniqueConstraintDialog::m_pNameL
QLabel * m_pNameL
Definition: umluniqueconstraintdialog.h:52
UMLUniqueConstraintDialog::m_pConstraintAttributeList
UMLEntityAttributeList m_pConstraintAttributeList
Definition: umluniqueconstraintdialog.h:60
UMLUniqueConstraintDialog::m_pAttributeCB
KComboBox * m_pAttributeCB
Definition: umluniqueconstraintdialog.h:55
UMLUniqueConstraintDialog::apply
virtual bool apply()
Definition: umluniqueconstraintdialog.cpp:229
UMLUniqueConstraintDialog::m_pEntityAttributeList
UMLEntityAttributeList m_pEntityAttributeList
Definition: umluniqueconstraintdialog.h:59
UMLUniqueConstraintDialog::slotAddAttribute
void slotAddAttribute()
Definition: umluniqueconstraintdialog.cpp:170
UMLUniqueConstraintDialog::~UMLUniqueConstraintDialog
~UMLUniqueConstraintDialog()
Definition: umluniqueconstraintdialog.cpp:58
UMLUniqueConstraintDialog::UMLUniqueConstraintDialog
UMLUniqueConstraintDialog(QWidget *parent, UMLUniqueConstraint *pUniqueConstraint)
Definition: umluniqueconstraintdialog.cpp:47
UMLUniqueConstraintDialog::setupDialog
void setupDialog()
Definition: umluniqueconstraintdialog.cpp:65
UMLUniqueConstraintDialog::m_pRemovePB
QPushButton * m_pRemovePB
Definition: umluniqueconstraintdialog.h:56
UMLUniqueConstraintDialog::m_pAttributeListGB
QGroupBox * m_pAttributeListGB
Definition: umluniqueconstraintdialog.h:51
UMLUniqueConstraintDialog::slotResetWidgetState
void slotResetWidgetState()
Definition: umluniqueconstraintdialog.cpp:259
UMLUniqueConstraintDialog::m_pNameLE
KLineEdit * m_pNameLE
Definition: umluniqueconstraintdialog.h:53
UMLUniqueConstraint
Sets up Unique entity constraint information.
Definition: uniqueconstraint.h:29
singlepagedialogbase.h
umlentityattributelist.h