umbrello: umbrello/umlwidgets/childwidgetplacementport.h Source File

umbrello 2.32.3 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 * 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) 2016-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef CHILDWIDGETPLACEMENTPORT_H
12 #define CHILDWIDGETPLACEMENTPORT_H
13
14 #include "umlwidgets/childwidgetplacement.h"
15
21 class ChildWidgetPlacementPort : public ChildWidgetPlacement
22 {
23 public:
24 ChildWidgetPlacementPort(PinPortBase* widget);
25 virtual ~ChildWidgetPlacementPort();
26
27 virtual void detectConnectedSide();
28 virtual void setInitialPosition(const QPointF &scenePos = QPointF());
29 virtual void setNewPositionWhenMoved(qreal diffX, qreal diffY);
30 virtual void setNewPositionOnParentResize();
31
32 private:
33 qreal trimToRange(qreal value, qreal min, qreal max, bool& setToMin, bool& setToMax) const;
34 qreal minX() const;
35 qreal maxX() const;
36 qreal minY() const;
37 qreal maxY() const;
38 };
39
40 #endif /* ! CHILDWIDGETPLACEMENTPORT_H */
41
childwidgetplacement.h
ChildWidgetPlacementPort
Child widget placement on parent border.
Definition: childwidgetplacementport.h:22
ChildWidgetPlacementPort::minY
qreal minY() const
Definition: childwidgetplacementport.cpp:274
ChildWidgetPlacementPort::ChildWidgetPlacementPort
ChildWidgetPlacementPort(PinPortBase *widget)
Definition: childwidgetplacementport.cpp:16
ChildWidgetPlacementPort::~ChildWidgetPlacementPort
virtual ~ChildWidgetPlacementPort()
Definition: childwidgetplacementport.cpp:21
ChildWidgetPlacementPort::setInitialPosition
virtual void setInitialPosition(const QPointF &scenePos=QPointF())
Definition: childwidgetplacementport.cpp:25
ChildWidgetPlacementPort::maxY
qreal maxY() const
Definition: childwidgetplacementport.cpp:282
ChildWidgetPlacementPort::setNewPositionOnParentResize
virtual void setNewPositionOnParentResize()
Definition: childwidgetplacementport.cpp:199
ChildWidgetPlacementPort::trimToRange
qreal trimToRange(qreal value, qreal min, qreal max, bool &setToMin, bool &setToMax) const
Definition: childwidgetplacementport.cpp:241
ChildWidgetPlacementPort::minX
qreal minX() const
Definition: childwidgetplacementport.cpp:257
ChildWidgetPlacementPort::maxX
qreal maxX() const
Definition: childwidgetplacementport.cpp:265
ChildWidgetPlacementPort::setNewPositionWhenMoved
virtual void setNewPositionWhenMoved(qreal diffX, qreal diffY)
Definition: childwidgetplacementport.cpp:47
ChildWidgetPlacementPort::detectConnectedSide
virtual void detectConnectedSide()
Definition: childwidgetplacementport.cpp:171
ChildWidgetPlacement
Base class for child widget placement.
Definition: childwidgetplacement.h:27
PinPortBase
Abstract base class for PinWidget and PortWidget.
Definition: pinportbase.h:28