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

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
17 class KAction;
18 class KMenu;
19#else
20 class QAction;
21 class QMenu;
22#endif
23
31 class ConstraintListPage : public ClassifierListPage
32{
33 Q_OBJECT
34 public:
35
36 ConstraintListPage(QWidget* parent, UMLClassifier* classifier,
37 UMLDoc* doc, UMLObject::ObjectType type);
38 virtual ~ConstraintListPage();
39
40 private:
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
55 private slots:
56
57 void slotNewUniqueConstraint();
58 void slotNewPrimaryKeyConstraint();
59 void slotNewForeignKeyConstraint();
60 void slotNewCheckConstraint();
61 virtual UMLClassifierListItemList getItemList();
62
63 protected:
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:145
ConstraintListPage::ConstraintListPage
ConstraintListPage(QWidget *parent, UMLClassifier *classifier, UMLDoc *doc, UMLObject::ObjectType type)
Definition: constraintlistpage.cpp:48
ConstraintListPage::buttonMenu
KMenu * buttonMenu
Definition: constraintlistpage.h:70
ConstraintListPage::slotNewPrimaryKeyConstraint
void slotNewPrimaryKeyConstraint()
Definition: constraintlistpage.cpp:121
ConstraintListPage::setupActions
void setupActions()
Definition: constraintlistpage.cpp:77
ConstraintListPage::newCheckConstraintAction
KAction * newCheckConstraintAction
Definition: constraintlistpage.h:51
ConstraintListPage::slotNewUniqueConstraint
void slotNewUniqueConstraint()
Definition: constraintlistpage.cpp:112
ConstraintListPage::getItemList
virtual UMLClassifierListItemList getItemList()
Definition: constraintlistpage.cpp:267
ConstraintListPage::newForeignKeyConstraintAction
KAction * newForeignKeyConstraintAction
Definition: constraintlistpage.h:50
ConstraintListPage::slotNewCheckConstraint
void slotNewCheckConstraint()
Definition: constraintlistpage.cpp:154
ConstraintListPage::newPrimaryKeyConstraintAction
KAction * newPrimaryKeyConstraintAction
Definition: constraintlistpage.h:49
ConstraintListPage::~ConstraintListPage
virtual ~ConstraintListPage()
Definition: constraintlistpage.cpp:73
ConstraintListPage::newUniqueConstraintAction
KAction * newUniqueConstraintAction
Definition: constraintlistpage.h:48
ConstraintListPage::greaterThan
bool greaterThan(UMLObject::ObjectType ct1, UMLObject::ObjectType ct2)
Definition: constraintlistpage.cpp:237
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