umbrello 26.03.70-f7b1fd3 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

classpropertiesdialog.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 CLASSPROPERTIESDIALOG_H
7#define CLASSPROPERTIESDIALOG_H
8
9#include "multipagedialogbase.h"
10
11 class ClassAssociationsPage;
12 class ClassGeneralPage;
13 class ClassifierListPage;
14 class ClassOptionsPage;
15 class ConstraintListPage;
16 class EntityWidget;
17 class PackageContentsPage;
18 class ObjectWidget;
19 class UMLDoc;
20 class UMLObject;
21 class UMLWidget;
22 class UMLWidgetStylePage;
23
29 class ClassPropertiesDialog : public MultiPageDialogBase
30{
31 Q_OBJECT
32 public:
33 ClassPropertiesDialog(QWidget *parent, UMLObject *c, bool assoc = false);
34 ClassPropertiesDialog(QWidget *parent, ObjectWidget * o);
35 ClassPropertiesDialog(QWidget *parent, UMLWidget * o);
36
37 ~ClassPropertiesDialog();
38
39 enum Page{page_gen = 0, page_att, page_op, page_entatt, page_constraint, page_template,
40 page_assoc, page_options, page_color, page_font};
41
42 virtual void apply();
43
44 protected Q_SLOTS:
45 void slotOk();
46 void slotApply();
47
48 protected:
49 void setupPages(bool assoc = false);
50 void setupGeneralPage();
51 void setupDisplayPage();
52 void setupAttributesPage();
53 void setupOperationsPage();
54 void setupTemplatesPage();
55 void setupEnumLiteralsPage();
56 void setupEntityDisplayPage(EntityWidget *widget);
57 void setupEntityAttributesPage();
58 void setupEntityConstraintsPage();
59 void setupContentsPage();
60 void setupAssociationsPage();
61 void setupInstancePages();
62
63 private:
64 ClassGeneralPage* m_pGenPage;
65 ClassifierListPage* m_pAttPage;
66 ClassifierListPage* m_pOpsPage;
67 ClassifierListPage* m_pTemplatePage;
68 ClassifierListPage* m_pEnumLiteralPage;
69 ClassifierListPage* m_pEntityAttributePage;
70 ConstraintListPage* m_pEntityConstraintPage;
71 PackageContentsPage* m_pPkgContentsPage;
72 ClassAssociationsPage* m_pAssocPage;
73 ClassOptionsPage* m_pOptionsPage;
74
75 UMLDoc* m_doc;
76 UMLObject* m_pObject;
77 UMLWidget* m_pWidget;
78
79 private:
80 void init();
81
82};
83
84#endif
ClassAssociationsPage
The page shows all the Associations that belong to a UMLClassifier.
Definition: classassociationspage.h:28
ClassGeneralPage
Display properties on a UMLObject.
Definition: classgeneralpage.h:41
ClassOptionsPage
A dialog page to display the class related options.
Definition: classoptionspage.h:35
ClassPropertiesDialog
Definition: classpropertiesdialog.h:30
ClassPropertiesDialog::setupGeneralPage
void setupGeneralPage()
Definition: classpropertiesdialog.cpp:237
ClassPropertiesDialog::apply
virtual void apply()
Definition: classpropertiesdialog.cpp:143
ClassPropertiesDialog::m_pOpsPage
ClassifierListPage * m_pOpsPage
Definition: classpropertiesdialog.h:66
ClassPropertiesDialog::m_pEntityAttributePage
ClassifierListPage * m_pEntityAttributePage
Definition: classpropertiesdialog.h:69
ClassPropertiesDialog::setupAttributesPage
void setupAttributesPage()
Definition: classpropertiesdialog.cpp:274
ClassPropertiesDialog::slotOk
void slotOk()
Definition: classpropertiesdialog.cpp:151
ClassPropertiesDialog::m_pTemplatePage
ClassifierListPage * m_pTemplatePage
Definition: classpropertiesdialog.h:67
ClassPropertiesDialog::m_pOptionsPage
ClassOptionsPage * m_pOptionsPage
Definition: classpropertiesdialog.h:73
ClassPropertiesDialog::setupEntityAttributesPage
void setupEntityAttributesPage()
Definition: classpropertiesdialog.cpp:314
ClassPropertiesDialog::slotApply
void slotApply()
Definition: classpropertiesdialog.cpp:160
ClassPropertiesDialog::m_pAssocPage
ClassAssociationsPage * m_pAssocPage
Definition: classpropertiesdialog.h:72
ClassPropertiesDialog::m_pEntityConstraintPage
ConstraintListPage * m_pEntityConstraintPage
Definition: classpropertiesdialog.h:70
ClassPropertiesDialog::m_pAttPage
ClassifierListPage * m_pAttPage
Definition: classpropertiesdialog.h:65
ClassPropertiesDialog::setupAssociationsPage
void setupAssociationsPage()
Definition: classpropertiesdialog.cpp:344
ClassPropertiesDialog::setupDisplayPage
void setupDisplayPage()
Definition: classpropertiesdialog.cpp:253
ClassPropertiesDialog::setupEntityConstraintsPage
void setupEntityConstraintsPage()
Definition: classpropertiesdialog.cpp:324
ClassPropertiesDialog::setupEntityDisplayPage
void setupEntityDisplayPage(EntityWidget *widget)
Definition: classpropertiesdialog.cpp:264
ClassPropertiesDialog::m_pGenPage
ClassGeneralPage * m_pGenPage
Definition: classpropertiesdialog.h:64
ClassPropertiesDialog::m_pWidget
UMLWidget * m_pWidget
Definition: classpropertiesdialog.h:77
ClassPropertiesDialog::m_pObject
UMLObject * m_pObject
Definition: classpropertiesdialog.h:76
ClassPropertiesDialog::m_pPkgContentsPage
PackageContentsPage * m_pPkgContentsPage
Definition: classpropertiesdialog.h:71
ClassPropertiesDialog::setupInstancePages
void setupInstancePages()
Definition: classpropertiesdialog.cpp:354
ClassPropertiesDialog::setupPages
void setupPages(bool assoc=false)
Definition: classpropertiesdialog.cpp:197
ClassPropertiesDialog::Page
Page
Definition: classpropertiesdialog.h:39
ClassPropertiesDialog::page_template
@ page_template
Definition: classpropertiesdialog.h:39
ClassPropertiesDialog::page_op
@ page_op
Definition: classpropertiesdialog.h:39
ClassPropertiesDialog::page_color
@ page_color
Definition: classpropertiesdialog.h:40
ClassPropertiesDialog::page_att
@ page_att
Definition: classpropertiesdialog.h:39
ClassPropertiesDialog::page_options
@ page_options
Definition: classpropertiesdialog.h:40
ClassPropertiesDialog::page_assoc
@ page_assoc
Definition: classpropertiesdialog.h:40
ClassPropertiesDialog::page_gen
@ page_gen
Definition: classpropertiesdialog.h:39
ClassPropertiesDialog::page_constraint
@ page_constraint
Definition: classpropertiesdialog.h:39
ClassPropertiesDialog::page_font
@ page_font
Definition: classpropertiesdialog.h:40
ClassPropertiesDialog::page_entatt
@ page_entatt
Definition: classpropertiesdialog.h:39
ClassPropertiesDialog::setupOperationsPage
void setupOperationsPage()
Definition: classpropertiesdialog.cpp:284
ClassPropertiesDialog::setupEnumLiteralsPage
void setupEnumLiteralsPage()
Definition: classpropertiesdialog.cpp:304
ClassPropertiesDialog::m_pEnumLiteralPage
ClassifierListPage * m_pEnumLiteralPage
Definition: classpropertiesdialog.h:68
ClassPropertiesDialog::~ClassPropertiesDialog
~ClassPropertiesDialog()
Definition: classpropertiesdialog.cpp:136
ClassPropertiesDialog::setupTemplatesPage
void setupTemplatesPage()
Definition: classpropertiesdialog.cpp:294
ClassPropertiesDialog::m_doc
UMLDoc * m_doc
Definition: classpropertiesdialog.h:75
ClassPropertiesDialog::init
void init()
Definition: classpropertiesdialog.cpp:117
ClassPropertiesDialog::setupContentsPage
void setupContentsPage()
Definition: classpropertiesdialog.cpp:334
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
EntityWidget
A graphical version of an entity.
Definition: entitywidget.h:25
MultiPageDialogBase
Definition: multipagedialogbase.h:47
ObjectWidget
Displays an instance of a Concept.
Definition: objectwidget.h:28
PackageContentsPage
The page shows all the objects that belong to a UMLPackage.
Definition: packagecontentspage.h:21
UMLDoc
Definition: umldoc.h:63
UMLObject
The base class for UML objects.
Definition: umlobject.h:70
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:36
UMLWidgetStylePage
Definition: umlwidgetstylepage.h:28
multipagedialogbase.h