X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPipelineEditor%2FPort.h;h=4daafd0b7a32e57f54b6fdacc485233dc0e2d595;hb=bebef39d45df113f3a706279a395eba44ce9472c;hp=0f64a4bd4b64e0f849137ae37e289dbff3359059;hpb=46f2cf7aa39bda8301b22fcfddd43daf0dc13770;p=cpPlugins.git diff --git a/lib/cpPipelineEditor/Port.h b/lib/cpPipelineEditor/Port.h index 0f64a4b..4daafd0 100644 --- a/lib/cpPipelineEditor/Port.h +++ b/lib/cpPipelineEditor/Port.h @@ -89,29 +89,6 @@ namespace cpPipelineEditor virtual void _updateLabels( ); }; - /** - */ - class TypePort - : public Port - { - public: - typedef TypePort Self; - typedef Port Superclass; - - enum { Type = Superclass::Type + 2 }; - - public: - TypePort( QGraphicsItem* parent = NULL, QGraphicsScene* scene = NULL ); - virtual ~TypePort( ); - - virtual bool isConnected( Port* other ); - inline int type( ) const - { return( this->Type ); } - - protected: - virtual void _updateLabels( ); - }; - /** */ class InputPort @@ -179,6 +156,8 @@ namespace cpPipelineEditor QVariant itemChange( GraphicsItemChange change, const QVariant& value ); virtual void _updateLabels( ); + virtual void contextMenuEvent( QGraphicsSceneContextMenuEvent* evt ); + protected: QVector< Connection* > m_Connections; };