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
UMLWidget::height
qreal height() const
Definition: umlwidget.h:114
ChildWidgetPlacement::Bottom
@ Bottom
Definition: childwidgetplacement.h:42
ChildWidgetPlacement::width
qreal width() const
Definition: childwidgetplacement.cpp:50
ChildWidgetPlacementPort
Child widget placement on parent border.
Definition: childwidgetplacementport.h:22
ChildWidgetPlacement::y
qreal y() const
Definition: childwidgetplacement.cpp:45
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:41
ChildWidgetPlacement::TopRight
@ TopRight
Definition: childwidgetplacement.h:45
ChildWidgetPlacementPort::maxX
qreal maxX() const
Definition: childwidgetplacementport.cpp:265
ChildWidgetPlacementPort::maxY
qreal maxY() const
Definition: childwidgetplacementport.cpp:282
ChildWidgetPlacement::Left
@ Left
Definition: childwidgetplacement.h:43
ChildWidgetPlacementPort::minX
qreal minX() const
Definition: childwidgetplacementport.cpp:257
pinportbase.h
ChildWidgetPlacement::Top
@ Top
Definition: childwidgetplacement.h:40
ChildWidgetPlacementPort::setInitialPosition
virtual void setInitialPosition(const QPointF &scenePos=QPointF())
Definition: childwidgetplacementport.cpp:25
ChildWidgetPlacement::Right
@ Right
Definition: childwidgetplacement.h:41
ChildWidgetPlacementPort::detectConnectedSide
virtual void detectConnectedSide()
Definition: childwidgetplacementport.cpp:171
ChildWidgetPlacement::BottomRight
@ BottomRight
Definition: childwidgetplacement.h:46
ChildWidgetPlacement::setPos
void setPos(const QPointF &pos)
Definition: childwidgetplacement.cpp:20
ChildWidgetPlacementPort::trimToRange
qreal trimToRange(qreal value, qreal min, qreal max, bool &setToMin, bool &setToMax) const
Definition: childwidgetplacementport.cpp:241
ChildWidgetPlacementPort::setNewPositionOnParentResize
virtual void setNewPositionOnParentResize()
Definition: childwidgetplacementport.cpp:199
ChildWidgetPlacement::x
qreal x() const
Definition: childwidgetplacement.cpp:40
childwidgetplacement.h
PinPortBase
Abstract base class for PinWidget and PortWidget.
Definition: pinportbase.h:28
ChildWidgetPlacement::ownerWidget
UMLWidget * ownerWidget() const
Definition: childwidgetplacement.cpp:60
umlwidget.h
ChildWidgetPlacementPort::setNewPositionWhenMoved
virtual void setNewPositionWhenMoved(qreal diffX, qreal diffY)
Definition: childwidgetplacementport.cpp:47
ChildWidgetPlacement::height
qreal height() const
Definition: childwidgetplacement.cpp:55
ChildWidgetPlacementPort::ChildWidgetPlacementPort
ChildWidgetPlacementPort(PinPortBase *widget)
Definition: childwidgetplacementport.cpp:16
ChildWidgetPlacement::Undefined
@ Undefined
Definition: childwidgetplacement.h:39
ChildWidgetPlacementPort::minY
qreal minY() const
Definition: childwidgetplacementport.cpp:274
ChildWidgetPlacement::m_widget
PinPortBase *const m_widget
Definition: childwidgetplacement.h:60
childwidgetplacementport.h
ChildWidgetPlacement
Base class for child widget placement.
Definition: childwidgetplacement.h:27
ChildWidgetPlacement::m_connectedSide
ConnectedSide m_connectedSide
Definition: childwidgetplacement.h:61
UMLWidget::width
qreal width() const
Definition: umlwidget.h:121
ChildWidgetPlacement::BottomLeft
@ BottomLeft
Definition: childwidgetplacement.h:47
ChildWidgetPlacementPort::~ChildWidgetPlacementPort
virtual ~ChildWidgetPlacementPort()
Definition: childwidgetplacementport.cpp:21
ChildWidgetPlacement::TopLeft
@ TopLeft
Definition: childwidgetplacement.h:44