umbrello: umbrello/dialogs/classpropertiesdialog.h Source File

umbrello 2.31.0 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
UMLEntity
Non-graphical Information for an Entity.
Definition: entity.h:34
ClassPropertiesDialog::setupEntityConstraintsPage
void setupEntityConstraintsPage()
Definition: classpropertiesdialog.cpp:329
UMLObject::ObjectType
ObjectType
Definition: umlobject.h:79
UMLObject::ot_EntityConstraint
@ ot_EntityConstraint
Definition: umlobject.h:104
MultiPageDialogBase::setupStylePage
KPageWidgetItem * setupStylePage(WidgetBase *widget)
Definition: multipagedialogbase.cpp:477
ClassPropertiesDialog::page_constraint
@ page_constraint
Definition: classpropertiesdialog.h:44
ClassPropertiesDialog::setupInstancePages
void setupInstancePages()
Definition: classpropertiesdialog.cpp:359
ClassPropertiesDialog::m_pGenPage
ClassGeneralPage * m_pGenPage
Definition: classpropertiesdialog.h:69
WidgetBase::isNodeWidget
bool isNodeWidget()
Definition: widgetbase.h:257
ClassPropertiesDialog::m_pEnumLiteralPage
ClassifierListPage * m_pEnumLiteralPage
Definition: classpropertiesdialog.h:73
umlview.h
Icon_Utils::it_Properties_EnumLiterals
@ it_Properties_EnumLiterals
Definition: icon_utils.h:70
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:40
WidgetBase::isInterfaceWidget
bool isInterfaceWidget()
Definition: widgetbase.h:255
ClassPropertiesDialog::m_pWidget
UMLWidget * m_pWidget
Definition: classpropertiesdialog.h:82
WidgetBase::isPackageWidget
bool isPackageWidget()
Definition: widgetbase.h:261
UMLWidgetStylePage
Definition: umlwidgetstylepage.h:37
entity.h
ClassOptionsPage::apply
void apply()
Definition: classoptionspage.cpp:115
classoptionspage.h
ClassPropertiesDialog::m_pEntityConstraintPage
ConstraintListPage * m_pEntityConstraintPage
Definition: classpropertiesdialog.h:75
Icon_Utils::it_Properties_Contents
@ it_Properties_Contents
Definition: icon_utils.h:73
classifierwidget.h
multipagedialogbase.h
UMLObject::ot_Class
@ ot_Class
Definition: umlobject.h:89
UMLObject::ot_Entity
@ ot_Entity
Definition: umlobject.h:101
Icon_Utils::it_Properties_Templates
@ it_Properties_Templates
Definition: icon_utils.h:69
ClassPropertiesDialog::page_assoc
@ page_assoc
Definition: classpropertiesdialog.h:45
ClassOptionsPage
A dialog page to display the class related options.
Definition: classoptionspage.h:39
UMLObject::ot_Attribute
@ ot_Attribute
Definition: umlobject.h:92
UMLObject::ot_Interface
@ ot_Interface
Definition: umlobject.h:86
packagecontentspage.h
ClassPropertiesDialog::m_pEntityAttributePage
ClassifierListPage * m_pEntityAttributePage
Definition: classpropertiesdialog.h:74
ClassPropertiesDialog::setupAttributesPage
void setupAttributesPage()
Definition: classpropertiesdialog.cpp:279
ClassPropertiesDialog::page_entatt
@ page_entatt
Definition: classpropertiesdialog.h:44
MultiPageDialogBase::accept
void accept()
Definition: multipagedialogbase.cpp:173
ClassPropertiesDialog::ClassPropertiesDialog
ClassPropertiesDialog(QWidget *parent, UMLObject *c, bool assoc=false)
Definition: classpropertiesdialog.cpp:46
UMLObject::ot_Package
@ ot_Package
Definition: umlobject.h:85
UMLWidgetStylePage::apply
void apply()
Definition: umlwidgetstylepage.cpp:287
ClassPropertiesDialog::page_template
@ page_template
Definition: classpropertiesdialog.h:44
UMLObject::ot_UMLObject
@ ot_UMLObject
Definition: umlobject.h:82
ClassPropertiesDialog
Definition: classpropertiesdialog.h:34
ClassPropertiesDialog::setupOperationsPage
void setupOperationsPage()
Definition: classpropertiesdialog.cpp:289
WidgetBase::isEntityWidget
bool isEntityWidget()
Definition: widgetbase.h:251
UMLObject
The base class for UML objects.
Definition: umlobject.h:73
MultiPageDialogBase::createPage
QFrame * createPage(const QString &name, const QString &header, Icon_Utils::IconType icon)
Definition: multipagedialogbase.cpp:325
ClassPropertiesDialog::m_pOpsPage
ClassifierListPage * m_pOpsPage
Definition: classpropertiesdialog.h:71
ClassPropertiesDialog::apply
virtual void apply()
Definition: classpropertiesdialog.cpp:148
UMLObject::baseType
ObjectType baseType() const
Definition: umlobject.cpp:397
MultiPageDialogBase::applyClicked
void applyClicked()
UMLObject::ot_EnumLiteral
@ ot_EnumLiteral
Definition: umlobject.h:94
MultiPageDialogBase::applyFontPage
void applyFontPage(AssociationWidget *widget)
Definition: multipagedialogbase.cpp:441
ClassPropertiesDialog::page_op
@ page_op
Definition: classpropertiesdialog.h:44
ClassifierListPage
A dialog page to display classifier properties.
Definition: classifierlistpage.h:39
WidgetBase::asClassifierWidget
ClassifierWidget * asClassifierWidget()
Definition: widgetbase.cpp:1471
ConstraintListPage
An extension to the classifier list dialog page to display constraint properties.
Definition: constraintlistpage.h:36
classgeneralpage.h
WidgetBase::umlObject
UMLObject * umlObject() const
Definition: widgetbase.cpp:182
MultiPageDialogBase::m_pStylePage
UMLWidgetStylePage * m_pStylePage
Definition: multipagedialogbase.h:106
ClassPropertiesDialog::page_gen
@ page_gen
Definition: classpropertiesdialog.h:44
Icon_Utils::it_Properties_Display
@ it_Properties_Display
Definition: icon_utils.h:66
MultiPageDialogBase::okClicked
void okClicked()
objectwidget.h
Icon_Utils::it_Properties_EntityConstraints
@ it_Properties_EntityConstraints
Definition: icon_utils.h:72
ClassPropertiesDialog::m_doc
UMLDoc * m_doc
Definition: classpropertiesdialog.h:80
ClassPropertiesDialog::m_pAssocPage
ClassAssociationsPage * m_pAssocPage
Definition: classpropertiesdialog.h:77
componentwidget.h
ClassPropertiesDialog::page_att
@ page_att
Definition: classpropertiesdialog.h:44
MultiPageDialogBase
Definition: multipagedialogbase.h:51
i18n
#define i18n
Definition: main.cpp:39
UMLWidget::isInstance
bool isInstance() const
Definition: umlwidget.h:144
WidgetBase::isClassWidget
bool isClassWidget()
Definition: widgetbase.h:247
ClassifierWidget
Common implementation for class widget and interface widget.
Definition: classifierwidget.h:32
UMLObject::ot_EntityAttribute
@ ot_EntityAttribute
Definition: umlobject.h:102
MultiPageDialogBase::setupFontPage
KPageWidgetItem * setupFontPage(const QFont &font)
Definition: multipagedialogbase.cpp:400
ClassPropertiesDialog::setupPages
void setupPages(bool assoc=false)
Definition: classpropertiesdialog.cpp:202
ClassGeneralPage
Display properties on a UMLObject.
Definition: classgeneralpage.h:43
ClassPropertiesDialog::setupAssociationsPage
void setupAssociationsPage()
Definition: classpropertiesdialog.cpp:349
WidgetBase::asEntityWidget
EntityWidget * asEntityWidget()
Definition: widgetbase.cpp:1475
ClassPropertiesDialog::setupTemplatesPage
void setupTemplatesPage()
Definition: classpropertiesdialog.cpp:299
ClassPropertiesDialog::m_pOptionsPage
ClassOptionsPage * m_pOptionsPage
Definition: classpropertiesdialog.h:78
MyProject\connect
connect()
Definition: namespaces-multiple.php:5
classassociationspage.h
ClassPropertiesDialog::setupGeneralPage
void setupGeneralPage()
Definition: classpropertiesdialog.cpp:242
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:269
UMLDoc
Definition: umldoc.h:74
Icon_Utils::it_Properties_Attributes
@ it_Properties_Attributes
Definition: icon_utils.h:67
ClassPropertiesDialog::init
void init()
Definition: classpropertiesdialog.cpp:122
classifierlistpage.h
ClassAssociationsPage
The page shows all the Associations that belong to a UMLClassifier.
Definition: classassociationspage.h:32
ClassPropertiesDialog::setupEnumLiteralsPage
void setupEnumLiteralsPage()
Definition: classpropertiesdialog.cpp:309
Icon_Utils::it_Properties_General
@ it_Properties_General
Definition: icon_utils.h:64
ClassPropertiesDialog::page_options
@ page_options
Definition: classpropertiesdialog.h:45
Icon_Utils::it_Properties_Associations
@ it_Properties_Associations
Definition: icon_utils.h:74
Icon_Utils::it_Properties_EntityAttributes
@ it_Properties_EntityAttributes
Definition: icon_utils.h:71
ClassPropertiesDialog::slotOk
void slotOk()
Definition: classpropertiesdialog.cpp:156
ClassPropertiesDialog::setupEntityDisplayPage
void setupEntityDisplayPage(EntityWidget *widget)
Definition: classpropertiesdialog.cpp:269
ClassPropertiesDialog::slotApply
void slotApply()
Definition: classpropertiesdialog.cpp:165
ClassifierListPage::apply
void apply()
Definition: classifierlistpage.cpp:395
ObjectWidget
Displays an instance of a Concept.
Definition: objectwidget.h:32
UMLObject::ot_Enum
@ ot_Enum
Definition: umlobject.h:88
EntityWidget
A graphical version of an entity.
Definition: entitywidget.h:29
uml.h
ClassPropertiesDialog::setupEntityAttributesPage
void setupEntityAttributesPage()
Definition: classpropertiesdialog.cpp:319
ClassPropertiesDialog::page_font
@ page_font
Definition: classpropertiesdialog.h:45
umlwidgetstylepage.h
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:39
debug_utils.h
WidgetBase::wt_Object
@ wt_Object
Definition: widgetbase.h:122
constraintlistpage.h
WidgetBase::isComponentWidget
bool isComponentWidget()
Definition: widgetbase.h:249
ClassPropertiesDialog::setupDisplayPage
void setupDisplayPage()
Definition: classpropertiesdialog.cpp:258
umlobject.h
MultiPageDialogBase::setCaption
void setCaption(const QString &caption)
Definition: multipagedialogbase.cpp:162
UMLObject::ot_Template
@ ot_Template
Definition: umlobject.h:95
classpropertiesdialog.h
ClassGeneralPage::apply
void apply()
Definition: classgeneralpage.cpp:296
ClassPropertiesDialog::m_pTemplatePage
ClassifierListPage * m_pTemplatePage
Definition: classpropertiesdialog.h:72
ClassPropertiesDialog::~ClassPropertiesDialog
~ClassPropertiesDialog()
Definition: classpropertiesdialog.cpp:141
PackageContentsPage
The page shows all the objects that belong to a UMLPackage.
Definition: packagecontentspage.h:25
UMLObject::ot_Operation
@ ot_Operation
Definition: umlobject.h:93
ClassPropertiesDialog::Page
Page
Definition: classpropertiesdialog.h:44
Icon_Utils::it_Properties_Operations
@ it_Properties_Operations
Definition: icon_utils.h:68
WidgetBase::baseType
WidgetType baseType() const
Definition: widgetbase.cpp:115
WidgetBase::isEnumWidget
bool isEnumWidget()
Definition: widgetbase.h:252
ClassPropertiesDialog::page_color
@ page_color
Definition: classpropertiesdialog.h:45
UMLApp::document
UMLDoc * document() const
Definition: uml.cpp:1055
umldoc.h
ClassPropertiesDialog::m_pObject
UMLObject * m_pObject
Definition: classpropertiesdialog.h:81
ClassPropertiesDialog::setupContentsPage
void setupContentsPage()
Definition: classpropertiesdialog.cpp:339
ClassPropertiesDialog::m_pAttPage
ClassifierListPage * m_pAttPage
Definition: classpropertiesdialog.h:70
ClassPropertiesDialog::m_pPkgContentsPage
PackageContentsPage * m_pPkgContentsPage
Definition: classpropertiesdialog.h:76
UMLPackage
Non-graphical information for a Package.
Definition: package.h:32