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

associationrolepage.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 ASSOCIATIONROLEPAGE_H
12 #define ASSOCIATIONROLEPAGE_H
13
14 #include "dialogpagebase.h"
15
16 class AssociationWidget;
17 class KComboBox;
18 class KLineEdit;
19 class KTextEdit;
20 class ObjectWidget;
21 class QRadioButton;
22 class UMLDoc;
23 class UMLObject;
24 class VisibilityEnumWidget;
25
34 class AssociationRolePage : public DialogPageBase
35 {
36 Q_OBJECT
37 public:
38 AssociationRolePage(QWidget *parent, AssociationWidget *a);
39 ~AssociationRolePage();
40
41 void apply();
42
43 private:
44 KLineEdit *m_pRoleALE, *m_pRoleBLE;
45 KComboBox *m_pMultiACB, *m_pMultiBCB;
46 KTextEdit *m_docA, *m_docB;
47 AssociationWidget *m_pAssociationWidget;
48 ObjectWidget *m_pWidget;
49 QRadioButton *m_ChangeableARB, *m_AddOnlyARB, *m_FrozenARB;
50 QRadioButton *m_ChangeableBRB, *m_AddOnlyBRB, *m_FrozenBRB;
51 VisibilityEnumWidget *m_visibilityWidgetA;
52 VisibilityEnumWidget *m_visibilityWidgetB;
53
54 void constructWidget();
55
56 public slots:
57 // /**
58 // * When the draw as actor check box is toggled, the draw
59 // * as multi instance need to be enabled/disabled. They
60 // * both can't be available at the same time.
61 // */
62 // void slotActorToggled(bool state);
63
64 };
65
66 #endif
AssociationRolePage
Display properties on a UMLObject.
Definition: associationrolepage.h:35
AssociationWidget
This class represents an association inside a diagram. Bugs and comments to umbrello-devel@kde....
Definition: associationwidget.h:52
AssociationWidget::setMultiplicity
void setMultiplicity(const QString &text, Uml::RoleType::Enum role)
Definition: associationwidget.cpp:1065
Uml::Changeability::AddOnly
@ AddOnly
Definition: basictypes.h:207
AssociationRolePage::m_docA
KTextEdit * m_docA
Definition: associationrolepage.h:46
WidgetBase::name
QString name() const
Definition: widgetbase.cpp:309
AssociationRolePage::m_pRoleBLE
KLineEdit * m_pRoleBLE
Definition: associationrolepage.h:44
Uml::Changeability::Changeable
@ Changeable
Definition: basictypes.h:205
AssociationWidget::roleName
QString roleName(Uml::RoleType::Enum role) const
Definition: associationwidget.cpp:945
AssociationRolePage::apply
void apply()
Definition: associationrolepage.cpp:244
Uml::RoleType::A
@ A
Definition: basictypes.h:239
AssociationRolePage::m_pRoleALE
KLineEdit * m_pRoleALE
Definition: associationrolepage.h:44
AssociationWidget::roleDocumentation
QString roleDocumentation(Uml::RoleType::Enum role) const
Definition: associationwidget.cpp:998
AssociationRolePage::m_AddOnlyARB
QRadioButton * m_AddOnlyARB
Definition: associationrolepage.h:49
AssociationRolePage::~AssociationRolePage
~AssociationRolePage()
Definition: associationrolepage.cpp:57
VisibilityEnumWidget
Definition: visibilityenumwidget.h:27
AssociationRolePage::m_ChangeableBRB
QRadioButton * m_ChangeableBRB
Definition: associationrolepage.h:50
Dialog_Utils::makeLabeledEditField
KLineEdit * makeLabeledEditField(QGridLayout *layout, int row, QLabel *&label, const QString &labelText, KLineEdit *&editField, const QString &editFieldText, int columnOffset)
Definition: dialog_utils.cpp:52
AssociationRolePage::m_pAssociationWidget
AssociationWidget * m_pAssociationWidget
Definition: associationrolepage.h:47
dialogpagebase.h
AssociationRolePage::m_pMultiACB
KComboBox * m_pMultiACB
Definition: associationrolepage.h:45
AssociationRolePage::m_ChangeableARB
QRadioButton * m_ChangeableARB
Definition: associationrolepage.h:49
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
AssociationRolePage::constructWidget
void constructWidget()
Definition: associationrolepage.cpp:61
AssociationRolePage::m_pWidget
ObjectWidget * m_pWidget
Definition: associationrolepage.h:48
AssociationRolePage::m_FrozenBRB
QRadioButton * m_FrozenBRB
Definition: associationrolepage.h:50
AssociationWidget::setRoleDocumentation
void setRoleDocumentation(const QString &doc, Uml::RoleType::Enum role)
Definition: associationwidget.cpp:987
AssociationRolePage::m_FrozenARB
QRadioButton * m_FrozenARB
Definition: associationrolepage.h:49
AssociationWidget::multiplicity
QString multiplicity(Uml::RoleType::Enum role) const
Definition: associationwidget.cpp:1054
AssociationWidget::changeability
Uml::Changeability::Enum changeability(Uml::RoleType::Enum role) const
Definition: associationwidget.cpp:1121
Uml::Changeability::Frozen
@ Frozen
Definition: basictypes.h:206
objectwidget.h
a
QString a
Definition: petalnode.cpp:18
DialogPageBase
Definition: dialogpagebase.h:25
i18n
#define i18n
Definition: main.cpp:39
AssociationRolePage::AssociationRolePage
AssociationRolePage(QWidget *parent, AssociationWidget *a)
Definition: associationrolepage.cpp:42
visibilityenumwidget.h
Uml::RoleType::B
@ B
Definition: basictypes.h:240
AssociationRolePage::m_AddOnlyBRB
QRadioButton * m_AddOnlyBRB
Definition: associationrolepage.h:50
associationrolepage.h
UMLDoc
Definition: umldoc.h:75
associationwidget.h
AssociationWidget::setChangeability
void setChangeability(Uml::Changeability::Enum value, Uml::RoleType::Enum role)
Definition: associationwidget.cpp:1132
ObjectWidget
Displays an instance of a Concept.
Definition: objectwidget.h:33
AssociationRolePage::m_visibilityWidgetA
VisibilityEnumWidget * m_visibilityWidgetA
Definition: associationrolepage.h:51
umlobject.h
VisibilityEnumWidget::apply
void apply()
Definition: visibilityenumwidget.cpp:78
AssociationRolePage::m_pMultiBCB
KComboBox * m_pMultiBCB
Definition: associationrolepage.h:45
dialog_utils.h
AssociationRolePage::m_docB
KTextEdit * m_docB
Definition: associationrolepage.h:46
AssociationRolePage::m_visibilityWidgetB
VisibilityEnumWidget * m_visibilityWidgetB
Definition: associationrolepage.h:52
umldoc.h
AssociationWidget::setRoleName
void setRoleName(const QString &strRole, Uml::RoleType::Enum role)
Definition: associationwidget.cpp:958
AssociationWidget::widgetForRole
UMLWidget * widgetForRole(Uml::RoleType::Enum role) const
Definition: associationwidget.cpp:1232