umbrello: umbrello/umlwidgets/categorywidget.h Source File

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

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

categorywidget.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2002-2021 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
14class UMLCategory;
15
31 class CategoryWidget : public UMLWidget
32{
33 Q_OBJECT
34public:
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 saveToXMI(QXmlStreamWriter& writer);
41 // For loading we can use the loadFromXMI() inherited from UMLWidget.
42
43protected:
44 QSizeF minimumSize() const;
45
46public 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:37
CategoryWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: categorywidget.cpp:44
CategoryWidget::saveToXMI
void saveToXMI(QXmlStreamWriter &writer)
Definition: categorywidget.cpp:108
CategoryWidget::slotMenuSelection
void slotMenuSelection(QAction *action)
Definition: categorywidget.cpp:121
CategoryWidget::minimumSize
QSizeF minimumSize() const
Definition: categorywidget.cpp:95
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