umbrello 26.03.70-f7b1fd3 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
11 class UMLComponent;
12
13#define COMPONENT_MARGIN 10
14
24 class ComponentWidget : public UMLWidget
25{
26 Q_OBJECT
27 public:
28 ComponentWidget(UMLScene * scene, UMLComponent *c);
29 virtual ~ComponentWidget();
30
31 virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr);
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
38Q_SIGNALS:
47 void sigCompMoved(qreal diffX, qreal diffY);
48
49 protected:
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::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr)
Definition: componentwidget.cpp:53
ComponentWidget::adjustUnselectedAssocs
virtual void adjustUnselectedAssocs(qreal dx, qreal dy)
Definition: componentwidget.cpp:163
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: umlcomponent.h:23
UMLScene
Definition: umlscene.h:66
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:36
umlwidget.h