umbrello 2.32.3 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(QDomDocument & qDoc, QDomElement & qElement);
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
UMLCategory::ct_Disjoint_Specialisation
@ ct_Disjoint_Specialisation
Definition: category.h:33
category.h
UMLWidget::height
qreal height() const
Definition: umlwidget.h:114
CategoryWidget::CategoryWidget
CategoryWidget(UMLScene *scene, UMLCategory *o)
Definition: categorywidget.cpp:31
WidgetBase::textColor
QColor textColor() const
Definition: widgetbase.cpp:335
umlview.h
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:41
CategoryWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: categorywidget.cpp:47
UMLWidget::setPenFromSettings
void setPenFromSettings(QPainter &p)
Definition: umlwidget.cpp:1392
UMLWidget::FT_NORMAL
@ FT_NORMAL
Definition: umlwidget.h:217
UMLWidget::FT_BOLD_ITALIC
@ FT_BOLD_ITALIC
Definition: umlwidget.h:221
UMLWidget::FT_BOLD
@ FT_BOLD
Definition: umlwidget.h:218
DEBUG_REGISTER_DISABLED
#define DEBUG_REGISTER_DISABLED(src)
Definition: debug_utils.h:132
CategoryWidget
A graphical version of a UMLCategory.
Definition: categorywidget.h:37
ListPopupMenu::mt_DisjointSpecialisation
@ mt_DisjointSpecialisation
Definition: listpopupmenu.h:78
UMLObject::asUMLCategory
UMLCategory * asUMLCategory()
Definition: umlobject.cpp:1307
UC_MARGIN
#define UC_MARGIN
Definition: categorywidget.h:16
CategoryWidget::minimumSize
QSizeF minimumSize() const
Definition: categorywidget.cpp:98
UC_RADIUS
#define UC_RADIUS
Definition: categorywidget.h:17
UMLWidget::getFontMetrics
QFontMetrics & getFontMetrics(UMLWidget::FontType fontType) const
Definition: umlwidget.cpp:1936
WidgetBase::font
virtual QFont font() const
Definition: widgetbase.cpp:543
WidgetBase::umlObject
UMLObject * umlObject() const
Definition: widgetbase.cpp:182
WidgetBase::fillColor
QColor fillColor() const
Definition: widgetbase.cpp:377
umlwidget.h
uWarning
#define uWarning()
Definition: debug_utils.h:124
ListPopupMenu::MenuType
MenuType
< This type hosts all possible menu entry types
Definition: listpopupmenu.h:44
UMLCategory::setType
void setType(Category_Type type)
Definition: category.cpp:96
ListPopupMenu::mt_OverlappingSpecialisation
@ mt_OverlappingSpecialisation
Definition: listpopupmenu.h:113
WidgetBase::useFillColor
bool useFillColor()
Definition: widgetbase.cpp:419
WidgetBase
Common base class for UMLWidget and AssociationWidget.
Definition: widgetbase.h:105
CategoryWidget::~CategoryWidget
virtual ~CategoryWidget()
Definition: categorywidget.cpp:40
debug_utils.h
UMLCategory::ct_Overlapping_Specialisation
@ ct_Overlapping_Specialisation
Definition: category.h:34
UMLScene
Definition: umlscene.h:69
ListPopupMenu::typeFromAction
static MenuType typeFromAction(QAction *action)
Definition: listpopupmenu.cpp:407
CategoryWidget::saveToXMI1
void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: categorywidget.cpp:111
UMLWidget::saveToXMI1
virtual void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: umlwidget.cpp:2045
listpopupmenu.h
CategoryWidget::slotMenuSelection
void slotMenuSelection(QAction *action)
Definition: categorywidget.cpp:124
UMLCategory
Information for a non-graphical UML Category.
Definition: category.h:28
UMLWidget::FontType
FontType
Definition: umlwidget.h:216
categorywidget.h
UMLWidget::width
qreal width() const
Definition: umlwidget.h:121
WidgetBase::m_umlObject
QPointer< UMLObject > m_umlObject
Definition: widgetbase.h:317
UMLWidget::slotMenuSelection
virtual void slotMenuSelection(QAction *action)
Definition: umlwidget.cpp:768
ListPopupMenu::mt_Union
@ mt_Union
Definition: listpopupmenu.h:130
UMLWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: umlwidget.cpp:1869
UMLCategory::ct_Union
@ ct_Union
Definition: category.h:35