umbrello 26.03.70-f7b1fd3 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
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 = nullptr);
39
40 void saveToXMI(QXmlStreamWriter& writer);
41 // For loading we can use the loadFromXMI() inherited from UMLWidget.
42
43 protected:
44 QSizeF minimumSize() const;
45
46 public Q_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=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: umlcategory.h:22
UMLScene
Definition: umlscene.h:66
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:36
umlwidget.h