+// -------------------------------------------------------------------------\r
+void PipelineEditor::QNETypePort::\r
+setName( const QString& n )\r
+{\r
+ this->Superclass::setName( n );\r
+\r
+ QFont font( this->scene( )->font( ) );\r
+ font.setItalic( true );\r
+ this->m_Label->setFont( font );\r
+ this->setPath( QPainterPath( ) );\r
+}\r
+\r
+// -------------------------------------------------------------------------\r
+bool PipelineEditor::QNETypePort::\r
+isConnected( QNEPort* other )\r
+{\r
+ return( false );\r
+}\r
+\r
+// -------------------------------------------------------------------------\r
+PipelineEditor::QNEInputPort::\r
+QNEInputPort( QGraphicsItem* parent, QGraphicsScene* scene )\r
+ : Superclass( parent, scene ),\r
+ m_Connection( NULL )\r
+{\r
+}\r
+\r
+// -------------------------------------------------------------------------\r
+PipelineEditor::QNEInputPort::\r
+~QNEInputPort( )\r
+{\r
+ if( this->m_Connection != NULL )\r
+ delete this->m_Connection;\r
+}\r
+\r
+// -------------------------------------------------------------------------\r
+void PipelineEditor::QNEInputPort::\r
+setName( const QString& n )\r
+{\r
+ this->Superclass::setName( n );\r
+\r
+ QFontMetrics fm( this->scene( )->font( ) );\r
+ QRect r = fm.boundingRect( this->m_Name );\r
+ int rm = this->m_Radius + this->m_Margin;\r
+ int h = -this->m_Label->boundingRect( ).height( ) / 2;\r
+ this->m_Label->setPos( rm, h );\r
+}\r
+\r
+// -------------------------------------------------------------------------\r
+bool PipelineEditor::QNEInputPort::\r
+isConnected( QNEPort* other )\r
+{\r
+ if( this->m_Connection != NULL )\r
+ return(\r
+ this->m_Connection->port1( ) == other &&\r
+ this->m_Connection->port2( ) == this\r
+ );\r
+ else\r
+ return( false );\r
+}\r
+\r
+// -------------------------------------------------------------------------\r
+void PipelineEditor::QNEInputPort::\r
+setConnection( QNEConnection* c )\r
+{\r
+ this->m_Connection = c;\r
+}\r
+\r
+// -------------------------------------------------------------------------\r
+QVariant PipelineEditor::QNEInputPort::\r
+itemChange( GraphicsItemChange change, const QVariant& value )\r
+{\r
+ if( change == ItemScenePositionHasChanged )\r