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

classgeneralpage.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2002-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef CLASSGENERALPAGE_H
7#define CLASSGENERALPAGE_H
8
9#include "dialogpagebase.h"
10#include "n_stereoattrs.h"
11
12 class DocumentationWidget;
13 class QGroupBox;
14 class QGridLayout;
15 class QLabel;
16 class QRadioButton;
17 class QCheckBox;
18 class QLineEdit;
19 class KComboBox;
20 class QLineEdit;
21
22 class UMLObject;
23 class UMLWidget;
24 class ObjectWidget;
25 class UMLDoc;
26 class UMLArtifactTypeWidget;
27 class UMLObjectNameWidget;
28 class UMLPackageWidget;
29 class UMLStereotypeWidget;
30 class VisibilityEnumWidget;
31
40 class ClassGeneralPage : public DialogPageBase
41{
42 Q_OBJECT
43 public:
44
51 ClassGeneralPage(UMLDoc *d, QWidget *parent, UMLObject * o);
52
59 ClassGeneralPage(UMLDoc *d, QWidget *parent, ObjectWidget * o);
60
69 ClassGeneralPage(UMLDoc* d, QWidget* parent, UMLWidget* widget);
70
74 ~ClassGeneralPage();
75
76 void apply();
77
78 private:
79 UMLObject * m_pObject;
80 ObjectWidget * m_pWidget;
81 UMLWidget * m_pInstanceWidget;
82 UMLDoc * m_pUmldoc;
83
84 QGridLayout * m_pNameLayout;
85 QCheckBox * m_pMultiCB, * m_pDrawActorCB, * m_pAbstractCB, * m_pDeconCB;
86 QCheckBox * m_pExecutableCB;
87 DocumentationWidget *m_docWidget;
88 UMLObjectNameWidget *m_nameWidget;
89 UMLObjectNameWidget *m_instanceNameWidget;
90 UMLStereotypeWidget *m_stereotypeWidget;
91 QLabel *m_pTagL [N_STEREOATTRS];
92 QLineEdit *m_pTagLE[N_STEREOATTRS];
93 UMLPackageWidget *m_packageWidget;
94 UMLArtifactTypeWidget *m_artifactTypeWidget;
95 VisibilityEnumWidget *m_visibilityEnumWidget;
96
97 void insertStereotypesSorted(const QString& type);
98 void setInstanceWidgetNameIfApplicable(const QString& name) const;
99
100 public slots:
101 void slotStereoTextChanged(const QString &);
102 void slotActorToggled(bool state);
103};
104
105#endif
ClassGeneralPage
Display properties on a UMLObject.
Definition classgeneralpage.h:41
ClassGeneralPage::m_pDrawActorCB
QCheckBox * m_pDrawActorCB
Definition classgeneralpage.h:85
ClassGeneralPage::m_pTagL
QLabel * m_pTagL[N_STEREOATTRS]
Definition classgeneralpage.h:91
ClassGeneralPage::m_pInstanceWidget
UMLWidget * m_pInstanceWidget
Definition classgeneralpage.h:81
ClassGeneralPage::m_visibilityEnumWidget
VisibilityEnumWidget * m_visibilityEnumWidget
Definition classgeneralpage.h:95
ClassGeneralPage::m_stereotypeWidget
UMLStereotypeWidget * m_stereotypeWidget
Definition classgeneralpage.h:90
ClassGeneralPage::insertStereotypesSorted
void insertStereotypesSorted(const QString &type)
ClassGeneralPage::m_pWidget
ObjectWidget * m_pWidget
Definition classgeneralpage.h:80
ClassGeneralPage::ClassGeneralPage
ClassGeneralPage(UMLDoc *d, QWidget *parent, UMLObject *o)
Definition classgeneralpage.cpp:52
ClassGeneralPage::m_nameWidget
UMLObjectNameWidget * m_nameWidget
Definition classgeneralpage.h:88
ClassGeneralPage::m_instanceNameWidget
UMLObjectNameWidget * m_instanceNameWidget
Definition classgeneralpage.h:89
ClassGeneralPage::m_pDeconCB
QCheckBox * m_pDeconCB
Definition classgeneralpage.h:85
ClassGeneralPage::slotActorToggled
void slotActorToggled(bool state)
Definition classgeneralpage.cpp:410
ClassGeneralPage::m_pAbstractCB
QCheckBox * m_pAbstractCB
Definition classgeneralpage.h:85
ClassGeneralPage::m_pTagLE
QLineEdit * m_pTagLE[N_STEREOATTRS]
Definition classgeneralpage.h:92
ClassGeneralPage::m_pUmldoc
UMLDoc * m_pUmldoc
Definition classgeneralpage.h:82
ClassGeneralPage::m_artifactTypeWidget
UMLArtifactTypeWidget * m_artifactTypeWidget
Definition classgeneralpage.h:94
ClassGeneralPage::m_packageWidget
UMLPackageWidget * m_packageWidget
Definition classgeneralpage.h:93
ClassGeneralPage::setInstanceWidgetNameIfApplicable
void setInstanceWidgetNameIfApplicable(const QString &name) const
Definition classgeneralpage.cpp:421
ClassGeneralPage::m_pMultiCB
QCheckBox * m_pMultiCB
Definition classgeneralpage.h:85
ClassGeneralPage::slotStereoTextChanged
void slotStereoTextChanged(const QString &)
Definition classgeneralpage.cpp:301
ClassGeneralPage::m_pNameLayout
QGridLayout * m_pNameLayout
Definition classgeneralpage.h:84
ClassGeneralPage::~ClassGeneralPage
~ClassGeneralPage()
Definition classgeneralpage.cpp:297
ClassGeneralPage::apply
void apply()
Definition classgeneralpage.cpp:310
ClassGeneralPage::m_pObject
UMLObject * m_pObject
Definition classgeneralpage.h:79
ClassGeneralPage::m_pExecutableCB
QCheckBox * m_pExecutableCB
Definition classgeneralpage.h:86
ClassGeneralPage::m_docWidget
DocumentationWidget * m_docWidget
Definition classgeneralpage.h:87
DialogPageBase
Definition dialogpagebase.h:20
DocumentationWidget
Definition documentationwidget.h:22
ObjectWidget
Displays an instance of a Concept.
Definition objectwidget.h:28
UMLArtifactTypeWidget
Definition umlartifacttypewidget.h:19
UMLDoc
Definition umldoc.h:63
UMLObjectNameWidget
Definition umlobjectnamewidget.h:17
UMLObject
The base class for UML objects.
Definition umlobject.h:70
UMLPackageWidget
Definition umlpackagewidget.h:19
UMLStereotypeWidget
Definition umlstereotypewidget.h:15
UMLWidget
The base class for graphical UML objects.
Definition umlwidget.h:36
VisibilityEnumWidget
Definition visibilityenumwidget.h:22
dialogpagebase.h
n_stereoattrs.h
N_STEREOATTRS
#define N_STEREOATTRS
Definition n_stereoattrs.h:11