umbrello: umbrello/umlwidgets/actorwidget.h Source File

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

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 = nullptr);
43
44 virtual void saveToXMI(QXmlStreamWriter& writer);
45
46protected:
47 QSizeF minimumSize() const;
48};
49
50#endif
ActorWidget::saveToXMI
virtual void saveToXMI(QXmlStreamWriter &writer)
Definition actorwidget.cpp:83
ActorWidget::ActorWidget
ActorWidget(UMLScene *scene, UMLActor *o)
Definition actorwidget.cpp:25
ActorWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr)
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::UMLWidget
UMLWidget(UMLScene *scene, WidgetType type=wt_UMLWidget, UMLObject *o=nullptr)
Definition umlwidget.cpp:86
umlwidget.h