umbrello: umbrello/dialogs/pages/classgeneralpage.h Source File

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

classgeneralpage.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) 2002-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef CLASSGENERALPAGE_H
12 #define CLASSGENERALPAGE_H
13
14 #include "dialogpagebase.h"
15
16 class DocumentationWidget;
17 class QGroupBox;
18 class QLabel;
19 class QRadioButton;
20 class QCheckBox;
21 class QLineEdit;
22 class KComboBox;
23 class KLineEdit;
24
25 class UMLObject;
26 class UMLWidget;
27 class ObjectWidget;
28 class UMLDoc;
29 class UMLArtifactTypeWidget;
30 class UMLObjectNameWidget;
31 class UMLPackageWidget;
32 class UMLStereotypeWidget;
33 class VisibilityEnumWidget;
34
43 class ClassGeneralPage : public DialogPageBase
44 {
45 Q_OBJECT
46 public:
47
54 ClassGeneralPage(UMLDoc *d, QWidget *parent, UMLObject * o);
55
62 ClassGeneralPage(UMLDoc *d, QWidget *parent, ObjectWidget * o);
63
72 ClassGeneralPage(UMLDoc* d, QWidget* parent, UMLWidget* widget);
73
77 ~ClassGeneralPage();
78
79 void apply();
80
81 private:
82 UMLObject * m_pObject;
83 ObjectWidget * m_pWidget;
84 UMLWidget * m_pInstanceWidget;
85 UMLDoc * m_pUmldoc;
86
87 QLabel * m_pInstanceL, * m_pStereoTypeL;
88 QCheckBox * m_pMultiCB, * m_pDrawActorCB, * m_pAbstractCB, * m_pDeconCB;
89 QCheckBox * m_pExecutableCB;
90 DocumentationWidget *m_docWidget;
91 UMLObjectNameWidget *m_nameWidget;
92 UMLObjectNameWidget *m_instanceNameWidget;
93 UMLStereotypeWidget *m_stereotypeWidget;
94 UMLPackageWidget *m_packageWidget;
95 UMLArtifactTypeWidget *m_artifactTypeWidget;
96 VisibilityEnumWidget *m_visibilityEnumWidget;
97
98 void insertStereotypesSorted(const QString& type);
99 void setInstanceWidgetNameIfApplicable(const QString& name) const;
100
101 public slots:
102 void slotActorToggled(bool state);
103 };
104
105 #endif
ClassGeneralPage
Display properties on a UMLObject.
Definition: classgeneralpage.h:44
ClassGeneralPage::m_pDrawActorCB
QCheckBox * m_pDrawActorCB
Definition: classgeneralpage.h:88
ClassGeneralPage::m_pInstanceWidget
UMLWidget * m_pInstanceWidget
Definition: classgeneralpage.h:84
ClassGeneralPage::m_visibilityEnumWidget
VisibilityEnumWidget * m_visibilityEnumWidget
Definition: classgeneralpage.h:96
ClassGeneralPage::m_stereotypeWidget
UMLStereotypeWidget * m_stereotypeWidget
Definition: classgeneralpage.h:93
ClassGeneralPage::insertStereotypesSorted
void insertStereotypesSorted(const QString &type)
ClassGeneralPage::m_pWidget
ObjectWidget * m_pWidget
Definition: classgeneralpage.h:83
ClassGeneralPage::ClassGeneralPage
ClassGeneralPage(UMLDoc *d, QWidget *parent, UMLObject *o)
Definition: classgeneralpage.cpp:57
ClassGeneralPage::m_nameWidget
UMLObjectNameWidget * m_nameWidget
Definition: classgeneralpage.h:91
ClassGeneralPage::m_instanceNameWidget
UMLObjectNameWidget * m_instanceNameWidget
Definition: classgeneralpage.h:92
ClassGeneralPage::m_pDeconCB
QCheckBox * m_pDeconCB
Definition: classgeneralpage.h:88
ClassGeneralPage::slotActorToggled
void slotActorToggled(bool state)
Definition: classgeneralpage.cpp:394
ClassGeneralPage::m_pStereoTypeL
QLabel * m_pStereoTypeL
Definition: classgeneralpage.h:87
ClassGeneralPage::m_pAbstractCB
QCheckBox * m_pAbstractCB
Definition: classgeneralpage.h:88
ClassGeneralPage::m_pUmldoc
UMLDoc * m_pUmldoc
Definition: classgeneralpage.h:85
ClassGeneralPage::m_artifactTypeWidget
UMLArtifactTypeWidget * m_artifactTypeWidget
Definition: classgeneralpage.h:95
ClassGeneralPage::m_packageWidget
UMLPackageWidget * m_packageWidget
Definition: classgeneralpage.h:94
ClassGeneralPage::setInstanceWidgetNameIfApplicable
void setInstanceWidgetNameIfApplicable(const QString &name) const
Definition: classgeneralpage.cpp:405
ClassGeneralPage::m_pMultiCB
QCheckBox * m_pMultiCB
Definition: classgeneralpage.h:88
ClassGeneralPage::~ClassGeneralPage
~ClassGeneralPage()
Definition: classgeneralpage.cpp:288
ClassGeneralPage::apply
void apply()
Definition: classgeneralpage.cpp:296
ClassGeneralPage::m_pInstanceL
QLabel * m_pInstanceL
Definition: classgeneralpage.h:87
ClassGeneralPage::m_pObject
UMLObject * m_pObject
Definition: classgeneralpage.h:82
ClassGeneralPage::m_pExecutableCB
QCheckBox * m_pExecutableCB
Definition: classgeneralpage.h:89
ClassGeneralPage::m_docWidget
DocumentationWidget * m_docWidget
Definition: classgeneralpage.h:90
DialogPageBase
Definition: dialogpagebase.h:25
DocumentationWidget
Definition: documentationwidget.h:27
ObjectWidget
Displays an instance of a Concept.
Definition: objectwidget.h:33
UMLArtifactTypeWidget
Definition: umlartifacttypewidget.h:24
UMLDoc
Definition: umldoc.h:75
UMLObjectNameWidget
Definition: umlobjectnamewidget.h:22
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
UMLPackageWidget
Definition: umlpackagewidget.h:24
UMLStereotypeWidget
Definition: umlstereotypewidget.h:20
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:41
VisibilityEnumWidget
Definition: visibilityenumwidget.h:27
dialogpagebase.h