umbrello: umbrello/umlwidgets/childwidgetplacementport.h Source File

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

childwidgetplacementport.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2016-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef CHILDWIDGETPLACEMENTPORT_H
7#define CHILDWIDGETPLACEMENTPORT_H
8
9#include "umlwidgets/childwidgetplacement.h"
10
16 class ChildWidgetPlacementPort : public ChildWidgetPlacement
17{
18public:
19 ChildWidgetPlacementPort(PinPortBase* widget);
20 virtual ~ChildWidgetPlacementPort();
21
22 virtual void detectConnectedSide();
23 virtual void setInitialPosition(const QPointF &scenePos = QPointF());
24 virtual void setNewPositionWhenMoved(qreal diffX, qreal diffY);
25 virtual void setNewPositionOnParentResize();
26
27private:
28 qreal trimToRange(qreal value, qreal min, qreal max, bool& setToMin, bool& setToMax) const;
29 qreal minX() const;
30 qreal maxX() const;
31 qreal minY() const;
32 qreal maxY() const;
33};
34
35#endif /* ! CHILDWIDGETPLACEMENTPORT_H */
36
childwidgetplacement.h
ChildWidgetPlacementPort::minY
qreal minY() const
Definition childwidgetplacementport.cpp:269
ChildWidgetPlacementPort::ChildWidgetPlacementPort
ChildWidgetPlacementPort(PinPortBase *widget)
Definition childwidgetplacementport.cpp:11
ChildWidgetPlacementPort::~ChildWidgetPlacementPort
virtual ~ChildWidgetPlacementPort()
Definition childwidgetplacementport.cpp:16
ChildWidgetPlacementPort::setInitialPosition
virtual void setInitialPosition(const QPointF &scenePos=QPointF())
Definition childwidgetplacementport.cpp:20
ChildWidgetPlacementPort::maxY
qreal maxY() const
Definition childwidgetplacementport.cpp:277
ChildWidgetPlacementPort::setNewPositionOnParentResize
virtual void setNewPositionOnParentResize()
Definition childwidgetplacementport.cpp:194
ChildWidgetPlacementPort::trimToRange
qreal trimToRange(qreal value, qreal min, qreal max, bool &setToMin, bool &setToMax) const
Definition childwidgetplacementport.cpp:236
ChildWidgetPlacementPort::minX
qreal minX() const
Definition childwidgetplacementport.cpp:252
ChildWidgetPlacementPort::maxX
qreal maxX() const
Definition childwidgetplacementport.cpp:260
ChildWidgetPlacementPort::setNewPositionWhenMoved
virtual void setNewPositionWhenMoved(qreal diffX, qreal diffY)
Definition childwidgetplacementport.cpp:42
ChildWidgetPlacementPort::detectConnectedSide
virtual void detectConnectedSide()
Definition childwidgetplacementport.cpp:166
ChildWidgetPlacement::ChildWidgetPlacement
ChildWidgetPlacement(PinPortBase *widget)
Definition childwidgetplacement.cpp:10
PinPortBase
Abstract base class for PinWidget and PortWidget.
Definition pinportbase.h:23