umbrello: umbrello/dialogs/widgets/umldatatypewidget.h Source File

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
ComboBoxWidgetBase
Definition: comboboxwidgetbase.h:21
UMLAttribute
Sets up attribute information.
Definition: attribute.h:28
UMLClassifierListItem
A base class for classifier list items (e.g. attributes)
Definition: classifierlistitem.h:30
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
UMLDatatypeWidget
Definition: umldatatypewidget.h:24
UMLDatatypeWidget::applyOperation
bool applyOperation()
Definition: umldatatypewidget.cpp:192
UMLDatatypeWidget::m_operation
UMLOperation * m_operation
Definition: umldatatypewidget.h:43
UMLDatatypeWidget::m_entityAttribute
UMLEntityAttribute * m_entityAttribute
Definition: umldatatypewidget.h:42
UMLDatatypeWidget::insertTypesFromDatatypes
void insertTypesFromDatatypes(QStringList &types)
Definition: umldatatypewidget.cpp:298
UMLDatatypeWidget::m_attribute
UMLAttribute * m_attribute
Definition: umldatatypewidget.h:40
UMLDatatypeWidget::editTextChanged
void editTextChanged(const QString &)
UMLDatatypeWidget::m_datatype
UMLClassifierListItem * m_datatype
Definition: umldatatypewidget.h:41
UMLDatatypeWidget::apply
bool apply()
Definition: umldatatypewidget.cpp:103
UMLDatatypeWidget::m_template
UMLTemplate * m_template
Definition: umldatatypewidget.h:44
UMLDatatypeWidget::initTypesBox
void initTypesBox(QStringList &types, const QString &type)
Definition: umldatatypewidget.cpp:264
UMLDatatypeWidget::insertTypesSortedTemplate
void insertTypesSortedTemplate(const QString &type)
Definition: umldatatypewidget.cpp:395
UMLDatatypeWidget::applyEntityAttribute
bool applyEntityAttribute()
Definition: umldatatypewidget.cpp:164
UMLDatatypeWidget::insertTypesFromConcepts
void insertTypesFromConcepts(QStringList &types, bool fullName=true)
Definition: umldatatypewidget.cpp:285
UMLDatatypeWidget::m_parent
UMLClassifier * m_parent
Definition: umldatatypewidget.h:45
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:98
UMLDatatypeWidget::applyTemplate
bool applyTemplate()
Definition: umldatatypewidget.cpp:242
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:118
UMLDatatypeWidget::applyParameter
bool applyParameter()
Definition: umldatatypewidget.cpp:206
UMLDatatypeWidget::UMLDatatypeWidget
UMLDatatypeWidget(UMLAttribute *attribute, QWidget *parent=0)
Definition: umldatatypewidget.cpp:33
UMLEntityAttribute
Sets up entityattribute information.
Definition: entityattribute.h:26
UMLOperation
Definition: operation.h:25
UMLTemplate
Sets up template information.
Definition: template.h:27
comboboxwidgetbase.h
types
Definition: types.py:1