umbrello: umbrello/umlwidgets/actorwidget.h Source File

umbrello 2.32.1 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
UMLWidget::height
qreal height() const
Definition: umlwidget.h:114
WidgetBase::textColor
QColor textColor() const
Definition: widgetbase.cpp:335
ActorWidget::saveToXMI1
virtual void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: actorwidget.cpp:85
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
UMLWidget::FT_NORMAL
@ FT_NORMAL
Definition: umlwidget.h:217
DEBUG_REGISTER_DISABLED
#define DEBUG_REGISTER_DISABLED(src)
Definition: debug_utils.h:132
ActorWidget::minimumSize
QSizeF minimumSize() const
Definition: actorwidget.cpp:95
ActorWidget::~ActorWidget
virtual ~ActorWidget()
Definition: actorwidget.cpp:36
A_WIDTH
#define A_WIDTH
Definition: actorwidget.h:16
ActorWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: actorwidget.cpp:43
A_MARGIN
#define A_MARGIN
Definition: actorwidget.h:18
actorwidget.h
A_HEIGHT
#define A_HEIGHT
Definition: actorwidget.h:17
UMLWidget::getFontMetrics
QFontMetrics & getFontMetrics(UMLWidget::FontType fontType) const
Definition: umlwidget.cpp:1936
WidgetBase::font
virtual QFont font() const
Definition: widgetbase.cpp:543
WidgetBase::umlObject
UMLObject * umlObject() const
Definition: widgetbase.cpp:182
WidgetBase::fillColor
QColor fillColor() const
Definition: widgetbase.cpp:377
UMLActor
Information for a non-graphical UML Actor.
Definition: actor.h:28
a
QString a
Definition: petalnode.cpp:18
umlwidget.h
ActorWidget::ActorWidget
ActorWidget(UMLScene *scene, UMLActor *o)
Definition: actorwidget.cpp:27
WidgetBase::useFillColor
bool useFillColor()
Definition: widgetbase.cpp:419
WidgetBase
Common base class for UMLWidget and AssociationWidget.
Definition: widgetbase.h:105
debug_utils.h
UMLScene
Definition: umlscene.h:69
actor.h
UMLWidget::saveToXMI1
virtual void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: umlwidget.cpp:2045
UMLObject::stereotype
QString stereotype(bool includeAdornments=false) const
Definition: umlobject.cpp:558
UMLWidget::width
qreal width() const
Definition: umlwidget.h:121
UMLWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: umlwidget.cpp:1869
ActorWidget
A graphical version of a UML Actor.
Definition: actorwidget.h:42