umbrello 2.34.70-5524f40e1
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
ChildWidgetPlacement Class Referenceabstract

Base class for child widget placement. More...

#include <childwidgetplacement.h>

Inheritance diagram for ChildWidgetPlacement:
Collaboration diagram for ChildWidgetPlacement:

Public Member Functions

 ChildWidgetPlacement (PinPortBase *widget)
 
virtual ~ChildWidgetPlacement ()
 
virtual void detectConnectedSide ()=0
 
virtual void setInitialPosition (const QPointF &scenePos=QPointF())=0
 
virtual void setNewPositionWhenMoved (qreal diffX, qreal diffY)=0
 
virtual void setNewPositionOnParentResize ()=0
 

Protected Types

enum  ConnectedSide {
  Undefined , Top , Right , Bottom ,
  Left , TopLeft , TopRight , BottomRight ,
  BottomLeft
}
 

Protected Member Functions

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

PinPortBase *const m_widget
 
ConnectedSide m_connectedSide
 

Detailed Description

Base class for child widget placement.

Base class for placing child widgets relative to their parent. Child widget positions shall somehow be constrained, e.g. always in contact to the parent widgets border.

Member Enumeration Documentation

◆ ConnectedSide

Enumerator
Undefined 
Top 
Right 
Bottom 
Left 
TopLeft 
TopRight 
BottomRight 
BottomLeft 

Constructor & Destructor Documentation

◆ ChildWidgetPlacement()

ChildWidgetPlacement::ChildWidgetPlacement ( PinPortBase widget)

◆ ~ChildWidgetPlacement()

virtual ChildWidgetPlacement::~ChildWidgetPlacement ( )
inlinevirtual

Member Function Documentation

◆ detectConnectedSide()

virtual void ChildWidgetPlacement::detectConnectedSide ( )
pure virtual

◆ height()

qreal ChildWidgetPlacement::height ( ) const
protected
Here is the call graph for this function:

◆ ownerWidget()

UMLWidget * ChildWidgetPlacement::ownerWidget ( ) const
protected
Here is the call graph for this function:

◆ setInitialPosition()

virtual void ChildWidgetPlacement::setInitialPosition ( const QPointF &  scenePos = QPointF())
pure virtual

◆ setNewPositionOnParentResize()

virtual void ChildWidgetPlacement::setNewPositionOnParentResize ( )
pure virtual

◆ setNewPositionWhenMoved()

virtual void ChildWidgetPlacement::setNewPositionWhenMoved ( qreal  diffX,
qreal  diffY 
)
pure virtual

◆ setPos() [1/2]

void ChildWidgetPlacement::setPos ( const QPointF &  pos)
protected

◆ setPos() [2/2]

void ChildWidgetPlacement::setPos ( qreal  x,
qreal  y 
)
protected
Here is the call graph for this function:

◆ setX()

void ChildWidgetPlacement::setX ( qreal  x)
protected
Here is the call graph for this function:

◆ setY()

void ChildWidgetPlacement::setY ( qreal  y)
protected
Here is the call graph for this function:

◆ width()

qreal ChildWidgetPlacement::width ( ) const
protected
Here is the call graph for this function:

◆ x()

qreal ChildWidgetPlacement::x ( ) const
protected

◆ y()

qreal ChildWidgetPlacement::y ( ) const
protected

Member Data Documentation

◆ m_connectedSide

ConnectedSide ChildWidgetPlacement::m_connectedSide
protected

◆ m_widget

PinPortBase* const ChildWidgetPlacement::m_widget
protected

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