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

- Main Page
- Related Pages
- Modules
- 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 = nullptr);
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:66
UMLUseCase
Information for a non-graphical UML UseCase.
Definition: umlusecase.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::saveToXMI
virtual void saveToXMI(QXmlStreamWriter &writer)
Definition: usecasewidget.cpp:87
UseCaseWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr)
Definition: usecasewidget.cpp:39
UseCaseWidget::minimumSize
QSizeF minimumSize() const
Definition: usecasewidget.cpp:97
UseCaseWidget::~UseCaseWidget
virtual ~UseCaseWidget()
Definition: usecasewidget.cpp:32
umlwidget.h