umbrello: umbrello/umlwidgets/usecasewidget.h Source File

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

usecasewidget.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 USECASEWIDGET_H
12 #define USECASEWIDGET_H
13
14 #include "umlwidget.h"
15
16 class UMLUseCase;
17
18 #define UC_MARGIN 5
19 #define UC_WIDTH 60
20 #define UC_HEIGHT 30
21
22
42 class UseCaseWidget : public UMLWidget
43 {
44 public:
45 UseCaseWidget(UMLScene * scene, UMLUseCase *o);
46 virtual ~UseCaseWidget();
47
48 virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
49
50 // For loading we can use the loadFromXMI1() inherited from
51 // UMLWidget.
52 virtual void saveToXMI1(QDomDocument & qDoc, QDomElement & qElement);
53
54 protected:
55 QSizeF minimumSize() const;
56 };
57
58 #endif
UMLWidget::height
qreal height() const
Definition: umlwidget.h:114
WidgetBase::textColor
QColor textColor() const
Definition: widgetbase.cpp:335
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
UMLWidget::FT_BOLD_ITALIC
@ FT_BOLD_ITALIC
Definition: umlwidget.h:221
UMLWidget::FT_BOLD
@ FT_BOLD
Definition: umlwidget.h:218
UMLUseCase
Information for a non-graphical UML UseCase.
Definition: usecase.h:25
DEBUG_REGISTER_DISABLED
#define DEBUG_REGISTER_DISABLED(src)
Definition: debug_utils.h:132
UseCaseWidget::minimumSize
QSizeF minimumSize() const
Definition: usecasewidget.cpp:99
UseCaseWidget::saveToXMI1
virtual void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: usecasewidget.cpp:89
UC_MARGIN
#define UC_MARGIN
Definition: categorywidget.h:16
usecasewidget.h
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
UseCaseWidget::UseCaseWidget
UseCaseWidget(UMLScene *scene, UMLUseCase *o)
Definition: usecasewidget.cpp:26
umlwidget.h
UC_HEIGHT
#define UC_HEIGHT
Definition: usecasewidget.h:20
WidgetBase::useFillColor
bool useFillColor()
Definition: widgetbase.cpp:419
WidgetBase
Common base class for UMLWidget and AssociationWidget.
Definition: widgetbase.h:105
UC_WIDTH
#define UC_WIDTH
Definition: usecasewidget.h:19
UseCaseWidget
A graphical version of a UMLUseCase.
Definition: usecasewidget.h:43
UseCaseWidget::~UseCaseWidget
virtual ~UseCaseWidget()
Definition: usecasewidget.cpp:34
UseCaseWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: usecasewidget.cpp:41
debug_utils.h
usecase.h
UMLScene
Definition: umlscene.h:69
UMLWidget::saveToXMI1
virtual void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: umlwidget.cpp:2045
UMLWidget::FontType
FontType
Definition: umlwidget.h:216
UMLObject::stereotype
QString stereotype(bool includeAdornments=false) const
Definition: umlobject.cpp:558
UMLWidget::width
qreal width() const
Definition: umlwidget.h:121
WidgetBase::m_umlObject
QPointer< UMLObject > m_umlObject
Definition: widgetbase.h:317
UMLWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: umlwidget.cpp:1869