class ObjectWidgetData

This class holds all the ObjectWidget's Information All this information goes to a file or clipboard when an ObjectWidget object is serialized With this class we are trying to achieve isolation between data and display layers. More...

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

Public Methods

Protected Members


Detailed Description

This class holds all the ObjectWidget's Information All this information goes to a file or clipboard when an ObjectWidget object is serialized With this class we are trying to achieve isolation between data and display layers.

 ObjectWidgetData ()

ObjectWidgetData

Constructor

 ObjectWidgetData (ObjectWidgetData & Other)

ObjectWidgetData

Constructor

 ~ObjectWidgetData ()

~ObjectWidgetData

[virtual]

Deconstructor

ObjectWidgetData &  operator= (ObjectWidgetData & Other)

operator=

[virtual]

Copy constructor

Reimplemented from UMLWidgetData.

bool  operator== (ObjectWidgetData & Other)

operator==

[virtual]

Overloaded "==" operator

Reimplemented from UMLWidgetData.

void  setInstanceName ( QString InstanceName)

setInstanceName

[virtual]

Write property of QString m_InstanceName.

QString  getInstanceName ()

getInstanceName

[virtual]

Read property of QString m_InstanceName.

void  setLocalID ( int LocalID)

setLocalID

[virtual]

Write property of int m_nLocalID.

int  getLocalID ()

getLocalID

[virtual]

Read property of int m_nLocalID.

void  setMultipleInstance ( bool MultipleInstance)

setMultipleInstance

[virtual]

Write property of bool m_bMultipleInstance.

bool  getMultipleInstance ()

getMultipleInstance

[virtual]

Read property of bool m_bMultipleInstance.

long  getClipSizeOf ()

getClipSizeOf

[virtual]

Returns the amount of bytes needed to serialize this object If the serialization method of this class is changed this function will have to be CHANGED TOO This function is used by the Copy and Paste Functionality The Size in bytes of a serialized QString Object is long sz: if ( (sz =str.length()*sizeof(QChar)) && !(const char*)str.unicode() ) { sz = size of Q_UINT32; // typedef unsigned int Q_UINT32; // 32 bit unsigned } This calculation is valid only for QT 2.1.x or superior, this is totally incompatible with QT 2.0.x or QT 1.x or inferior That means the copy and paste functionality will work on with QT 2.1.x or superior

Reimplemented from UMLWidgetData.

bool  serialize (QDataStream *s, bool archive)

serialize

[virtual]

Save/Loads the class.

Reimplemented from UMLWidgetData.

void  print2cerr ()

print2cerr

[virtual]

Prints the data members to standard error

Reimplemented from UMLWidgetData.

bool  getDrawAsActor ()

getDrawAsActor

Returns whether to draw as an object or not.

void  setDrawAsActor ( bool drawAsActor )

setDrawAsActor

Sets whether to draw as an Actor.

void  setShowDeconstruction ( bool bShow )

setShowDeconstruction

Sets whether to show deconstruction on sequence line

bool  getShowDeconstruction ()

getShowDeconstruction

Returns whether to show deconstruction on sequence line

void  setLineLength ( int nLength )

setLineLength

Sets the length of the line

int  getLineLength ()

getLineLength

Sets the length of the line

bool  saveToXMI ( QDomDocument & qDoc, QDomElement & qElement )

saveToXMI

Reimplemented from UMLWidgetData.

bool  loadFromXMI ( QDomElement & qElement )

loadFromXMI

Reimplemented from UMLWidgetData.

QString m_InstanceName

m_InstanceName

[protected]

int m_nLocalID

m_nLocalID

[protected]

bool m_bMultipleInstance

m_bMultipleInstance

[protected]

bool m_bDrawAsActor

m_bDrawAsActor

[protected]

bool m_bShowDeconstruction

m_bShowDeconstruction

[protected]

int m_nLineLength

m_nLineLength

[protected]