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

associationgeneralpage.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 ASSOCIATIONGENERALPAGE_H
12 #define ASSOCIATIONGENERALPAGE_H
13
14 #include "basictypes.h"
15 #include "dialogpagebase.h"
16
17 #include <QList>
18 #include <QWidget>
19
20 class AssociationWidget;
21 class DocumentationWidget;
22 class QCheckBox;
23 class QGridLayout;
24 class QLabel;
25 class KComboBox;
26 class KLineEdit;
27 class ObjectWidget;
28 class UMLDoc;
29 class UMLObject;
30
39 class AssociationGeneralPage : public DialogPageBase
40 {
41 Q_OBJECT
42 public:
43 AssociationGeneralPage(QWidget *parent, AssociationWidget *a);
44 ~AssociationGeneralPage();
45
46 void apply();
47
48 private:
49 QGridLayout *m_pNameAndTypeLayout;
50 QLabel *m_pAssocNameL;
51 KLineEdit *m_pAssocNameLE; // is used if m_pStereoChkB is unchecked
52 KComboBox *m_pAssocNameComB; // is used if m_pStereoChkB is checked
53 QCheckBox *m_pStereoChkB;
54 KComboBox *m_pTypeCB;
55
56 /* Choices for the QComboBox, and we store ints and strings
57 so we can translate both ways */
58 QList<Uml::AssociationType::Enum> m_AssocTypes;
59 QStringList m_AssocTypeStrings;
60 DocumentationWidget *m_docWidget;
61
62 AssociationWidget *m_pAssociationWidget;
63 ObjectWidget *m_pWidget;
64
65 void constructWidget();
66
67 public slots:
68 void slotStereoCheckboxChanged(int state);
69
70 };
71
72 #endif
AssociationWidget
This class represents an association inside a diagram. Bugs and comments to umbrello-devel@kde....
Definition: associationwidget.h:52
AssociationGeneralPage::~AssociationGeneralPage
~AssociationGeneralPage()
Definition: associationgeneralpage.cpp:63
AssociationWidget::setAssociationType
void setAssociationType(Uml::AssociationType::Enum type)
Definition: associationwidget.cpp:1414
Uml::AssociationType::Reserved
@ Reserved
Definition: basictypes.h:129
Uml::AssociationType::toStringI18n
QString toStringI18n(Enum item)
Definition: basictypes.cpp:339
AssocRules::allowAssociation
static bool allowAssociation(Uml::AssociationType::Enum assocType, UMLWidget *widget)
Definition: assocrules.cpp:51
WidgetBase::umlScene
UMLScene * umlScene() const
Definition: widgetbase.cpp:162
Uml::RoleType::A
@ A
Definition: basictypes.h:239
documentationwidget.h
Uml::DiagramType::Collaboration
@ Collaboration
Definition: basictypes.h:84
Uml::AssociationType::Coll_Message_Synchronous
@ Coll_Message_Synchronous
Definition: basictypes.h:127
association.h
AssociationWidget::setName
void setName(const QString &strRole)
Definition: associationwidget.cpp:881
Uml::AssociationType::toString
QString toString(Enum item)
Definition: basictypes.cpp:283
AssociationGeneralPage::m_pAssociationWidget
AssociationWidget * m_pAssociationWidget
Definition: associationgeneralpage.h:62
dialogpagebase.h
AssociationGeneralPage::constructWidget
void constructWidget()
Definition: associationgeneralpage.cpp:70
AssociationGeneralPage::m_AssocTypeStrings
QStringList m_AssocTypeStrings
Definition: associationgeneralpage.h:59
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
Uml::AssociationType::Anchor
@ Anchor
Definition: basictypes.h:120
AssociationWidget::associationType
Uml::AssociationType::Enum associationType() const
Definition: associationwidget.cpp:1401
AssociationGeneralPage::m_AssocTypes
QList< Uml::AssociationType::Enum > m_AssocTypes
Definition: associationgeneralpage.h:58
AssociationWidget::name
QString name() const
Definition: associationwidget.cpp:870
AssociationGeneralPage::apply
void apply()
Definition: associationgeneralpage.cpp:211
AssociationGeneralPage::m_pWidget
ObjectWidget * m_pWidget
Definition: associationgeneralpage.h:63
AssociationGeneralPage::AssociationGeneralPage
AssociationGeneralPage(QWidget *parent, AssociationWidget *a)
Definition: associationgeneralpage.cpp:47
DocumentationWidget::apply
void apply()
Definition: documentationwidget.cpp:70
objectwidget.h
a
QString a
Definition: petalnode.cpp:18
UMLScene::type
Uml::DiagramType::Enum type() const
Definition: umlscene.cpp:426
DialogPageBase
Definition: dialogpagebase.h:25
i18n
#define i18n
Definition: main.cpp:39
basictypes.h
Dialog_Utils::insertStereotypesSorted
void insertStereotypesSorted(KComboBox *kcb, const QString &type)
Definition: dialog_utils.cpp:231
uDebug
#define uDebug()
Definition: debug_utils.h:122
Uml::RoleType::B
@ B
Definition: basictypes.h:240
AssociationGeneralPage::m_pStereoChkB
QCheckBox * m_pStereoChkB
Definition: associationgeneralpage.h:53
Uml::AssociationType::Enum
Enum
Definition: basictypes.h:106
associationgeneralpage.h
MyProject\connect
connect()
Definition: namespaces-multiple.php:5
Uml::AssociationType::Generalization
@ Generalization
Definition: basictypes.h:107
AssociationGeneralPage
Display properties on a UMLObject.
Definition: associationgeneralpage.h:40
UMLDoc
Definition: umldoc.h:75
AssociationGeneralPage::m_pAssocNameL
QLabel * m_pAssocNameL
Definition: associationgeneralpage.h:50
Uml::AssociationType::fromInt
Enum fromInt(int item)
Definition: basictypes.cpp:449
AssociationGeneralPage::m_docWidget
DocumentationWidget * m_docWidget
Definition: associationgeneralpage.h:60
AssociationWidget::association
UMLAssociation * association() const
Definition: associationwidget.cpp:520
associationwidget.h
Uml::AssociationType::Coll_Message_Asynchronous
@ Coll_Message_Asynchronous
Definition: basictypes.h:112
AssociationGeneralPage::slotStereoCheckboxChanged
void slotStereoCheckboxChanged(int state)
Definition: associationgeneralpage.cpp:187
ObjectWidget
Displays an instance of a Concept.
Definition: objectwidget.h:33
DocumentationWidget
Definition: documentationwidget.h:27
AssociationGeneralPage::m_pAssocNameLE
KLineEdit * m_pAssocNameLE
Definition: associationgeneralpage.h:51
debug_utils.h
UMLAssociation
Sets up association information.
Definition: association.h:33
assocrules.h
umlobject.h
UMLObject::umlStereotype
UMLStereotype * umlStereotype()
Definition: umlobject.cpp:551
AssociationGeneralPage::m_pAssocNameComB
KComboBox * m_pAssocNameComB
Definition: associationgeneralpage.h:52
AssociationWidget::setStereotype
void setStereotype(const QString &stereo)
Definition: associationwidget.cpp:917
AssociationGeneralPage::m_pTypeCB
KComboBox * m_pTypeCB
Definition: associationgeneralpage.h:54
dialog_utils.h
UMLObject::stereotype
QString stereotype(bool includeAdornments=false) const
Definition: umlobject.cpp:559
AssociationGeneralPage::m_pNameAndTypeLayout
QGridLayout * m_pNameAndTypeLayout
Definition: associationgeneralpage.h:49
umldoc.h
AssociationWidget::widgetForRole
UMLWidget * widgetForRole(Uml::RoleType::Enum role) const
Definition: associationwidget.cpp:1232