+ int m_Radius;\r
+ int m_Margin;\r
+ quint64 m_Ptr;\r
+ };\r
+\r
+ /**\r
+ */\r
+ class QNENamePort\r
+ : public QNEPort\r
+ {\r
+ public:\r
+ typedef QNENamePort Self;\r
+ typedef QNEPort Superclass;\r
+\r
+ enum { Type = Superclass::Type + 1 };\r
+\r
+ public:\r
+ QNENamePort( QGraphicsItem* parent = NULL, QGraphicsScene* scene = NULL );\r
+ virtual ~QNENamePort( );\r
+\r
+ virtual void setName( const QString& n );\r
+\r
+ virtual bool isConnected( QNEPort* other );\r
+ inline int type( ) const\r
+ { return( this->Type ); }\r
+ };\r
+\r
+ /**\r
+ */\r
+ class QNETypePort\r
+ : public QNEPort\r
+ {\r
+ public:\r
+ typedef QNETypePort Self;\r
+ typedef QNEPort Superclass;\r
+\r
+ enum { Type = Superclass::Type + 2 };\r
+\r
+ public:\r
+ QNETypePort( QGraphicsItem* parent = NULL, QGraphicsScene* scene = NULL );\r
+ virtual ~QNETypePort( );\r
+\r
+ virtual void setName( const QString& n );\r
+\r
+ virtual bool isConnected( QNEPort* other );\r
+ inline int type( ) const\r
+ { return( this->Type ); }\r
+ };\r
+\r
+ /**\r
+ */\r
+ class QNEInputPort\r
+ : public QNEPort\r
+ {\r
+ public:\r
+ typedef QNEInputPort Self;\r
+ typedef QNEPort Superclass;\r
+\r
+ enum { Type = Superclass::Type + 3 };\r
+\r
+ public:\r
+ QNEInputPort( QGraphicsItem* parent = NULL, QGraphicsScene* scene = NULL );\r
+ virtual ~QNEInputPort( );\r
+\r
+ virtual void setName( const QString& n );\r
+\r
+ virtual bool isConnected( QNEPort* other );\r
+ inline int type( ) const\r
+ { return( this->Type ); }\r
+\r
+ void setConnection( QNEConnection* c );\r
+ inline QNEConnection* connection( )\r
+ { return( this->m_Connection ); }\r
+ inline const QNEConnection* connection( ) const\r
+ { return( this->m_Connection ); }\r
+ inline bool hasConnection( ) const\r
+ { return( this->m_Connection != NULL ); }\r
+\r
+ protected:\r
+ QVariant itemChange( GraphicsItemChange change, const QVariant& value );\r
+\r
+ protected:\r
+ QNEConnection* m_Connection;\r
+ };\r
+\r
+ /**\r
+ */\r
+ class QNEOutputPort\r
+ : public QNEPort\r
+ {\r
+ public:\r
+ typedef QNEOutputPort Self;\r
+ typedef QNEPort Superclass;\r
+\r
+ enum { Type = Superclass::Type + 4 };\r
+\r
+ public:\r
+ QNEOutputPort( QGraphicsItem* parent = NULL, QGraphicsScene* scene = NULL );\r
+ virtual ~QNEOutputPort( );\r
+\r
+ virtual void setName( const QString& n );\r
+\r
+ virtual bool isConnected( QNEPort* other );\r
+ inline int type( ) const\r
+ { return( this->Type ); }\r
+\r
+ inline QVector< QNEConnection* >& connections( )\r
+ { return( this->m_Connections ); }\r
+ inline const QVector< QNEConnection* >& connections( ) const\r
+ { return( this->m_Connections ); }\r
+\r
+ protected:\r
+ QVariant itemChange( GraphicsItemChange change, const QVariant& value );\r
+\r
+ protected:\r