umbrello: umbrello/umlwidgets/categorywidget.h Source File

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

categorywidget.h
Go to the documentation of this file.
1 /*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2002-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4 */
5
6 #ifndef CATEGORYWIDGET_H
7 #define CATEGORYWIDGET_H
8
9 #include "umlwidget.h"
10
11 #define UC_MARGIN 5
12 #define UC_RADIUS 30
13
14 class UMLCategory;
15
31 class CategoryWidget : public UMLWidget
32 {
33 Q_OBJECT
34 public:
35 CategoryWidget(UMLScene * scene, UMLCategory *o);
36 virtual ~CategoryWidget();
37
38 virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
39
40 void saveToXMI1(QXmlStreamWriter& writer);
41 // For loading we can use the loadFromXMI1() inherited from UMLWidget.
42
43 protected:
44 QSizeF minimumSize() const;
45
46 public slots:
47 void slotMenuSelection(QAction* action);
48
49 };
50
51 #endif
CategoryWidget
A graphical version of a UMLCategory.
Definition: categorywidget.h:32
CategoryWidget::~CategoryWidget
virtual ~CategoryWidget()
Definition: categorywidget.cpp:36
CategoryWidget::saveToXMI1
void saveToXMI1(QXmlStreamWriter &writer)
Definition: categorywidget.cpp:107
CategoryWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: categorywidget.cpp:43
CategoryWidget::CategoryWidget
CategoryWidget(UMLScene *scene, UMLCategory *o)
Definition: categorywidget.cpp:27
CategoryWidget::slotMenuSelection
void slotMenuSelection(QAction *action)
Definition: categorywidget.cpp:120
CategoryWidget::minimumSize
QSizeF minimumSize() const
Definition: categorywidget.cpp:94
UMLCategory
Information for a non-graphical UML Category.
Definition: category.h:22
UMLScene
Definition: umlscene.h:65
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:36
umlwidget.h