umbrello
2.32.3
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
umbrello
umlwidgets
actorwidget.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) 2002-2020 *
8
* Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9
***************************************************************************/
10
11
#ifndef ACTORWIDGET_H
12
#define ACTORWIDGET_H
13
14
#include "
umlwidget.h
"
15
16
#define A_WIDTH 20
17
#define A_HEIGHT 40
18
#define A_MARGIN 5
19
20
class
UMLActor
;
21
41
class
ActorWidget
:
public
UMLWidget
42
{
43
public
:
44
ActorWidget
(
UMLScene
* scene,
UMLActor
*o);
45
virtual
~ActorWidget
();
46
47
virtual
void
paint
(QPainter *painter,
const
QStyleOptionGraphicsItem *option, QWidget *widget = 0);
48
49
virtual
void
saveToXMI1
(QXmlStreamWriter& writer);
50
51
protected
:
52
QSizeF
minimumSize
()
const
;
53
};
54
55
#endif
ActorWidget
A graphical version of a UML Actor.
Definition:
actorwidget.h:42
ActorWidget::saveToXMI1
virtual void saveToXMI1(QXmlStreamWriter &writer)
Definition:
actorwidget.cpp:88
ActorWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition:
actorwidget.cpp:46
ActorWidget::ActorWidget
ActorWidget(UMLScene *scene, UMLActor *o)
Definition:
actorwidget.cpp:30
ActorWidget::~ActorWidget
virtual ~ActorWidget()
Definition:
actorwidget.cpp:39
ActorWidget::minimumSize
QSizeF minimumSize() const
Definition:
actorwidget.cpp:98
UMLActor
Information for a non-graphical UML Actor.
Definition:
actor.h:28
UMLScene
Definition:
umlscene.h:70
UMLWidget
The base class for graphical UML objects.
Definition:
umlwidget.h:41
umlwidget.h
Generated by
1.9.1