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

- Main Page
- Related Pages
- Topics
- Namespaces
- Classes
- Files

- File List
- File Members

associationgeneralpage.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 ASSOCIATIONGENERALPAGE_H
7#define ASSOCIATIONGENERALPAGE_H
8
9#include "basictypes.h"
10#include "dialogpagebase.h"
11
12#include <QList>
13#include <QWidget>
14
15 class AssociationWidget;
16 class DocumentationWidget;
17 class QCheckBox;
18 class QGridLayout;
19 class QLabel;
20 class KComboBox;
21 class QLineEdit;
22 class ObjectWidget;
23 class UMLDoc;
24 class UMLObject;
25
34 class AssociationGeneralPage : public DialogPageBase
35{
36 Q_OBJECT
37 public:
38 AssociationGeneralPage(QWidget *parent, AssociationWidget *a);
39 ~AssociationGeneralPage();
40
41 void apply();
42
43 private:
44 QGridLayout *m_pNameAndTypeLayout;
45 QLabel *m_pAssocNameL;
46 QLineEdit *m_pAssocNameLE; // is used if m_pStereoChkB is unchecked
47 KComboBox *m_pAssocNameComB; // is used if m_pStereoChkB is checked
48 QCheckBox *m_pStereoChkB;
49 KComboBox *m_pTypeCB;
50
51 /* Choices for the QComboBox, and we store ints and strings
52 so we can translate both ways */
53 QList<Uml::AssociationType::Enum> m_AssocTypes;
54 QStringList m_AssocTypeStrings;
55 DocumentationWidget *m_docWidget;
56
57 AssociationWidget *m_pAssociationWidget;
58 ObjectWidget *m_pWidget;
59
60 void constructWidget();
61
62 public slots:
63 void slotStereoCheckboxChanged(int state);
64
65};
66
67#endif
basictypes.h
AssociationGeneralPage
Display properties on a UMLObject.
Definition associationgeneralpage.h:35
AssociationGeneralPage::m_pNameAndTypeLayout
QGridLayout * m_pNameAndTypeLayout
Definition associationgeneralpage.h:44
AssociationGeneralPage::m_pAssocNameL
QLabel * m_pAssocNameL
Definition associationgeneralpage.h:45
AssociationGeneralPage::m_pAssocNameLE
QLineEdit * m_pAssocNameLE
Definition associationgeneralpage.h:46
AssociationGeneralPage::m_AssocTypeStrings
QStringList m_AssocTypeStrings
Definition associationgeneralpage.h:54
AssociationGeneralPage::m_pAssociationWidget
AssociationWidget * m_pAssociationWidget
Definition associationgeneralpage.h:57
AssociationGeneralPage::m_pAssocNameComB
KComboBox * m_pAssocNameComB
Definition associationgeneralpage.h:47
AssociationGeneralPage::apply
void apply()
Definition associationgeneralpage.cpp:205
AssociationGeneralPage::m_pWidget
ObjectWidget * m_pWidget
Definition associationgeneralpage.h:58
AssociationGeneralPage::m_pTypeCB
KComboBox * m_pTypeCB
Definition associationgeneralpage.h:49
AssociationGeneralPage::m_AssocTypes
QList< Uml::AssociationType::Enum > m_AssocTypes
Definition associationgeneralpage.h:53
AssociationGeneralPage::m_pStereoChkB
QCheckBox * m_pStereoChkB
Definition associationgeneralpage.h:48
AssociationGeneralPage::m_docWidget
DocumentationWidget * m_docWidget
Definition associationgeneralpage.h:55
AssociationGeneralPage::~AssociationGeneralPage
~AssociationGeneralPage()
Definition associationgeneralpage.cpp:61
AssociationGeneralPage::AssociationGeneralPage
AssociationGeneralPage(QWidget *parent, AssociationWidget *a)
Definition associationgeneralpage.cpp:45
AssociationGeneralPage::slotStereoCheckboxChanged
void slotStereoCheckboxChanged(int state)
Definition associationgeneralpage.cpp:181
AssociationGeneralPage::constructWidget
void constructWidget()
Definition associationgeneralpage.cpp:68
AssociationWidget
This class represents an association inside a diagram. Bugs and comments to umbrello-devel@kde....
Definition associationwidget.h:47
DialogPageBase
Definition dialogpagebase.h:20
DocumentationWidget
Definition documentationwidget.h:22
ObjectWidget
Displays an instance of a Concept.
Definition objectwidget.h:28
UMLDoc
Definition umldoc.h:63
UMLObject
The base class for UML objects.
Definition umlobject.h:70
dialogpagebase.h
a
QString a
Definition petalnode.cpp:13