umbrello 25.04.3
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
ChildWidgetPlacementPin Class Reference

Child widget placement attached to parent. More...

#include <childwidgetplacementpin.h>

Inheritance diagram for ChildWidgetPlacementPin:
Collaboration diagram for ChildWidgetPlacementPin:

Public Member Functions

 ChildWidgetPlacementPin (PinPortBase *widget)
virtual ~ChildWidgetPlacementPin ()
virtual void detectConnectedSide ()
virtual void setInitialPosition (const QPointF &scenePos=QPointF())
virtual void setNewPositionWhenMoved (qreal diffX, qreal diffY)
virtual void setNewPositionOnParentResize ()
Public Member Functions inherited from ChildWidgetPlacement
 ChildWidgetPlacement (PinPortBase *widget)
virtual ~ChildWidgetPlacement ()

Private Member Functions

bool isAboveParent () const
bool isBelowParent () const
bool isLeftOfParent () const
bool isRightOfParent () const
qreal getNewXOnJumpToTopOrBottom () const
void jumpToTopOfParent ()
void jumpToBottomOfParent ()
qreal getNewYOnJumpToSide () const
void jumpToLeftOfParent ()
void jumpToRightOfParent ()

Additional Inherited Members

Protected Types inherited from ChildWidgetPlacement
enum  ConnectedSide {
  Undefined , Top , Right , Bottom ,
  Left , TopLeft , TopRight , BottomRight ,
  BottomLeft
}
Protected Member Functions inherited from ChildWidgetPlacement
void setPos (const QPointF &pos)
void setPos (qreal x, qreal y)
void setX (qreal x)
void setY (qreal y)
qreal x () const
qreal y () const
qreal width () const
qreal height () const
UMLWidgetownerWidget () const
Protected Attributes inherited from ChildWidgetPlacement
PinPortBase *const m_widget
ConnectedSide m_connectedSide

Detailed Description

Child widget placement attached to parent.

Implementation of child widget placement where parent and child widget borders are always connected.

Constructor & Destructor Documentation

◆ ChildWidgetPlacementPin()

ChildWidgetPlacementPin::ChildWidgetPlacementPin ( PinPortBase * widget)
Here is the call graph for this function:

◆ ~ChildWidgetPlacementPin()

ChildWidgetPlacementPin::~ChildWidgetPlacementPin ( )
virtual

Member Function Documentation

◆ detectConnectedSide()

void ChildWidgetPlacementPin::detectConnectedSide ( )
virtual

Implements ChildWidgetPlacement.

◆ getNewXOnJumpToTopOrBottom()

qreal ChildWidgetPlacementPin::getNewXOnJumpToTopOrBottom ( ) const
private
Here is the call graph for this function:

◆ getNewYOnJumpToSide()

qreal ChildWidgetPlacementPin::getNewYOnJumpToSide ( ) const
private
Here is the call graph for this function:

◆ isAboveParent()

bool ChildWidgetPlacementPin::isAboveParent ( ) const
private

◆ isBelowParent()

bool ChildWidgetPlacementPin::isBelowParent ( ) const
private

◆ isLeftOfParent()

bool ChildWidgetPlacementPin::isLeftOfParent ( ) const
private

◆ isRightOfParent()

bool ChildWidgetPlacementPin::isRightOfParent ( ) const
private

◆ jumpToBottomOfParent()

void ChildWidgetPlacementPin::jumpToBottomOfParent ( )
private
Here is the call graph for this function:

◆ jumpToLeftOfParent()

void ChildWidgetPlacementPin::jumpToLeftOfParent ( )
private
Here is the call graph for this function:

◆ jumpToRightOfParent()

void ChildWidgetPlacementPin::jumpToRightOfParent ( )
private
Here is the call graph for this function:

◆ jumpToTopOfParent()

void ChildWidgetPlacementPin::jumpToTopOfParent ( )
private
Here is the call graph for this function:

◆ setInitialPosition()

void ChildWidgetPlacementPin::setInitialPosition ( const QPointF & scenePos = QPointF())
virtual

Implements ChildWidgetPlacement.

Here is the call graph for this function:

◆ setNewPositionOnParentResize()

void ChildWidgetPlacementPin::setNewPositionOnParentResize ( )
virtual

Implements ChildWidgetPlacement.

Here is the call graph for this function:

◆ setNewPositionWhenMoved()

void ChildWidgetPlacementPin::setNewPositionWhenMoved ( qreal diffX,
qreal diffY )
virtual

Implements ChildWidgetPlacement.

Here is the call graph for this function:

The documentation for this class was generated from the following files: