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

- Main Page
- Related Pages
- Topics
- 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 = 0);
32
33 void saveToXMI(QXmlStreamWriter& writer);
34
35 protected:
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