19#ifndef KIVIO_CONNECTOR_POINT_H
20#define KIVIO_CONNECTOR_POINT_H
25#include <koffice_export.h>
26class KivioConnectorTarget;
30class KIVIO_EXPORT KivioConnectorPoint
37 KivioConnectorTarget *m_pTarget;
40 KivioStencil *m_pStencil;
48 KivioConnectorPoint( KivioStencil *, bool conn= true );
49 KivioConnectorPoint();
50 virtual ~KivioConnectorPoint();
52 bool loadXML( const TQDomElement & );
53 TQDomElement saveXML( TQDomDocument & );
55 KivioConnectorTarget *target() const { return m_pTarget; }
56 void setTarget( KivioConnectorTarget * );
58 KivioStencil *stencil() const { return m_pStencil; }
59 void setStencil( KivioStencil *p ) { m_pStencil=p; }
61 void setTargetId( int i ) { m_targetId = i; }
62 int targetId() const { return m_targetId; }
64 double x() const { return m_pos.x(); }
65 double y() const { return m_pos.y(); }
66 KoPoint position() const { return m_pos; }
68 void setX( double, bool updateStencil = true );
69 void setY( double, bool updateStencil = true );
70 void setPosition( double, double, bool updateStencil = true );
71 void moveBy( double _x, double _y, bool updateStencil = true );
73 bool connectable() const { return m_connectable; }
74 void setConnectable( bool b ) { m_connectable = b; if( b== false ) { disconnect(); } }
76 void disconnect( bool removeFromTargetList = true);
|