umbrello: umbrello/umlwidgets/packagewidget.h Source File

umbrello 2.31.1 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
UMLWidget::height
qreal height() const
Definition: umlwidget.h:114
WidgetBase::textColor
QColor textColor() const
Definition: widgetbase.cpp:335
umlview.h
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:41
WidgetBase::name
QString name() const
Definition: widgetbase.cpp:309
UMLWidget::setPenFromSettings
void setPenFromSettings(QPainter &p)
Definition: umlwidget.cpp:1392
PackageWidget::~PackageWidget
virtual ~PackageWidget()
Definition: packagewidget.cpp:50
UMLWidget::FT_BOLD_ITALIC
@ FT_BOLD_ITALIC
Definition: umlwidget.h:221
UMLWidget::FT_BOLD
@ FT_BOLD
Definition: umlwidget.h:218
DEBUG_REGISTER_DISABLED
#define DEBUG_REGISTER_DISABLED(src)
Definition: debug_utils.h:132
PackageWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: packagewidget.cpp:57
UMLScene::backgroundColor
const QColor & backgroundColor() const
Definition: umlscene.cpp:1355
PackageWidget::minimumSize
QSizeF minimumSize() const
Definition: packagewidget.cpp:113
packagewidget.h
PackageWidget::PackageWidget
PackageWidget(UMLScene *scene, UMLPackage *o)
Definition: packagewidget.cpp:34
PACKAGE_MARGIN
#define PACKAGE_MARGIN
Definition: packagewidget.h:19
UMLWidget::getFontMetrics
QFontMetrics & getFontMetrics(UMLWidget::FontType fontType) const
Definition: umlwidget.cpp:1936
WidgetBase::font
virtual QFont font() const
Definition: widgetbase.cpp:543
WidgetBase::fillColor
QColor fillColor() const
Definition: widgetbase.cpp:377
PackageWidget
A graphical version of a Package.
Definition: packagewidget.h:31
umlwidget.h
UMLWidget::minimumSize
virtual QSizeF minimumSize() const
Definition: umlwidget.cpp:219
WidgetBase::m_scene
UMLScene * m_scene
Definition: widgetbase.h:316
Settings::ClassState::showStereoType
bool showStereoType
Definition: optionstate.h:132
WidgetBase::useFillColor
bool useFillColor()
Definition: widgetbase.cpp:419
ListPopupMenu
Displays a popup menu.
Definition: listpopupmenu.h:38
WidgetBase
Common base class for UMLWidget and AssociationWidget.
Definition: widgetbase.h:105
Settings::OptionState
Definition: optionstate.h:322
Settings::OptionState::classState
ClassState classState
Definition: optionstate.h:337
umlscene.h
uml.h
debug_utils.h
UMLScene::optionState
Settings::OptionState & optionState()
Definition: umlscene.cpp:571
UMLScene
Definition: umlscene.h:69
umlobject.h
PackageWidget::saveToXMI1
void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: packagewidget.cpp:145
UMLWidget::saveToXMI1
virtual void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: umlwidget.cpp:2045
SeqLineWidget::m_scene
UMLScene * m_scene
scene displayed on
Definition: seqlinewidget.h:69
package.h
UMLWidget::width
qreal width() const
Definition: umlwidget.h:121
WidgetBase::m_umlObject
QPointer< UMLObject > m_umlObject
Definition: widgetbase.h:317
umldoc.h
UMLWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: umlwidget.cpp:1869
UMLPackage
Non-graphical information for a Package.
Definition: package.h:33