kivio

KivioConnectorTarget Class Reference

List of all members.

Detailed Description

Definition at line 32 of file kivio_connector_target.h.


Public Member Functions

 KivioConnectorTarget ()
 KivioConnectorTarget (double, double)
 KivioConnectorTarget (double, double, double, double)
virtual ~KivioConnectorTarget ()
bool loadXML (const QDomElement &)
QDomElement saveXML (QDomDocument &)
KivioConnectorTargetduplicate ()
float x ()
float y ()
KoPoint position ()
void setId (int id)
int id ()
void setX (float)
void setY (float)
void setPosition (float, float)
void addConnectorPointToList (KivioConnectorPoint *)
bool removeConnectorPointFromList (KivioConnectorPoint *)
void paintOutline (KivioIntraStencilData *)
void disconnectPoint (KivioConnectorPoint *)
bool hasConnections ()
void setOffsets (double x, double y)
double xOffset ()
double yOffset ()

Protected Attributes

KoPoint m_position
double m_xOffset
double m_yOffset
int m_id
QPtrList< KivioConnectorPoint > * m_pConnectors

Constructor & Destructor Documentation

KivioConnectorTarget::~KivioConnectorTarget (  )  [virtual]

Kill this object and disconnects all KivioConnectorPoints from this.

This is a slightly odd function in that it does not call the disconnect() method of KivioConnectorPoint. The reason for this is that FIX ME DAVE!

Definition at line 81 of file kivio_connector_target.cpp.


Member Function Documentation

bool KivioConnectorTarget::loadXML ( const QDomElement &   ) 

Loads this object from an XML file.

Definition at line 112 of file kivio_connector_target.cpp.

QDomElement KivioConnectorTarget::saveXML ( QDomDocument &   ) 

Saves this object to an XML file.

Definition at line 132 of file kivio_connector_target.cpp.

KivioConnectorTarget * KivioConnectorTarget::duplicate (  ) 

Duplicates this target.

Duplicates this target, only the position. The connections are not preserved.

Definition at line 67 of file kivio_connector_target.cpp.

void KivioConnectorTarget::setId ( int  id  ) 

Sets this target's unique ID, for generateIds() during a saveXML().

Definition at line 268 of file kivio_connector_target.cpp.

void KivioConnectorTarget::setX ( float   ) 

Sets a new position and updates all connected points.

Definition at line 179 of file kivio_connector_target.cpp.

void KivioConnectorTarget::setY ( float   ) 

Sets a new position and updates all connected points.

Definition at line 197 of file kivio_connector_target.cpp.

void KivioConnectorTarget::setPosition ( float  ,
float   
)

Sets a new position and updates all connected points.

Definition at line 215 of file kivio_connector_target.cpp.

void KivioConnectorTarget::addConnectorPointToList ( KivioConnectorPoint  ) 

Adds a KivioConnectorPoint to the list of connections.

Definition at line 151 of file kivio_connector_target.cpp.

bool KivioConnectorTarget::removeConnectorPointFromList ( KivioConnectorPoint p  ) 

Removes a KivioConnectorPoint from the list of connections.

Removes a KivioConnectorPoint from the list of connections. Note, it does not disconnect the point on the KivioConnectorPoint side. This function is mainly used by KivioConnectorPoint, and probably shouldn't be used by anything/one else unless you really know what you are doing.

Definition at line 166 of file kivio_connector_target.cpp.

void KivioConnectorTarget::paintOutline ( KivioIntraStencilData  ) 

Issues paintOutline requests to all connected stencils.

Definition at line 233 of file kivio_connector_target.cpp.

bool KivioConnectorTarget::hasConnections (  ) 

Tests is this target has any connections.

Definition at line 254 of file kivio_connector_target.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys