umbrello  2.31.90
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
A graphical version of a UMLCategory.
Definition: categorywidget.h:37
virtual ~CategoryWidget()
Definition: categorywidget.cpp:41
void saveToXMI1(QXmlStreamWriter &writer)
Definition: categorywidget.cpp:112
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: categorywidget.cpp:48
CategoryWidget(UMLScene *scene, UMLCategory *o)
Definition: categorywidget.cpp:32
void slotMenuSelection(QAction *action)
Definition: categorywidget.cpp:125
QSizeF minimumSize() const
Definition: categorywidget.cpp:99
Information for a non-graphical UML Category.
Definition: category.h:28
Definition: umlscene.h:70
The base class for graphical UML objects.
Definition: umlwidget.h:41