umbrello 26.03.70-1a62d36 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

childwidgetplacementpin.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 CHILDWIDGETPLACEMENTPIN_H
7#define CHILDWIDGETPLACEMENTPIN_H
8
9#include "umlwidgets/childwidgetplacement.h"
10
17 class ChildWidgetPlacementPin : public ChildWidgetPlacement
18{
19 public:
20 ChildWidgetPlacementPin(PinPortBase* widget);
21 virtual ~ChildWidgetPlacementPin();
22
23 virtual void detectConnectedSide();
24 virtual void setInitialPosition(const QPointF &scenePos = QPointF());
25 virtual void setNewPositionWhenMoved(qreal diffX, qreal diffY);
26 virtual void setNewPositionOnParentResize();
27
28 private:
29 bool isAboveParent() const;
30 bool isBelowParent() const;
31 bool isLeftOfParent() const;
32 bool isRightOfParent() const;
33 qreal getNewXOnJumpToTopOrBottom() const;
34 void jumpToTopOfParent();
35 void jumpToBottomOfParent();
36 qreal getNewYOnJumpToSide() const;
37 void jumpToLeftOfParent();
38 void jumpToRightOfParent();
39};
40
41#endif /* ! CHILDWIDGETPLACEMENTPIN_H */
42
43
childwidgetplacement.h
ChildWidgetPlacement
Base class for child widget placement.
Definition: childwidgetplacement.h:22
ChildWidgetPlacementPin
Child widget placement attached to parent.
Definition: childwidgetplacementpin.h:18
ChildWidgetPlacementPin::isAboveParent
bool isAboveParent() const
Definition: childwidgetplacementpin.cpp:96
ChildWidgetPlacementPin::jumpToTopOfParent
void jumpToTopOfParent()
Definition: childwidgetplacementpin.cpp:121
ChildWidgetPlacementPin::detectConnectedSide
virtual void detectConnectedSide()
Definition: childwidgetplacementpin.cpp:19
ChildWidgetPlacementPin::jumpToLeftOfParent
void jumpToLeftOfParent()
Definition: childwidgetplacementpin.cpp:138
ChildWidgetPlacementPin::jumpToBottomOfParent
void jumpToBottomOfParent()
Definition: childwidgetplacementpin.cpp:127
ChildWidgetPlacementPin::jumpToRightOfParent
void jumpToRightOfParent()
Definition: childwidgetplacementpin.cpp:144
ChildWidgetPlacementPin::~ChildWidgetPlacementPin
virtual ~ChildWidgetPlacementPin()
Definition: childwidgetplacementpin.cpp:15
ChildWidgetPlacementPin::setInitialPosition
virtual void setInitialPosition(const QPointF &scenePos=QPointF())
Definition: childwidgetplacementpin.cpp:24
ChildWidgetPlacementPin::isLeftOfParent
bool isLeftOfParent() const
Definition: childwidgetplacementpin.cpp:106
ChildWidgetPlacementPin::setNewPositionWhenMoved
virtual void setNewPositionWhenMoved(qreal diffX, qreal diffY)
Definition: childwidgetplacementpin.cpp:31
ChildWidgetPlacementPin::setNewPositionOnParentResize
virtual void setNewPositionOnParentResize()
Definition: childwidgetplacementpin.cpp:85
ChildWidgetPlacementPin::getNewYOnJumpToSide
qreal getNewYOnJumpToSide() const
Definition: childwidgetplacementpin.cpp:133
ChildWidgetPlacementPin::getNewXOnJumpToTopOrBottom
qreal getNewXOnJumpToTopOrBottom() const
Definition: childwidgetplacementpin.cpp:116
ChildWidgetPlacementPin::isBelowParent
bool isBelowParent() const
Definition: childwidgetplacementpin.cpp:101
ChildWidgetPlacementPin::isRightOfParent
bool isRightOfParent() const
Definition: childwidgetplacementpin.cpp:111
PinPortBase
Abstract base class for PinWidget and PortWidget.
Definition: pinportbase.h:23