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

umldatatypewidget.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) 2016-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef UMLDATATYPEWIDGET_H
12 #define UMLDATATYPEWIDGET_H
13
14 #include "comboboxwidgetbase.h"
15
16 class UMLAttribute;
17 class UMLEntityAttribute;
18 class UMLClassifier;
19 class UMLClassifierListItem;
20 class UMLOperation;
21 class UMLTemplate;
22
23 class UMLDatatypeWidget : public ComboBoxWidgetBase
24 {
25 Q_OBJECT
26 public:
27 UMLDatatypeWidget(UMLAttribute *attribute, QWidget *parent=0);
28 UMLDatatypeWidget(UMLClassifierListItem *datatype, QWidget *parent=0);
29 UMLDatatypeWidget(UMLEntityAttribute *entityAttribute, QWidget *parent=0);
30 UMLDatatypeWidget(UMLOperation *operation, QWidget *parent=0);
31 UMLDatatypeWidget(UMLTemplate *_template, QWidget *parent=0);
32
33 bool apply();
34 void reset();
35
36 Q_SIGNALS:
37 void editTextChanged(const QString &);
38
39 protected:
40 UMLAttribute *m_attribute;
41 UMLClassifierListItem *m_datatype;
42 UMLEntityAttribute *m_entityAttribute;
43 UMLOperation *m_operation;
44 UMLTemplate *m_template;
45 UMLClassifier *m_parent;
46 void init();
47 bool applyAttribute();
48 bool applyEntityAttribute();
49 bool applyOperation();
50 bool applyParameter();
51 bool applyTemplate();
52 void initTypesBox(QStringList &types, const QString &type);
53 void insertTypesFromConcepts(QStringList &types, bool fullName = true);
54 void insertTypesFromDatatypes(QStringList &types);
55 void insertTypesSortedAttribute(const QString &type);
56 void insertTypesSortedEntityAttribute(const QString &type);
57 void insertTypesSortedOperation(const QString &type);
58 void insertTypesSortedParameter(const QString &type);
59 void insertTypesSortedTemplate(const QString &type);
60 };
61
62 #endif
UMLObject::asUMLClassifier
UMLClassifier * asUMLClassifier()
Definition: umlobject.cpp:1309
template.h
UMLObject::ObjectType
ObjectType
Definition: umlobject.h:80
UMLDoc::addDefaultDatatypes
void addDefaultDatatypes()
Definition: umldoc.cpp:3470
Uml::ProgrammingLanguage::Enum
Enum
Definition: basictypes.h:271
UMLDatatypeWidget::insertTypesSortedAttribute
void insertTypesSortedAttribute(const QString &type)
Definition: umldatatypewidget.cpp:321
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
UMLDatatypeWidget::apply
bool apply()
Definition: umldatatypewidget.cpp:103
UMLDatatypeWidget::m_operation
UMLOperation * m_operation
Definition: umldatatypewidget.h:43
UMLDatatypeWidget::editTextChanged
void editTextChanged(const QString &)
Definition: moc_umldatatypewidget.cpp:128
UMLTemplate::getTypeName
virtual QString getTypeName() const
Definition: template.cpp:80
UMLClassifier::getFilteredList
virtual UMLClassifierListItemList getFilteredList(UMLObject::ObjectType ot) const
Definition: classifier.cpp:998
Uml::ProgrammingLanguage::Java
@ Java
Definition: basictypes.h:278
Object_Factory::createUMLObject
UMLObject * createUMLObject(UMLObject::ObjectType type, const QString &n, UMLPackage *parentPkg, bool solicitNewName)
Definition: object_factory.cpp:203
UMLObject::ot_Class
@ ot_Class
Definition: umlobject.h:89
operation.h
UMLClassifierListItem::getTypeName
virtual QString getTypeName() const
Definition: classifierlistitem.cpp:112
object_factory.h
UMLObject::umlParent
UMLObject * umlParent() const
Definition: umlobject.cpp:671
Import_Utils::createUMLObject
UMLObject * createUMLObject(UMLObject::ObjectType type, const QString &inName, UMLPackage *parentPkg, const QString &comment, const QString &stereotype, bool searchInParentPackageOnly, bool remapParent)
Definition: import_utils.cpp:178
UMLDatatypeWidget::insertTypesFromConcepts
void insertTypesFromConcepts(QStringList &types, bool fullName=true)
Definition: umldatatypewidget.cpp:285
UMLClassifier::getTemplateList
UMLTemplateList getTemplateList() const
Definition: classifier.cpp:1148
UMLDatatypeWidget::applyTemplate
bool applyTemplate()
Definition: umldatatypewidget.cpp:242
UMLClassifierList
QList< UMLClassifier * > UMLClassifierList
Definition: umlclassifierlist.h:17
UMLDatatypeWidget::applyParameter
bool applyParameter()
Definition: umldatatypewidget.cpp:206
umldatatypewidget.h
UMLObject::ot_UMLObject
@ ot_UMLObject
Definition: umlobject.h:82
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
import_utils.h
UMLDatatypeWidget::m_parent
UMLClassifier * m_parent
Definition: umldatatypewidget.h:45
ComboBoxWidgetBase
Definition: comboboxwidgetbase.h:21
UMLClassifierListItem::setTypeName
void setTypeName(const QString &type)
Definition: classifierlistitem.cpp:141
UMLDatatypeWidget::m_datatype
UMLClassifierListItem * m_datatype
Definition: umldatatypewidget.h:41
UMLDatatypeWidget::insertTypesSortedOperation
void insertTypesSortedOperation(const QString &type)
Definition: umldatatypewidget.cpp:344
UMLDatatypeWidget::applyOperation
bool applyOperation()
Definition: umldatatypewidget.cpp:192
classifierlistitem.h
entityattribute.h
Uml::ProgrammingLanguage::SQL
@ SQL
Definition: basictypes.h:288
UMLObject::fullyQualifiedName
virtual QString fullyQualifiedName(const QString &separator=QString(), bool includeRoot=false) const
Definition: umlobject.cpp:227
UMLDatatypeWidget::insertTypesSortedTemplate
void insertTypesSortedTemplate(const QString &type)
Definition: umldatatypewidget.cpp:395
i18n
#define i18n
Definition: main.cpp:39
UMLClassifierListItem::setType
virtual void setType(UMLObject *type)
Definition: classifierlistitem.cpp:127
UMLObject::ot_Datatype
@ ot_Datatype
Definition: umlobject.h:87
UMLDatatypeWidget::insertTypesFromDatatypes
void insertTypesFromDatatypes(QStringList &types)
Definition: umldatatypewidget.cpp:298
uDebug
#define uDebug()
Definition: debug_utils.h:122
UMLApp::setActiveLanguage
void setActiveLanguage(Uml::ProgrammingLanguage::Enum pl)
Definition: uml.cpp:2514
UMLDatatypeWidget::m_entityAttribute
UMLEntityAttribute * m_entityAttribute
Definition: umldatatypewidget.h:42
Uml::ProgrammingLanguage::Cpp
@ Cpp
Definition: basictypes.h:274
types
Definition: types.py:1
MyProject\connect
connect()
Definition: namespaces-multiple.php:5
UMLDatatypeWidget::UMLDatatypeWidget
UMLDatatypeWidget(UMLAttribute *attribute, QWidget *parent=0)
Definition: umldatatypewidget.cpp:33
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:278
UMLDatatypeWidget
Definition: umldatatypewidget.h:24
UMLDoc::datatypes
UMLClassifierList datatypes(bool includeInactive=false)
Definition: umldoc.cpp:3042
UMLDoc
Definition: umldoc.h:75
UMLAttribute
Sets up attribute information.
Definition: attribute.h:28
UMLDatatypeWidget::m_attribute
UMLAttribute * m_attribute
Definition: umldatatypewidget.h:40
UMLDatatypeWidget::reset
void reset()
UMLClassifierListItemList
Definition: umlclassifierlistitemlist.h:27
UMLDatatypeWidget::insertTypesSortedParameter
void insertTypesSortedParameter(const QString &type)
Definition: umldatatypewidget.cpp:371
UMLDoc::findUMLObject
UMLObject * findUMLObject(const QString &name, UMLObject::ObjectType type=UMLObject::ot_UMLObject, UMLObject *currentObj=0)
Definition: umldoc.cpp:1067
classifier.h
uError
#define uError()
Definition: debug_utils.h:123
UMLOperation
Definition: operation.h:25
uml.h
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
debug_utils.h
Import_Utils::setRelatedClassifier
void setRelatedClassifier(UMLClassifier *c)
Definition: import_utils.cpp:92
UMLObject::ot_Template
@ ot_Template
Definition: umlobject.h:95
UMLDoc::concepts
UMLClassifierList concepts(bool includeNested=true)
Definition: umldoc.cpp:3000
UMLDatatypeWidget::applyAttribute
bool applyAttribute()
Definition: umldatatypewidget.cpp:118
ComboBoxWidgetBase::m_editField
KComboBox * m_editField
Definition: comboboxwidgetbase.h:30
UMLClassifier::findTemplate
UMLTemplate * findTemplate(const QString &name)
Definition: classifier.cpp:1119
UMLDatatypeWidget::init
void init()
Definition: umldatatypewidget.cpp:98
UMLTemplateList
QList< UMLTemplate * > UMLTemplateList
Definition: umltemplatelist.h:18
UMLTemplate
Sets up template information.
Definition: template.h:27
UMLDatatypeWidget::m_template
UMLTemplate * m_template
Definition: umldatatypewidget.h:44
UMLDatatypeWidget::applyEntityAttribute
bool applyEntityAttribute()
Definition: umldatatypewidget.cpp:164
UMLOperation::setType
void setType(UMLObject *type)
Definition: operation.cpp:94
UMLEntityAttribute
Sets up entityattribute information.
Definition: entityattribute.h:26
UMLApp::activeLanguage
Uml::ProgrammingLanguage::Enum activeLanguage() const
Definition: uml.cpp:2523
UMLClassifierListItem
A base class for classifier list items (e.g. attributes)
Definition: classifierlistitem.h:30
comboboxwidgetbase.h
UMLDatatypeWidget::insertTypesSortedEntityAttribute
void insertTypesSortedEntityAttribute(const QString &type)
Definition: umldatatypewidget.cpp:331
UMLApp::document
UMLDoc * document() const
Definition: uml.cpp:1064
umldoc.h
UMLDatatypeWidget::initTypesBox
void initTypesBox(QStringList &types, const QString &type)
Definition: umldatatypewidget.cpp:264