umbrello: umbrello/dialogs/classpropertiesdialog.h Source File

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

classpropertiesdialog.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 CLASSPROPERTIESDIALOG_H
12 #define CLASSPROPERTIESDIALOG_H
13
14 #include "multipagedialogbase.h"
15
16 class ClassAssociationsPage;
17 class ClassGeneralPage;
18 class ClassifierListPage;
19 class ClassOptionsPage;
20 class ConstraintListPage;
21 class EntityWidget;
22 class PackageContentsPage;
23 class ObjectWidget;
24 class UMLDoc;
25 class UMLObject;
26 class UMLWidget;
27 class UMLWidgetStylePage;
28
34 class ClassPropertiesDialog : public MultiPageDialogBase
35 {
36 Q_OBJECT
37 public:
38 ClassPropertiesDialog(QWidget *parent, UMLObject *c, bool assoc = false);
39 ClassPropertiesDialog(QWidget *parent, ObjectWidget * o);
40 ClassPropertiesDialog(QWidget *parent, UMLWidget * o);
41
42 ~ClassPropertiesDialog();
43
44 enum Page{page_gen = 0, page_att, page_op, page_entatt, page_constraint, page_template,
45 page_assoc, page_options, page_color, page_font};
46
47 virtual void apply();
48
49 protected slots:
50 void slotOk();
51 void slotApply();
52
53 protected:
54 void setupPages(bool assoc = false);
55 void setupGeneralPage();
56 void setupDisplayPage();
57 void setupAttributesPage();
58 void setupOperationsPage();
59 void setupTemplatesPage();
60 void setupEnumLiteralsPage();
61 void setupEntityDisplayPage(EntityWidget *widget);
62 void setupEntityAttributesPage();
63 void setupEntityConstraintsPage();
64 void setupContentsPage();
65 void setupAssociationsPage();
66 void setupInstancePages();
67
68 private:
69 ClassGeneralPage* m_pGenPage;
70 ClassifierListPage* m_pAttPage;
71 ClassifierListPage* m_pOpsPage;
72 ClassifierListPage* m_pTemplatePage;
73 ClassifierListPage* m_pEnumLiteralPage;
74 ClassifierListPage* m_pEntityAttributePage;
75 ConstraintListPage* m_pEntityConstraintPage;
76 PackageContentsPage* m_pPkgContentsPage;
77 ClassAssociationsPage* m_pAssocPage;
78 ClassOptionsPage* m_pOptionsPage;
79
80 UMLDoc* m_doc;
81 UMLObject* m_pObject;
82 UMLWidget* m_pWidget;
83
84 private:
85 void init();
86
87 };
88
89 #endif
ClassAssociationsPage
The page shows all the Associations that belong to a UMLClassifier.
Definition: classassociationspage.h:33
ClassGeneralPage
Display properties on a UMLObject.
Definition: classgeneralpage.h:46
ClassOptionsPage
A dialog page to display the class related options.
Definition: classoptionspage.h:40
ClassPropertiesDialog
Definition: classpropertiesdialog.h:35
ClassPropertiesDialog::setupGeneralPage
void setupGeneralPage()
Definition: classpropertiesdialog.cpp:242
ClassPropertiesDialog::apply
virtual void apply()
Definition: classpropertiesdialog.cpp:148
ClassPropertiesDialog::m_pOpsPage
ClassifierListPage * m_pOpsPage
Definition: classpropertiesdialog.h:71
ClassPropertiesDialog::m_pEntityAttributePage
ClassifierListPage * m_pEntityAttributePage
Definition: classpropertiesdialog.h:74
ClassPropertiesDialog::ClassPropertiesDialog
ClassPropertiesDialog(QWidget *parent, UMLObject *c, bool assoc=false)
Definition: classpropertiesdialog.cpp:46
ClassPropertiesDialog::setupAttributesPage
void setupAttributesPage()
Definition: classpropertiesdialog.cpp:279
ClassPropertiesDialog::slotOk
void slotOk()
Definition: classpropertiesdialog.cpp:156
ClassPropertiesDialog::m_pTemplatePage
ClassifierListPage * m_pTemplatePage
Definition: classpropertiesdialog.h:72
ClassPropertiesDialog::m_pOptionsPage
ClassOptionsPage * m_pOptionsPage
Definition: classpropertiesdialog.h:78
ClassPropertiesDialog::setupEntityAttributesPage
void setupEntityAttributesPage()
Definition: classpropertiesdialog.cpp:319
ClassPropertiesDialog::slotApply
void slotApply()
Definition: classpropertiesdialog.cpp:165
ClassPropertiesDialog::m_pAssocPage
ClassAssociationsPage * m_pAssocPage
Definition: classpropertiesdialog.h:77
ClassPropertiesDialog::m_pEntityConstraintPage
ConstraintListPage * m_pEntityConstraintPage
Definition: classpropertiesdialog.h:75
ClassPropertiesDialog::m_pAttPage
ClassifierListPage * m_pAttPage
Definition: classpropertiesdialog.h:70
ClassPropertiesDialog::setupAssociationsPage
void setupAssociationsPage()
Definition: classpropertiesdialog.cpp:349
ClassPropertiesDialog::setupDisplayPage
void setupDisplayPage()
Definition: classpropertiesdialog.cpp:258
ClassPropertiesDialog::setupEntityConstraintsPage
void setupEntityConstraintsPage()
Definition: classpropertiesdialog.cpp:329
ClassPropertiesDialog::setupEntityDisplayPage
void setupEntityDisplayPage(EntityWidget *widget)
Definition: classpropertiesdialog.cpp:269
ClassPropertiesDialog::m_pGenPage
ClassGeneralPage * m_pGenPage
Definition: classpropertiesdialog.h:69
ClassPropertiesDialog::m_pWidget
UMLWidget * m_pWidget
Definition: classpropertiesdialog.h:82
ClassPropertiesDialog::m_pObject
UMLObject * m_pObject
Definition: classpropertiesdialog.h:81
ClassPropertiesDialog::m_pPkgContentsPage
PackageContentsPage * m_pPkgContentsPage
Definition: classpropertiesdialog.h:76
ClassPropertiesDialog::setupInstancePages
void setupInstancePages()
Definition: classpropertiesdialog.cpp:359
ClassPropertiesDialog::setupPages
void setupPages(bool assoc=false)
Definition: classpropertiesdialog.cpp:202
ClassPropertiesDialog::Page
Page
Definition: classpropertiesdialog.h:44
ClassPropertiesDialog::page_template
@ page_template
Definition: classpropertiesdialog.h:44
ClassPropertiesDialog::page_op
@ page_op
Definition: classpropertiesdialog.h:44
ClassPropertiesDialog::page_color
@ page_color
Definition: classpropertiesdialog.h:45
ClassPropertiesDialog::page_att
@ page_att
Definition: classpropertiesdialog.h:44
ClassPropertiesDialog::page_options
@ page_options
Definition: classpropertiesdialog.h:45
ClassPropertiesDialog::page_assoc
@ page_assoc
Definition: classpropertiesdialog.h:45
ClassPropertiesDialog::page_gen
@ page_gen
Definition: classpropertiesdialog.h:44
ClassPropertiesDialog::page_constraint
@ page_constraint
Definition: classpropertiesdialog.h:44
ClassPropertiesDialog::page_font
@ page_font
Definition: classpropertiesdialog.h:45
ClassPropertiesDialog::page_entatt
@ page_entatt
Definition: classpropertiesdialog.h:44
ClassPropertiesDialog::setupOperationsPage
void setupOperationsPage()
Definition: classpropertiesdialog.cpp:289
ClassPropertiesDialog::setupEnumLiteralsPage
void setupEnumLiteralsPage()
Definition: classpropertiesdialog.cpp:309
ClassPropertiesDialog::m_pEnumLiteralPage
ClassifierListPage * m_pEnumLiteralPage
Definition: classpropertiesdialog.h:73
ClassPropertiesDialog::~ClassPropertiesDialog
~ClassPropertiesDialog()
Definition: classpropertiesdialog.cpp:141
ClassPropertiesDialog::setupTemplatesPage
void setupTemplatesPage()
Definition: classpropertiesdialog.cpp:299
ClassPropertiesDialog::m_doc
UMLDoc * m_doc
Definition: classpropertiesdialog.h:80
ClassPropertiesDialog::init
void init()
Definition: classpropertiesdialog.cpp:122
ClassPropertiesDialog::setupContentsPage
void setupContentsPage()
Definition: classpropertiesdialog.cpp:339
ClassifierListPage
A dialog page to display classifier properties.
Definition: classifierlistpage.h:40
ConstraintListPage
An extension to the classifier list dialog page to display constraint properties.
Definition: constraintlistpage.h:37
EntityWidget
A graphical version of an entity.
Definition: entitywidget.h:30
MultiPageDialogBase
Definition: multipagedialogbase.h:52
ObjectWidget
Displays an instance of a Concept.
Definition: objectwidget.h:33
PackageContentsPage
The page shows all the objects that belong to a UMLPackage.
Definition: packagecontentspage.h:26
UMLDoc
Definition: umldoc.h:75
UMLObject
The base class for UML objects.
Definition: umlobject.h:75
UMLWidgetStylePage
Definition: umlwidgetstylepage.h:38
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:41
multipagedialogbase.h