umbrello: umbrello/umlwidgets/actorwidget.h Source File

umbrello 2.38.1 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

actorwidget.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2002-2021 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef ACTORWIDGET_H
7#define ACTORWIDGET_H
8
9#include "umlwidget.h"
10
11#define A_WIDTH 20
12#define A_HEIGHT 40
13#define A_MARGIN 5
14
15class UMLActor;
16
36 class ActorWidget : public UMLWidget
37{
38public:
39 ActorWidget(UMLScene * scene, UMLActor *o);
40 virtual ~ActorWidget();
41
42 virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
43
44 virtual void saveToXMI(QXmlStreamWriter& writer);
45
46protected:
47 QSizeF minimumSize() const;
48};
49
50#endif
ActorWidget
A graphical version of a UML Actor.
Definition: actorwidget.h:37
ActorWidget::saveToXMI
virtual void saveToXMI(QXmlStreamWriter &writer)
Definition: actorwidget.cpp:83
ActorWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: actorwidget.cpp:41
ActorWidget::~ActorWidget
virtual ~ActorWidget()
Definition: actorwidget.cpp:34
ActorWidget::minimumSize
QSizeF minimumSize() const
Definition: actorwidget.cpp:93
UMLActor
Information for a non-graphical UML Actor.
Definition: actor.h:23
UMLScene
Definition: umlscene.h:65
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:36
umlwidget.h