umbrello: umbrello/umlwidgets/componentwidget.h Source File

umbrello 2.38.2 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

componentwidget.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2003-2021 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef COMPONENTWIDGET_H
7#define COMPONENTWIDGET_H
8
9#include "umlwidget.h"
10
11class UMLComponent;
12
13#define COMPONENT_MARGIN 10
14
24 class ComponentWidget : public UMLWidget
25{
26 Q_OBJECT
27public:
28 ComponentWidget(UMLScene * scene, UMLComponent *c);
29 virtual ~ComponentWidget();
30
31 virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
32 virtual void moveWidgetBy(qreal diffX, qreal diffY);
33 virtual void adjustAssocs(qreal dx, qreal dy);
34 virtual void adjustUnselectedAssocs(qreal dx, qreal dy);
35
36 virtual void saveToXMI(QXmlStreamWriter& writer);
37
38signals:
47 void sigCompMoved(qreal diffX, qreal diffY);
48
49protected:
50 QSizeF minimumSize() const;
51
52};
53
54#endif
ComponentWidget
A graphical version of a Component.
Definition: componentwidget.h:25
ComponentWidget::saveToXMI
virtual void saveToXMI(QXmlStreamWriter &writer)
Definition: componentwidget.cpp:185
ComponentWidget::~ComponentWidget
virtual ~ComponentWidget()
Definition: componentwidget.cpp:45
ComponentWidget::sigCompMoved
void sigCompMoved(qreal diffX, qreal diffY)
ComponentWidget::moveWidgetBy
virtual void moveWidgetBy(qreal diffX, qreal diffY)
Definition: componentwidget.cpp:132
ComponentWidget::adjustUnselectedAssocs
virtual void adjustUnselectedAssocs(qreal dx, qreal dy)
Definition: componentwidget.cpp:163
ComponentWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: componentwidget.cpp:53
ComponentWidget::adjustAssocs
virtual void adjustAssocs(qreal dx, qreal dy)
Definition: componentwidget.cpp:141
ComponentWidget::minimumSize
QSizeF minimumSize() const
Definition: componentwidget.cpp:195
UMLComponent
Non-graphical information for a Component.
Definition: component.h:23
UMLScene
Definition: umlscene.h:65
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:36
umlwidget.h