umbrello  2.31.70
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  * 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(QDomDocument & qDoc, QDomElement & qElement);
50 
51 protected:
52  QSizeF minimumSize() const;
53 };
54 
55 #endif
QSizeF minimumSize() const
Definition: actorwidget.cpp:95
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: actorwidget.cpp:43
virtual void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: actorwidget.cpp:85
virtual ~ActorWidget()
Definition: actorwidget.cpp:36
A graphical version of a UML Actor.
Definition: actorwidget.h:41
ActorWidget(UMLScene *scene, UMLActor *o)
Definition: actorwidget.cpp:27
Information for a non-graphical UML Actor.
Definition: actor.h:27
Definition: umlscene.h:68
The base class for graphical UML objects.
Definition: umlwidget.h:40