umbrello  2.32.3
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  * This program is free software; you can redistribute it and/or modify *
3  * it under the terms of the GNU General Public License as published by *
4  * the Free Software Foundation; either version 2 of the License, or *
5  * (at your option) any later version. *
6  * *
7  * copyright (C) 2003-2020 *
8  * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9  ***************************************************************************/
10 
11 #ifndef PACKAGEWIDGET_H
12 #define PACKAGEWIDGET_H
13 
14 #include "umlwidget.h"
15 
16 class UMLPackage;
17 class ListPopupMenu;
18 
19 #define PACKAGE_MARGIN 5
20 
30 class PackageWidget : public UMLWidget
31 {
32 public:
33  explicit PackageWidget(UMLScene * scene, UMLPackage * o);
34  virtual ~PackageWidget();
35 
36  virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
37 
38  void saveToXMI1(QDomDocument& qDoc, QDomElement& qElement);
39 
40 protected:
41  QSizeF minimumSize() const;
42 };
43 
44 #endif
Displays a popup menu.
Definition: listpopupmenu.h:38
A graphical version of a Package.
Definition: packagewidget.h:31
virtual ~PackageWidget()
Definition: packagewidget.cpp:50
QSizeF minimumSize() const
Definition: packagewidget.cpp:113
void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: packagewidget.cpp:145
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: packagewidget.cpp:57
PackageWidget(UMLScene *scene, UMLPackage *o)
Definition: packagewidget.cpp:34
Non-graphical information for a Package.
Definition: package.h:33
Definition: umlscene.h:69
The base class for graphical UML objects.
Definition: umlwidget.h:41