umbrello  2.32.0
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(QXmlStreamWriter& writer);
53 
54 protected:
55  QSizeF minimumSize() const;
56 };
57 
58 #endif
Definition: umlscene.h:70
Information for a non-graphical UML UseCase.
Definition: usecase.h:25
The base class for graphical UML objects.
Definition: umlwidget.h:41
A graphical version of a UMLUseCase.
Definition: usecasewidget.h:43
virtual void saveToXMI1(QXmlStreamWriter &writer)
Definition: usecasewidget.cpp:92
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: usecasewidget.cpp:44
UseCaseWidget(UMLScene *scene, UMLUseCase *o)
Definition: usecasewidget.cpp:29
QSizeF minimumSize() const
Definition: usecasewidget.cpp:102
virtual ~UseCaseWidget()
Definition: usecasewidget.cpp:37