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

umldatatypewidget.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2016-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef UMLDATATYPEWIDGET_H
7#define UMLDATATYPEWIDGET_H
8
9#include "comboboxwidgetbase.h"
10
11 class UMLAttribute;
12 class UMLEntityAttribute;
13 class UMLClassifier;
14 class UMLClassifierListItem;
15 class UMLOperation;
16 class UMLTemplate;
17
18 class UMLDatatypeWidget : public ComboBoxWidgetBase
19{
20 Q_OBJECT
21 public:
22 UMLDatatypeWidget(UMLAttribute *attribute, QWidget *parent=0);
23 UMLDatatypeWidget(UMLClassifierListItem *datatype, QWidget *parent=0);
24 UMLDatatypeWidget(UMLEntityAttribute *entityAttribute, QWidget *parent=0);
25 UMLDatatypeWidget(UMLOperation *operation, QWidget *parent=0);
26 UMLDatatypeWidget(UMLTemplate *_template, QWidget *parent=0);
27
28 bool apply();
29 void reset();
30
31Q_SIGNALS:
32 void editTextChanged(const QString &);
33
34 protected:
35 UMLAttribute *m_attribute;
36 UMLClassifierListItem *m_datatype;
37 UMLEntityAttribute *m_entityAttribute;
38 UMLOperation *m_operation;
39 UMLTemplate *m_template;
40 UMLClassifier *m_parent;
41 void init();
42 bool applyAttribute();
43 bool applyEntityAttribute();
44 bool applyOperation();
45 bool applyParameter();
46 bool applyTemplate();
47 void initTypesBox(QStringList &types, const QString &type);
48 void insertTypesFromConcepts(QStringList &types, bool fullName = true);
49 void insertTypesFromDatatypes(QStringList &types);
50 void insertTypesSortedAttribute(const QString &type);
51 void insertTypesSortedEntityAttribute(const QString &type);
52 void insertTypesSortedOperation(const QString &type);
53 void insertTypesSortedParameter(const QString &type);
54 void insertTypesSortedTemplate(const QString &type);
55};
56
57#endif
ComboBoxWidgetBase
Definition comboboxwidgetbase.h:16
UMLAttribute
Sets up attribute information.
Definition attribute.h:23
UMLClassifierListItem
A base class for classifier list items (e.g. attributes)
Definition classifierlistitem.h:25
UMLClassifier
Information for a non-graphical Concept/Class.
Definition classifier.h:35
UMLDatatypeWidget
Definition umldatatypewidget.h:19
UMLDatatypeWidget::applyOperation
bool applyOperation()
Definition umldatatypewidget.cpp:190
UMLDatatypeWidget::m_operation
UMLOperation * m_operation
Definition umldatatypewidget.h:38
UMLDatatypeWidget::m_entityAttribute
UMLEntityAttribute * m_entityAttribute
Definition umldatatypewidget.h:37
UMLDatatypeWidget::insertTypesFromDatatypes
void insertTypesFromDatatypes(QStringList &types)
Definition umldatatypewidget.cpp:298
UMLDatatypeWidget::m_attribute
UMLAttribute * m_attribute
Definition umldatatypewidget.h:35
UMLDatatypeWidget::editTextChanged
void editTextChanged(const QString &)
UMLDatatypeWidget::m_datatype
UMLClassifierListItem * m_datatype
Definition umldatatypewidget.h:36
UMLDatatypeWidget::apply
bool apply()
Definition umldatatypewidget.cpp:101
UMLDatatypeWidget::m_template
UMLTemplate * m_template
Definition umldatatypewidget.h:39
UMLDatatypeWidget::initTypesBox
void initTypesBox(QStringList &types, const QString &type)
Definition umldatatypewidget.cpp:263
UMLDatatypeWidget::insertTypesSortedTemplate
void insertTypesSortedTemplate(const QString &type)
Definition umldatatypewidget.cpp:395
UMLDatatypeWidget::applyEntityAttribute
bool applyEntityAttribute()
Definition umldatatypewidget.cpp:162
UMLDatatypeWidget::insertTypesFromConcepts
void insertTypesFromConcepts(QStringList &types, bool fullName=true)
Definition umldatatypewidget.cpp:285
UMLDatatypeWidget::m_parent
UMLClassifier * m_parent
Definition umldatatypewidget.h:40
UMLDatatypeWidget::insertTypesSortedAttribute
void insertTypesSortedAttribute(const QString &type)
Definition umldatatypewidget.cpp:321
UMLDatatypeWidget::insertTypesSortedOperation
void insertTypesSortedOperation(const QString &type)
Definition umldatatypewidget.cpp:344
UMLDatatypeWidget::init
void init()
Definition umldatatypewidget.cpp:96
UMLDatatypeWidget::applyTemplate
bool applyTemplate()
Definition umldatatypewidget.cpp:241
UMLDatatypeWidget::insertTypesSortedEntityAttribute
void insertTypesSortedEntityAttribute(const QString &type)
Definition umldatatypewidget.cpp:331
UMLDatatypeWidget::insertTypesSortedParameter
void insertTypesSortedParameter(const QString &type)
Definition umldatatypewidget.cpp:371
UMLDatatypeWidget::reset
void reset()
UMLDatatypeWidget::applyAttribute
bool applyAttribute()
Definition umldatatypewidget.cpp:116
UMLDatatypeWidget::applyParameter
bool applyParameter()
Definition umldatatypewidget.cpp:204
UMLDatatypeWidget::UMLDatatypeWidget
UMLDatatypeWidget(UMLAttribute *attribute, QWidget *parent=0)
Definition umldatatypewidget.cpp:31
UMLEntityAttribute
Sets up entityattribute information.
Definition entityattribute.h:21
UMLOperation
Definition operation.h:20
UMLTemplate
Sets up template information.
Definition template.h:22
comboboxwidgetbase.h
types
Definition types.py:1