umbrello 26.03.70-1a62d36 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

packagewidget.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2003-2021 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef PACKAGEWIDGET_H
7#define PACKAGEWIDGET_H
8
9#include "umlwidget.h"
10
11 class UMLPackage;
12 class ListPopupMenu;
13
14#define PACKAGE_MARGIN 5
15
25 class PackageWidget : public UMLWidget
26{
27 public:
28 explicit PackageWidget(UMLScene * scene, UMLPackage * o);
29 virtual ~PackageWidget();
30
31 virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr);
32
33 void saveToXMI(QXmlStreamWriter& writer);
34
35 protected:
36 QSizeF minimumSize() const;
37};
38
39#endif
PackageWidget
A graphical version of a Package.
Definition: packagewidget.h:26
PackageWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr)
Definition: packagewidget.cpp:53
PackageWidget::~PackageWidget
virtual ~PackageWidget()
Definition: packagewidget.cpp:46
PackageWidget::minimumSize
QSizeF minimumSize() const
Definition: packagewidget.cpp:109
PackageWidget::saveToXMI
void saveToXMI(QXmlStreamWriter &writer)
Definition: packagewidget.cpp:141
UMLPackage
Non-graphical information for a Package.
Definition: umlpackage.h:28
UMLScene
Definition: umlscene.h:66
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:36
umlwidget.h