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

umbrello 2.38.1 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-2022 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
16class QAction;
17class QMenu;
18
26 class ConstraintListPage : public ClassifierListPage
27{
28 Q_OBJECT
29public:
30
31 ConstraintListPage(QWidget* parent, UMLClassifier* classifier,
32 UMLDoc* doc, UMLObject::ObjectType type);
33 virtual ~ConstraintListPage();
34
35private:
36
37 QAction* newUniqueConstraintAction;
38 QAction* newPrimaryKeyConstraintAction;
39 QAction* newForeignKeyConstraintAction;
40 QAction* newCheckConstraintAction;
41 void setupActions();
42
43private slots:
44
45 void slotNewUniqueConstraint();
46 void slotNewPrimaryKeyConstraint();
47 void slotNewForeignKeyConstraint();
48 void slotNewCheckConstraint();
49 virtual UMLClassifierListItemList getItemList();
50
51protected:
52
53 bool greaterThan(UMLObject::ObjectType ct1, UMLObject::ObjectType ct2);
54
55 QMenu* buttonMenu;
56
57};
58
59#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:27
ConstraintListPage::slotNewForeignKeyConstraint
void slotNewForeignKeyConstraint()
Definition: constraintlistpage.cpp:116
ConstraintListPage::newUniqueConstraintAction
QAction * newUniqueConstraintAction
Definition: constraintlistpage.h:37
ConstraintListPage::newPrimaryKeyConstraintAction
QAction * newPrimaryKeyConstraintAction
Definition: constraintlistpage.h:38
ConstraintListPage::slotNewPrimaryKeyConstraint
void slotNewPrimaryKeyConstraint()
Definition: constraintlistpage.cpp:91
ConstraintListPage::setupActions
void setupActions()
Definition: constraintlistpage.cpp:63
ConstraintListPage::slotNewUniqueConstraint
void slotNewUniqueConstraint()
Definition: constraintlistpage.cpp:82
ConstraintListPage::getItemList
virtual UMLClassifierListItemList getItemList()
Definition: constraintlistpage.cpp:238
ConstraintListPage::newForeignKeyConstraintAction
QAction * newForeignKeyConstraintAction
Definition: constraintlistpage.h:39
ConstraintListPage::buttonMenu
QMenu * buttonMenu
Definition: constraintlistpage.h:55
ConstraintListPage::slotNewCheckConstraint
void slotNewCheckConstraint()
Definition: constraintlistpage.cpp:125
ConstraintListPage::newCheckConstraintAction
QAction * newCheckConstraintAction
Definition: constraintlistpage.h:40
ConstraintListPage::~ConstraintListPage
virtual ~ConstraintListPage()
Definition: constraintlistpage.cpp:59
ConstraintListPage::greaterThan
bool greaterThan(UMLObject::ObjectType ct1, UMLObject::ObjectType ct2)
Definition: constraintlistpage.cpp:208
UMLClassifierListItemList
Definition: umlclassifierlistitemlist.h:22
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:35
UMLDoc
Definition: umldoc.h:63
UMLObject::ObjectType
ObjectType
Definition: umlobject.h:76
classifierlistpage.h
umlclassifierlistitemlist.h