umbrello: umbrello/umlwidgets/datatypewidget.h Source File

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

datatypewidget.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) 2003-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef DATATYPEWIDGET_H
12 #define DATATYPEWIDGET_H
13
14 #include "umlwidget.h"
15
16 class UMLClassifier;
17
18 #define DATATYPE_MARGIN 5
19
29 class DatatypeWidget : public UMLWidget
30 {
31 Q_OBJECT
32 public:
33 DatatypeWidget(UMLScene *scene, UMLClassifier *d);
34 virtual ~DatatypeWidget();
35
36 virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
37
38 bool loadFromXMI1(QDomElement& qElement);
39 void saveToXMI1(QDomDocument& qDoc, QDomElement& qElement);
40
41 public Q_SLOTS:
42
43 protected:
44 QSizeF minimumSize() const;
45
46 };
47
48 #endif
UMLWidget::height
qreal height() const
Definition: umlwidget.h:114
WidgetBase::textColor
QColor textColor() const
Definition: widgetbase.cpp:335
umlview.h
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:41
WidgetBase::name
QString name() const
Definition: widgetbase.cpp:309
DatatypeWidget::minimumSize
QSizeF minimumSize() const
Definition: datatypewidget.cpp:104
UMLWidget::setPenFromSettings
void setPenFromSettings(QPainter &p)
Definition: umlwidget.cpp:1392
UMLWidget::FT_NORMAL
@ FT_NORMAL
Definition: umlwidget.h:217
UMLWidget::FT_BOLD_ITALIC
@ FT_BOLD_ITALIC
Definition: umlwidget.h:221
UMLWidget::FT_BOLD
@ FT_BOLD
Definition: umlwidget.h:218
DatatypeWidget::loadFromXMI1
bool loadFromXMI1(QDomElement &qElement)
Definition: datatypewidget.cpp:86
DatatypeWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: datatypewidget.cpp:50
operation.h
DEBUG_REGISTER_DISABLED
#define DEBUG_REGISTER_DISABLED(src)
Definition: debug_utils.h:132
DatatypeWidget::saveToXMI1
void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: datatypewidget.cpp:94
UMLScene::backgroundColor
const QColor & backgroundColor() const
Definition: umlscene.cpp:1355
datatypewidget.h
DatatypeWidget::DatatypeWidget
DatatypeWidget(UMLScene *scene, UMLClassifier *d)
Definition: datatypewidget.cpp:34
DATATYPE_MARGIN
#define DATATYPE_MARGIN
Definition: datatypewidget.h:18
UMLWidget::getFontMetrics
QFontMetrics & getFontMetrics(UMLWidget::FontType fontType) const
Definition: umlwidget.cpp:1936
WidgetBase::font
virtual QFont font() const
Definition: widgetbase.cpp:543
WidgetBase::fillColor
QColor fillColor() const
Definition: widgetbase.cpp:377
classifierlistitem.h
DatatypeWidget::~DatatypeWidget
virtual ~DatatypeWidget()
Definition: datatypewidget.cpp:43
DatatypeWidget
A graphical version of an datatype.
Definition: datatypewidget.h:30
umlwidget.h
UMLWidget::minimumSize
virtual QSizeF minimumSize() const
Definition: umlwidget.cpp:219
WidgetBase::m_scene
UMLScene * m_scene
Definition: widgetbase.h:316
WidgetBase::useFillColor
bool useFillColor()
Definition: widgetbase.cpp:419
WidgetBase
Common base class for UMLWidget and AssociationWidget.
Definition: widgetbase.h:105
classifier.h
umlscene.h
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
debug_utils.h
UMLScene
Definition: umlscene.h:69
UMLWidget::saveToXMI1
virtual void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: umlwidget.cpp:2045
UMLWidget::width
qreal width() const
Definition: umlwidget.h:121
WidgetBase::m_umlObject
QPointer< UMLObject > m_umlObject
Definition: widgetbase.h:317
UMLWidget::loadFromXMI1
virtual bool loadFromXMI1(QDomElement &qElement)
Definition: umlwidget.cpp:2067
umldoc.h
UMLWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: umlwidget.cpp:1869