umbrello: umbrello/umlwidgets/categorywidget.h Source File

umbrello 2.39.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-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 = nullptr);
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 Q_SLOTS:
47 void slotMenuSelection(QAction* action);
48
49};
50
51#endif
CategoryWidget::~CategoryWidget
virtual ~CategoryWidget()
Definition categorywidget.cpp:37
CategoryWidget::CategoryWidget
CategoryWidget(UMLScene *scene, UMLCategory *o)
Definition categorywidget.cpp:28
CategoryWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr)
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::UMLWidget
UMLWidget(UMLScene *scene, WidgetType type=wt_UMLWidget, UMLObject *o=nullptr)
Definition umlwidget.cpp:86
umlwidget.h