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

- Main Page
- Related Pages
- Topics
- Namespaces
- Classes
- Files

- File List
- File Members

usecasewidget.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 USECASEWIDGET_H
7#define USECASEWIDGET_H
8
9#include "umlwidget.h"
10
11 class UMLUseCase;
12
13#define UC_MARGIN 5
14#define UC_WIDTH 60
15#define UC_HEIGHT 30
16
17
37 class UseCaseWidget : public UMLWidget
38{
39 public:
40 UseCaseWidget(UMLScene * scene, UMLUseCase *o);
41 virtual ~UseCaseWidget();
42
43 virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
44
45 // For loading we can use the loadFromXMI() inherited from
46 // UMLWidget.
47 virtual void saveToXMI(QXmlStreamWriter& writer);
48
49 protected:
50 QSizeF minimumSize() const;
51};
52
53#endif
UMLScene
Definition umlscene.h:65
UMLUseCase
Information for a non-graphical UML UseCase.
Definition usecase.h:20
UMLWidget
The base class for graphical UML objects.
Definition umlwidget.h:36
UseCaseWidget
A graphical version of a UMLUseCase.
Definition usecasewidget.h:38
UseCaseWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition usecasewidget.cpp:39
UseCaseWidget::saveToXMI
virtual void saveToXMI(QXmlStreamWriter &writer)
Definition usecasewidget.cpp:87
UseCaseWidget::UseCaseWidget
UseCaseWidget(UMLScene *scene, UMLUseCase *o)
Definition usecasewidget.cpp:24
UseCaseWidget::minimumSize
QSizeF minimumSize() const
Definition usecasewidget.cpp:97
UseCaseWidget::~UseCaseWidget
virtual ~UseCaseWidget()
Definition usecasewidget.cpp:32
umlwidget.h