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

defaultvaluewidget.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) 2018-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef DEFAULTVALUEWIDGET_H
12 #define DEFAULTVALUEWIDGET_H
13
14 #include <QWidget>
15
16 class UMLObject;
17
18 class QGridLayout;
19 class QString;
20
30 class DefaultValueWidget : public QWidget
31 {
32 Q_OBJECT
33 public:
34 explicit DefaultValueWidget(UMLObject *type, const QString &value, QWidget *parent = nullptr);
35 ~DefaultValueWidget();
36
37 void addToLayout(QGridLayout *layout, int row);
38
39 QString value() const;
40
41 public slots:
42 void setType(UMLObject *type);
43 void setType(const QString &type);
44
45 protected:
46 void showEvent(QShowEvent *event);
47 void hideEvent(QHideEvent *event);
48
49 private:
50 class Private;
51 Private *m_d;
52 };
53
54 #endif // DEFAULTVALUEWIDGET_H
DefaultValueWidget::DefaultValueWidget
DefaultValueWidget(UMLObject *type, const QString &value, QWidget *parent=nullptr)
Definition: defaultvaluewidget.cpp:107
datatype.h
defaultvaluewidget.h
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
DefaultValueWidget::Private::listWidget
QPointer< QListWidget > listWidget
Definition: defaultvaluewidget.cpp:30
UMLClassifier::getFilteredList
virtual UMLClassifierListItemList getFilteredList(UMLObject::ObjectType ot) const
Definition: classifier.cpp:998
DefaultValueWidget::hideEvent
void hideEvent(QHideEvent *event)
Definition: defaultvaluewidget.cpp:187
DefaultValueWidget::Private::value
QString value() const
Definition: defaultvaluewidget.cpp:97
DefaultValueWidget::m_d
Private * m_d
Definition: defaultvaluewidget.h:50
DefaultValueWidget::setType
void setType(UMLObject *type)
Definition: defaultvaluewidget.cpp:123
DefaultValueWidget::~DefaultValueWidget
~DefaultValueWidget()
Definition: defaultvaluewidget.cpp:113
UMLObject::ot_UMLObject
@ ot_UMLObject
Definition: umlobject.h:82
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
DefaultValueWidget::Private::setValue
void setValue(const QString &value)
Definition: defaultvaluewidget.cpp:92
DefaultValueWidget::Private::initialValue
QString initialValue
Definition: defaultvaluewidget.cpp:32
DefaultValueWidget::Private::setupWidget
void setupWidget()
Definition: defaultvaluewidget.cpp:60
UMLObject::ot_EnumLiteral
@ ot_EnumLiteral
Definition: umlobject.h:94
DefaultValueWidget::Private::p
DefaultValueWidget * p
Definition: defaultvaluewidget.cpp:27
DefaultValueWidget
Definition: defaultvaluewidget.h:31
DefaultValueWidget::Private::Private
Private(DefaultValueWidget *parent, UMLObject *_type, const QString &_value)
Definition: defaultvaluewidget.cpp:34
i18n
#define i18n
Definition: main.cpp:39
DefaultValueWidget::Private::lineWidget
QPointer< KLineEdit > lineWidget
Definition: defaultvaluewidget.cpp:31
DefaultValueWidget::Private
Definition: defaultvaluewidget.cpp:25
DefaultValueWidget::value
QString value() const
Definition: defaultvaluewidget.cpp:164
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:278
UMLClassifierListItemList
Definition: umlclassifierlistitemlist.h:27
UMLDoc::findUMLObject
UMLObject * findUMLObject(const QString &name, UMLObject::ObjectType type=UMLObject::ot_UMLObject, UMLObject *currentObj=0)
Definition: umldoc.cpp:1067
uml.h
DefaultValueWidget::Private::label
QPointer< QLabel > label
Definition: defaultvaluewidget.cpp:29
DefaultValueWidget::Private::type
QPointer< UMLObject > type
Definition: defaultvaluewidget.cpp:28
DefaultValueWidget::Private::setVisible
void setVisible(bool state)
Definition: defaultvaluewidget.cpp:80
DefaultValueWidget::addToLayout
void addToLayout(QGridLayout *layout, int row)
Definition: defaultvaluewidget.cpp:153
DefaultValueWidget::showEvent
void showEvent(QShowEvent *event)
Definition: defaultvaluewidget.cpp:175
UMLClassifierListItem
A base class for classifier list items (e.g. attributes)
Definition: classifierlistitem.h:30
UMLEnum
Non-graphical Information for an Enum.
Definition: enum.h:29
UMLApp::document
UMLDoc * document() const
Definition: uml.cpp:1064
umldoc.h
enum.h