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

umbrello 2.32.1 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 #include "n_stereoattrs.h"
16
17 class DocumentationWidget;
18 class QGroupBox;
19 class QGridLayout;
20 class QLabel;
21 class QRadioButton;
22 class QCheckBox;
23 class QLineEdit;
24 class KComboBox;
25 class KLineEdit;
26
27 class UMLObject;
28 class UMLWidget;
29 class ObjectWidget;
30 class UMLDoc;
31 class UMLArtifactTypeWidget;
32 class UMLObjectNameWidget;
33 class UMLPackageWidget;
34 class UMLStereotypeWidget;
35 class VisibilityEnumWidget;
36
45 class ClassGeneralPage : public DialogPageBase
46 {
47 Q_OBJECT
48 public:
49
56 ClassGeneralPage(UMLDoc *d, QWidget *parent, UMLObject * o);
57
64 ClassGeneralPage(UMLDoc *d, QWidget *parent, ObjectWidget * o);
65
74 ClassGeneralPage(UMLDoc* d, QWidget* parent, UMLWidget* widget);
75
79 ~ClassGeneralPage();
80
81 void apply();
82
83 private:
84 UMLObject * m_pObject;
85 ObjectWidget * m_pWidget;
86 UMLWidget * m_pInstanceWidget;
87 UMLDoc * m_pUmldoc;
88
89 QGridLayout * m_pNameLayout;
90 QCheckBox * m_pMultiCB, * m_pDrawActorCB, * m_pAbstractCB, * m_pDeconCB;
91 QCheckBox * m_pExecutableCB;
92 DocumentationWidget *m_docWidget;
93 UMLObjectNameWidget *m_nameWidget;
94 UMLObjectNameWidget *m_instanceNameWidget;
95 UMLStereotypeWidget *m_stereotypeWidget;
96 QLabel *m_pTagL [N_STEREOATTRS];
97 KLineEdit *m_pTagLE[N_STEREOATTRS];
98 UMLPackageWidget *m_packageWidget;
99 UMLArtifactTypeWidget *m_artifactTypeWidget;
100 VisibilityEnumWidget *m_visibilityEnumWidget;
101
102 void insertStereotypesSorted(const QString& type);
103 void setInstanceWidgetNameIfApplicable(const QString& name) const;
104
105 public slots:
106 void slotStereoTextChanged(const QString &);
107 void slotActorToggled(bool state);
108 };
109
110 #endif
ClassGeneralPage
Display properties on a UMLObject.
Definition: classgeneralpage.h:46
ClassGeneralPage::m_pDrawActorCB
QCheckBox * m_pDrawActorCB
Definition: classgeneralpage.h:90
ClassGeneralPage::m_pTagL
QLabel * m_pTagL[N_STEREOATTRS]
Definition: classgeneralpage.h:96
ClassGeneralPage::m_pInstanceWidget
UMLWidget * m_pInstanceWidget
Definition: classgeneralpage.h:86
ClassGeneralPage::m_visibilityEnumWidget
VisibilityEnumWidget * m_visibilityEnumWidget
Definition: classgeneralpage.h:100
ClassGeneralPage::m_stereotypeWidget
UMLStereotypeWidget * m_stereotypeWidget
Definition: classgeneralpage.h:95
ClassGeneralPage::insertStereotypesSorted
void insertStereotypesSorted(const QString &type)
ClassGeneralPage::m_pWidget
ObjectWidget * m_pWidget
Definition: classgeneralpage.h:85
ClassGeneralPage::ClassGeneralPage
ClassGeneralPage(UMLDoc *d, QWidget *parent, UMLObject *o)
Definition: classgeneralpage.cpp:57
ClassGeneralPage::m_nameWidget
UMLObjectNameWidget * m_nameWidget
Definition: classgeneralpage.h:93
ClassGeneralPage::m_instanceNameWidget
UMLObjectNameWidget * m_instanceNameWidget
Definition: classgeneralpage.h:94
ClassGeneralPage::m_pDeconCB
QCheckBox * m_pDeconCB
Definition: classgeneralpage.h:90
ClassGeneralPage::slotActorToggled
void slotActorToggled(bool state)
Definition: classgeneralpage.cpp:415
ClassGeneralPage::m_pAbstractCB
QCheckBox * m_pAbstractCB
Definition: classgeneralpage.h:90
ClassGeneralPage::m_pUmldoc
UMLDoc * m_pUmldoc
Definition: classgeneralpage.h:87
ClassGeneralPage::m_artifactTypeWidget
UMLArtifactTypeWidget * m_artifactTypeWidget
Definition: classgeneralpage.h:99
ClassGeneralPage::m_packageWidget
UMLPackageWidget * m_packageWidget
Definition: classgeneralpage.h:98
ClassGeneralPage::setInstanceWidgetNameIfApplicable
void setInstanceWidgetNameIfApplicable(const QString &name) const
Definition: classgeneralpage.cpp:426
ClassGeneralPage::m_pMultiCB
QCheckBox * m_pMultiCB
Definition: classgeneralpage.h:90
ClassGeneralPage::slotStereoTextChanged
void slotStereoTextChanged(const QString &)
Definition: classgeneralpage.cpp:306
ClassGeneralPage::m_pNameLayout
QGridLayout * m_pNameLayout
Definition: classgeneralpage.h:89
ClassGeneralPage::m_pTagLE
KLineEdit * m_pTagLE[N_STEREOATTRS]
Definition: classgeneralpage.h:97
ClassGeneralPage::~ClassGeneralPage
~ClassGeneralPage()
Definition: classgeneralpage.cpp:302
ClassGeneralPage::apply
void apply()
Definition: classgeneralpage.cpp:315
ClassGeneralPage::m_pObject
UMLObject * m_pObject
Definition: classgeneralpage.h:84
ClassGeneralPage::m_pExecutableCB
QCheckBox * m_pExecutableCB
Definition: classgeneralpage.h:91
ClassGeneralPage::m_docWidget
DocumentationWidget * m_docWidget
Definition: classgeneralpage.h:92
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:75
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
n_stereoattrs.h
N_STEREOATTRS
#define N_STEREOATTRS
Definition: n_stereoattrs.h:15