umbrello: umbrello/dialogs/pages/constraintlistpage.h Source File

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

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

- File List
- File Members

constraintlistpage.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 CONSTRAINTLISTPAGE_H
7#define CONSTRAINTLISTPAGE_H
8
9//app includes
10#include "umlclassifierlistitemlist.h"
11#include "classifierlistpage.h"
12
13//qt includes
14#include <QWidget>
15
16#if QT_VERSION < 0x050000
17class KAction;
18class KMenu;
19#else
20class QAction;
21class QMenu;
22#endif
23
31 class ConstraintListPage : public ClassifierListPage
32{
33 Q_OBJECT
34public:
35
36 ConstraintListPage(QWidget* parent, UMLClassifier* classifier,
37 UMLDoc* doc, UMLObject::ObjectType type);
38 virtual ~ConstraintListPage();
39
40private:
41
42#if QT_VERSION >= 0x050000
43 QAction* newUniqueConstraintAction;
44 QAction* newPrimaryKeyConstraintAction;
45 QAction* newForeignKeyConstraintAction;
46 QAction* newCheckConstraintAction;
47#else
48 KAction* newUniqueConstraintAction;
49 KAction* newPrimaryKeyConstraintAction;
50 KAction* newForeignKeyConstraintAction;
51 KAction* newCheckConstraintAction;
52#endif
53 void setupActions();
54
55private slots:
56
57 void slotNewUniqueConstraint();
58 void slotNewPrimaryKeyConstraint();
59 void slotNewForeignKeyConstraint();
60 void slotNewCheckConstraint();
61 virtual UMLClassifierListItemList getItemList();
62
63protected:
64
65 bool greaterThan(UMLObject::ObjectType ct1, UMLObject::ObjectType ct2);
66
67#if QT_VERSION >= 0x050000
68 QMenu* buttonMenu;
69#else
70 KMenu* buttonMenu;
71#endif
72
73};
74
75#endif
ClassifierListPage
A dialog page to display classifier properties.
Definition: classifierlistpage.h:35
ConstraintListPage
An extension to the classifier list dialog page to display constraint properties.
Definition: constraintlistpage.h:32
ConstraintListPage::slotNewForeignKeyConstraint
void slotNewForeignKeyConstraint()
Definition: constraintlistpage.cpp:147
ConstraintListPage::buttonMenu
KMenu * buttonMenu
Definition: constraintlistpage.h:70
ConstraintListPage::slotNewPrimaryKeyConstraint
void slotNewPrimaryKeyConstraint()
Definition: constraintlistpage.cpp:122
ConstraintListPage::setupActions
void setupActions()
Definition: constraintlistpage.cpp:78
ConstraintListPage::newCheckConstraintAction
KAction * newCheckConstraintAction
Definition: constraintlistpage.h:51
ConstraintListPage::slotNewUniqueConstraint
void slotNewUniqueConstraint()
Definition: constraintlistpage.cpp:113
ConstraintListPage::getItemList
virtual UMLClassifierListItemList getItemList()
Definition: constraintlistpage.cpp:269
ConstraintListPage::newForeignKeyConstraintAction
KAction * newForeignKeyConstraintAction
Definition: constraintlistpage.h:50
ConstraintListPage::slotNewCheckConstraint
void slotNewCheckConstraint()
Definition: constraintlistpage.cpp:156
ConstraintListPage::newPrimaryKeyConstraintAction
KAction * newPrimaryKeyConstraintAction
Definition: constraintlistpage.h:49
ConstraintListPage::~ConstraintListPage
virtual ~ConstraintListPage()
Definition: constraintlistpage.cpp:74
ConstraintListPage::newUniqueConstraintAction
KAction * newUniqueConstraintAction
Definition: constraintlistpage.h:48
ConstraintListPage::greaterThan
bool greaterThan(UMLObject::ObjectType ct1, UMLObject::ObjectType ct2)
Definition: constraintlistpage.cpp:239
UMLClassifierListItemList
Definition: umlclassifierlistitemlist.h:22
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:35
UMLDoc
Definition: umldoc.h:70
UMLObject::ObjectType
ObjectType
Definition: umlobject.h:76
classifierlistpage.h
umlclassifierlistitemlist.h