umbrello 2.34.70-5524f40e1
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 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
17class QCheckBox;
18class QGridLayout;
19class QLabel;
20class KComboBox;
21class KLineEdit;
22class ObjectWidget;
23class UMLDoc;
24class UMLObject;
25
35{
36 Q_OBJECT
37public:
40
41 void apply();
42
43private:
46 KLineEdit *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;
56
59
60 void constructWidget();
61
62public slots:
63 void slotStereoCheckboxChanged(int state);
64
65};
66
67#endif
Display properties on a UMLObject.
Definition: associationgeneralpage.h:35
QGridLayout * m_pNameAndTypeLayout
Definition: associationgeneralpage.h:44
QLabel * m_pAssocNameL
Definition: associationgeneralpage.h:45
QStringList m_AssocTypeStrings
Definition: associationgeneralpage.h:54
AssociationWidget * m_pAssociationWidget
Definition: associationgeneralpage.h:57
KComboBox * m_pAssocNameComB
Definition: associationgeneralpage.h:47
void apply()
Definition: associationgeneralpage.cpp:211
ObjectWidget * m_pWidget
Definition: associationgeneralpage.h:58
KComboBox * m_pTypeCB
Definition: associationgeneralpage.h:49
QList< Uml::AssociationType::Enum > m_AssocTypes
Definition: associationgeneralpage.h:53
QCheckBox * m_pStereoChkB
Definition: associationgeneralpage.h:48
DocumentationWidget * m_docWidget
Definition: associationgeneralpage.h:55
~AssociationGeneralPage()
Definition: associationgeneralpage.cpp:61
AssociationGeneralPage(QWidget *parent, AssociationWidget *a)
Definition: associationgeneralpage.cpp:45
void slotStereoCheckboxChanged(int state)
Definition: associationgeneralpage.cpp:187
void constructWidget()
Definition: associationgeneralpage.cpp:68
KLineEdit * m_pAssocNameLE
Definition: associationgeneralpage.h:46
This class represents an association inside a diagram. Bugs and comments to umbrello-devel@kde....
Definition: associationwidget.h:47
Definition: dialogpagebase.h:20
Definition: documentationwidget.h:22
Displays an instance of a Concept.
Definition: objectwidget.h:28
Definition: umldoc.h:70
The base class for UML objects.
Definition: umlobject.h:70
QString a
Definition: petalnode.cpp:13