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::m_pInstanceL
QLabel * m_pInstanceL
Definition: classgeneralpage.h:87
UMLApp::currentView
UMLView * currentView() const
Definition: uml.cpp:3166
datatype.h
instance.h
UMLPackageWidget::apply
void apply()
Definition: umlpackagewidget.cpp:87
umlpackagelist.h
umlpackagewidget.h
ClassGeneralPage::setInstanceWidgetNameIfApplicable
void setInstanceWidgetNameIfApplicable(const QString &name) const
Definition: classgeneralpage.cpp:405
UMLObject::ObjectType
ObjectType
Definition: umlobject.h:80
UMLObject::toI18nString
static QString toI18nString(ObjectType t)
Definition: umlobject.cpp:1135
UMLObject::asUMLComponent
UMLComponent * asUMLComponent()
Definition: umlobject.cpp:1311
ObjectWidget::setMultipleInstance
void setMultipleInstance(bool multiple)
Definition: objectwidget.cpp:84
VisibilityEnumWidget::addToLayout
void addToLayout(QVBoxLayout *layout)
Definition: visibilityenumwidget.cpp:70
ClassGeneralPage::m_pExecutableCB
QCheckBox * m_pExecutableCB
Definition: classgeneralpage.h:89
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
umlview.h
ClassGeneralPage::m_artifactTypeWidget
UMLArtifactTypeWidget * m_artifactTypeWidget
Definition: classgeneralpage.h:95
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:41
stereotype.h
WidgetBase::name
QString name() const
Definition: widgetbase.cpp:309
UMLObject::ot_Artifact
@ ot_Artifact
Definition: umlobject.h:97
ClassGeneralPage::m_pObject
UMLObject * m_pObject
Definition: classgeneralpage.h:82
component.h
ClassGeneralPage::m_pMultiCB
QCheckBox * m_pMultiCB
Definition: classgeneralpage.h:88
UMLDatatype
Non-graphical information for a Datatype.
Definition: datatype.h:26
UMLObject::ot_Class
@ ot_Class
Definition: umlobject.h:89
UMLObject::ot_Entity
@ ot_Entity
Definition: umlobject.h:101
UMLObject::asUMLInstance
UMLInstance * asUMLInstance()
Definition: umlobject.cpp:1320
artifact.h
documentationwidget.h
ObjectWidget::showDestruction
bool showDestruction() const
Definition: objectwidget.cpp:526
UMLObject::ot_Interface
@ ot_Interface
Definition: umlobject.h:86
UMLArtifactTypeWidget::apply
void apply()
Definition: umlartifacttypewidget.cpp:69
WidgetBase::isCombinedFragmentWidget
bool isCombinedFragmentWidget()
Definition: widgetbase.h:248
UMLObject::emitModified
void emitModified()
Definition: umlobject.cpp:385
UMLObject::setName
virtual void setName(const QString &strName)
Definition: umlobject.cpp:192
UMLPackageWidget::addToLayout
void addToLayout(QGridLayout *layout, int row)
Definition: umlpackagewidget.cpp:78
UMLScene::isCollaborationDiagram
bool isCollaborationDiagram()
Definition: umlscene.h:319
UMLObjectNameWidget::addToLayout
void addToLayout(QGridLayout *layout, int row)
Definition: umlobjectnamewidget.cpp:50
VisibilityEnumWidget
Definition: visibilityenumwidget.h:27
ClassGeneralPage::m_instanceNameWidget
UMLObjectNameWidget * m_instanceNameWidget
Definition: classgeneralpage.h:92
ClassGeneralPage::m_stereotypeWidget
UMLStereotypeWidget * m_stereotypeWidget
Definition: classgeneralpage.h:93
ClassGeneralPage::m_nameWidget
UMLObjectNameWidget * m_nameWidget
Definition: classgeneralpage.h:91
ObjectWidget::setDrawAsActor
void setDrawAsActor(bool drawAsActor)
Definition: objectwidget.cpp:229
ClassGeneralPage::m_pAbstractCB
QCheckBox * m_pAbstractCB
Definition: classgeneralpage.h:88
dialogpagebase.h
model_utils.h
UMLArtifactTypeWidget::addToLayout
void addToLayout(QVBoxLayout *layout)
Definition: umlartifacttypewidget.cpp:61
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
UMLObject::isAbstract
bool isAbstract() const
Definition: umlobject.cpp:348
import_utils.h
UMLInstance::setClassifierName
void setClassifierName(const QString &name)
Definition: instance.cpp:50
UMLObject::baseType
ObjectType baseType() const
Definition: umlobject.cpp:397
UMLObject::asUMLDatatype
UMLDatatype * asUMLDatatype()
Definition: umlobject.cpp:1312
ObjectWidget::setShowDestruction
void setShowDestruction(bool bShow)
Definition: objectwidget.cpp:514
UMLObject::asUMLArtifact
UMLArtifact * asUMLArtifact()
Definition: umlobject.cpp:1303
ClassGeneralPage::slotActorToggled
void slotActorToggled(bool state)
Definition: classgeneralpage.cpp:394
umlartifacttypewidget.h
classgeneralpage.h
WidgetBase::umlObject
UMLObject * umlObject() const
Definition: widgetbase.cpp:182
UMLObject::ot_Stereotype
@ ot_Stereotype
Definition: umlobject.h:99
WidgetBase::toI18nString
static QString toI18nString(WidgetType wt)
Definition: widgetbase.cpp:1225
ClassGeneralPage::~ClassGeneralPage
~ClassGeneralPage()
Definition: classgeneralpage.cpp:288
UMLStereotypeWidget::apply
void apply()
Definition: umlstereotypewidget.cpp:48
ClassGeneralPage::m_packageWidget
UMLPackageWidget * m_packageWidget
Definition: classgeneralpage.h:94
UMLView
Definition: umlview.h:35
UMLPackageWidget
Definition: umlpackagewidget.h:24
ClassGeneralPage::m_pDeconCB
QCheckBox * m_pDeconCB
Definition: classgeneralpage.h:88
DocumentationWidget::apply
void apply()
Definition: documentationwidget.cpp:70
ClassGeneralPage::m_pUmldoc
UMLDoc * m_pUmldoc
Definition: classgeneralpage.h:85
objectwidget.h
uWarning
#define uWarning()
Definition: debug_utils.h:124
DialogPageBase
Definition: dialogpagebase.h:25
folder.h
i18n
#define i18n
Definition: main.cpp:39
UMLWidget::setInstanceName
void setInstanceName(const QString &instanceName)
Definition: umlwidget.h:158
UMLObject::ot_Datatype
@ ot_Datatype
Definition: umlobject.h:87
UMLObject::isUMLInstance
bool isUMLInstance()
Definition: umlobject.h:214
ClassGeneralPage
Display properties on a UMLObject.
Definition: classgeneralpage.h:44
umlobjectnamewidget.h
visibilityenumwidget.h
UMLArtifactTypeWidget
Definition: umlartifacttypewidget.h:24
ComboBoxWidgetBase::addToLayout
void addToLayout(QGridLayout *layout, int row, int startColumn=0)
Definition: comboboxwidgetbase.cpp:51
UMLInstance::classifier
UMLClassifier * classifier()
Definition: instance.cpp:97
MyProject\connect
connect()
Definition: namespaces-multiple.php:5
UMLObjectNameWidget::reset
void reset()
Definition: umlobjectnamewidget.cpp:61
UMLObject::setAbstract
void setAbstract(bool bAbstract)
Definition: umlobject.cpp:356
UMLObject::ot_Instance
@ ot_Instance
Definition: umlobject.h:90
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:278
ClassGeneralPage::m_pDrawActorCB
QCheckBox * m_pDrawActorCB
Definition: classgeneralpage.h:88
UMLObject::ot_Component
@ ot_Component
Definition: umlobject.h:96
UMLStereotypeWidget
Definition: umlstereotypewidget.h:20
UMLDoc
Definition: umldoc.h:75
ClassGeneralPage::m_docWidget
DocumentationWidget * m_docWidget
Definition: classgeneralpage.h:90
UMLDatatype::originType
UMLClassifier * originType() const
Definition: datatype.cpp:46
UMLObjectNameWidget
Definition: umlobjectnamewidget.h:22
UMLWidget::instanceName
QString instanceName() const
Definition: umlwidget.h:165
ClassGeneralPage::m_pWidget
ObjectWidget * m_pWidget
Definition: classgeneralpage.h:83
ClassGeneralPage::m_visibilityEnumWidget
VisibilityEnumWidget * m_visibilityEnumWidget
Definition: classgeneralpage.h:96
ClassGeneralPage::m_pStereoTypeL
QLabel * m_pStereoTypeL
Definition: classgeneralpage.h:87
UMLDoc::findUMLObject
UMLObject * findUMLObject(const QString &name, UMLObject::ObjectType type=UMLObject::ot_UMLObject, UMLObject *currentObj=0)
Definition: umldoc.cpp:1067
classifier.h
ObjectWidget
Displays an instance of a Concept.
Definition: objectwidget.h:33
DocumentationWidget
Definition: documentationwidget.h:27
uError
#define uError()
Definition: debug_utils.h:123
UMLObject::ot_Enum
@ ot_Enum
Definition: umlobject.h:88
umlscene.h
uml.h
UMLObject::ot_UseCase
@ ot_UseCase
Definition: umlobject.h:84
WidgetBase::isFloatingDashLineWidget
bool isFloatingDashLineWidget()
Definition: widgetbase.h:253
debug_utils.h
UMLObject::isUMLDatatype
bool isUMLDatatype()
Definition: umlobject.h:206
ClassGeneralPage::m_pInstanceWidget
UMLWidget * m_pInstanceWidget
Definition: classgeneralpage.h:84
ObjectWidget::drawAsActor
bool drawAsActor() const
Definition: objectwidget.cpp:240
umlobject.h
VisibilityEnumWidget::apply
void apply()
Definition: visibilityenumwidget.cpp:78
umlstereotypewidget.h
ClassGeneralPage::insertStereotypesSorted
void insertStereotypesSorted(const QString &type)
UMLView::umlScene
UMLScene * umlScene() const
Definition: umlview.cpp:56
ClassGeneralPage::apply
void apply()
Definition: classgeneralpage.cpp:296
ObjectWidget::multipleInstance
bool multipleInstance() const
Definition: objectwidget.cpp:99
UMLStereotypeWidget::setEditable
void setEditable(bool state)
Definition: umlstereotypewidget.cpp:40
UMLDatatype::isReference
bool isReference() const
Definition: datatype.cpp:64
WidgetBase::setName
virtual void setName(const QString &strName)
Definition: widgetbase.cpp:322
dialog_utils.h
package.h
UMLObjectNameWidget::text
QString text()
Definition: umlobjectnamewidget.cpp:56
WidgetBase::baseType
WidgetType baseType() const
Definition: widgetbase.cpp:115
ClassGeneralPage::ClassGeneralPage
ClassGeneralPage(UMLDoc *d, QWidget *parent, UMLObject *o)
Definition: classgeneralpage.cpp:57
umldoc.h