umbrello: umbrello/umlwidgets/packagewidget.h Source File

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

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
11class UMLPackage;
12class ListPopupMenu;
13
14#define PACKAGE_MARGIN 5
15
25 class PackageWidget : public UMLWidget
26{
27public:
28 explicit PackageWidget(UMLScene * scene, UMLPackage * o);
29 virtual ~PackageWidget();
30
31 virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
32
33 void saveToXMI(QXmlStreamWriter& writer);
34
35protected:
36 QSizeF minimumSize() const;
37};
38
39#endif
ListPopupMenu
Displays a popup menu.
Definition: listpopupmenu.h:33
PackageWidget
A graphical version of a Package.
Definition: packagewidget.h:26
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
PackageWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: packagewidget.cpp:53
PackageWidget::PackageWidget
PackageWidget(UMLScene *scene, UMLPackage *o)
Definition: packagewidget.cpp:30
UMLPackage
Non-graphical information for a Package.
Definition: package.h:28
UMLScene
Definition: umlscene.h:65
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:36
umlwidget.h