umbrello: umbrello/umlwidgets/categorywidget.h Source File

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

categorywidget.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 CATEGORYWIDGET_H
12 #define CATEGORYWIDGET_H
13
14 #include "umlwidget.h"
15
16 #define UC_MARGIN 5
17 #define UC_RADIUS 30
18
19 class UMLCategory;
20
36 class CategoryWidget : public UMLWidget
37 {
38 Q_OBJECT
39 public:
40 CategoryWidget(UMLScene * scene, UMLCategory *o);
41 virtual ~CategoryWidget();
42
43 virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
44
45 void saveToXMI1(QXmlStreamWriter& writer);
46 // For loading we can use the loadFromXMI1() inherited from UMLWidget.
47
48 protected:
49 QSizeF minimumSize() const;
50
51 public slots:
52 void slotMenuSelection(QAction* action);
53
54 };
55
56 #endif
CategoryWidget
A graphical version of a UMLCategory.
Definition: categorywidget.h:37
CategoryWidget::~CategoryWidget
virtual ~CategoryWidget()
Definition: categorywidget.cpp:41
CategoryWidget::saveToXMI1
void saveToXMI1(QXmlStreamWriter &writer)
Definition: categorywidget.cpp:112
CategoryWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: categorywidget.cpp:48
CategoryWidget::CategoryWidget
CategoryWidget(UMLScene *scene, UMLCategory *o)
Definition: categorywidget.cpp:32
CategoryWidget::slotMenuSelection
void slotMenuSelection(QAction *action)
Definition: categorywidget.cpp:125
CategoryWidget::minimumSize
QSizeF minimumSize() const
Definition: categorywidget.cpp:99
UMLCategory
Information for a non-graphical UML Category.
Definition: category.h:28
UMLScene
Definition: umlscene.h:70
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:41
umlwidget.h