class MessageWidget

Displays a message. More...

Definition#include <./messagewidget.h>
InheritsUMLWidget [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Slots


Detailed Description

Used to display a message on a sequence diagram. The message could be between two objects or a message that calls itself on an object. This class will only display the line that is required and the text will be setup by the FloatingText widget that is passed in the constructor.

See also: UMLWidget, FloatingText

 MessageWidget (UMLView * view, UMLWidgetData * pData)

MessageWidget

Cosntructs a MessageWidget.

Parameters:
viewThe parent to this class.
pDataThe CMessageWidget to represent

 MessageWidget (UMLView * view, UMLWidget * a, UMLWidget * b, FloatingText * ft, int id, int y)

MessageWidget

Cosntructs a MessageWidget.

Parameters:
viewThe parent to this class.
aThe role A widget for this message.
bThe role B widget for this message.
ftThe FloatingText widget that is needed to display text.
idA unique id used for deleting this object cleanly.
yThe vertical position to display this message.

 MessageWidget (UMLView * view)

MessageWidget

Cosntructs a MessageWidget.

Parameters:
viewThe parent to this class.

void  init ()

init

Initializes key variables of the class.

Reimplemented from UMLWidget.

 ~MessageWidget ()

~MessageWidget

[virtual]

Standard deconstructor.

bool  contains (UMLWidget * w)

contains

Check to see if the given UMLWidget is involved in the message.

Parameters:
wThe UMLWidget to check for.

Returns: The status of the check. true - if is contained, false - not contained.

UMLWidget *  getWidgetA ()

getWidgetA

Returns the A widget it is related to.

Returns: Returns the A widget it is related to.

UMLWidget *  getWidgetB ()

getWidgetB

Returns the B widget it is related to.

Returns: Returns the B widget it is related to.

int  getCopyIDA ()

getCopyIDA

Returns the id of the A widget it is related to.

Returns: Returns the id of the A widget it is related to..

int  getCopyIDB ()

getCopyIDB

Returns the id of the B widget it is related to.

Returns: Returns the id of the B widget it is related to..

void  setWidgetA (UMLWidget * wa)

setWidgetA

Sets the A widget it is related to.

Parameters:
wathe A widget it is related to.

void  setWidgetB (UMLWidget * wb)

setWidgetB

Sets the B widget it is related to.

Parameters:
wathe B widget it is related to.

FloatingText *  getFloatingText ()

getFloatingText

Returns the text widget it is related to.

Returns: Returns the text widget it is related to.

void  setFloatingText (FloatingText * f)

setFloatingText

Sets the text widget it is related to.

Parameters:
wathe text widget it is related to.

void  calculateWidget ()

calculateWidget

Calculate the geometry of the widget.

bool  Activate (IDChangeLog * Log = 0)

Activate

Activates a MessageWidget, Connects its m_pWA and m_pWB pointers to UMLObjects and also send signals about its floatingText

Reimplemented from UMLWidget.

void  SynchronizeData ()

SynchronizeData

[virtual]

Synchronizes the Widget's m_pData member with its display properties, for exmaple: the X and Y position of the widget, etc

Reimplemented from UMLWidget.

void  CalculateDimensions ()

CalculateDimensions

void  draw (QPainter & p, int offsetX, int offsetY)

draw

override default method

Reimplemented from UMLWidget.

void  cleanup ()

cleanup

Used to cleanup any other widget it may need to delete.

Reimplemented from UMLWidget.

void  mouseMoveEvent (QMouseEvent *me)

mouseMoveEvent

Overrides the standard operation.

Reimplemented from UMLWidget.

void  setSelected (bool _select)

setSelected

Sets the state of whether the widget is selected.

Parameters:
_selectThe state of whether the widget is selected.

Reimplemented from UMLWidget.

int  getMinHeight ()

getMinHeight

Returns the minimum height this widget should be set at on a sequence diagrams. Takes into account the widget positions it is related to.

int  getMaxHeight ()

getMaxHeight

Returns the maximum height this widget should be set at on a sequence diagrams. Takes into account the widget positions it is related to.

void  mouseReleaseEvent (QMouseEvent * me)

mouseReleaseEvent

[virtual]

Overrides the standard operation.

Reimplemented from UMLWidget.

void  mousePressEvent (QMouseEvent *me)

mousePressEvent

[virtual]

Overrides the standard operation.

Reimplemented from UMLWidget.

void  slotWidgetMoved (int id)

slotWidgetMoved

[slot]

Reimplemented from UMLWidget.

void  slotMenuSelection (int sel)

slotMenuSelection

[slot]

Reimplemented from UMLWidget.