umbrello  2.31.90
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:
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(QXmlStreamWriter& writer);
40 
41 public Q_SLOTS:
42 
43 protected:
44  QSizeF minimumSize() const;
45 
46 };
47 
48 #endif
A graphical version of an datatype.
Definition: datatypewidget.h:30
QSizeF minimumSize() const
Definition: datatypewidget.cpp:105
virtual ~DatatypeWidget()
Definition: datatypewidget.cpp:44
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: datatypewidget.cpp:51
void saveToXMI1(QXmlStreamWriter &writer)
Definition: datatypewidget.cpp:95
DatatypeWidget(UMLScene *scene, UMLClassifier *d)
Definition: datatypewidget.cpp:35
bool loadFromXMI1(QDomElement &qElement)
Definition: datatypewidget.cpp:87
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
Definition: umlscene.h:70
The base class for graphical UML objects.
Definition: umlwidget.h:41