]> Creatis software - cpPlugins.git/blobdiff - lib/cpPipelineEditor/Port.cxx
...
[cpPlugins.git] / lib / cpPipelineEditor / Port.cxx
index a2125f7383330bf2082ece043a3b8ec03339fb1b..1eb2c78c637ee0b99dbdb220caa1ed23dfe485d1 100644 (file)
@@ -124,37 +124,6 @@ isConnected( Port* other )
   return( false );\r
 }\r
 \r
-// -------------------------------------------------------------------------\r
-cpPipelineEditor::TypePort::\r
-TypePort( QGraphicsItem* parent, QGraphicsScene* scene )\r
-  : Superclass( parent, scene )\r
-{\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-cpPipelineEditor::TypePort::\r
-~TypePort( )\r
-{\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-void cpPipelineEditor::TypePort::\r
-_updateLabels( )\r
-{\r
-  QFont font( this->scene( )->font( ) );\r
-  font.setItalic( true );\r
-  this->m_Label->setFont( font );\r
-  this->m_ExtendedLabel->setFont( font );\r
-  this->setPath( QPainterPath( ) );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-bool cpPipelineEditor::TypePort::\r
-isConnected( Port* other )\r
-{\r
-  return( false );\r
-}\r
-\r
 // -------------------------------------------------------------------------\r
 cpPipelineEditor::InputPort::\r
 InputPort( QGraphicsItem* parent, QGraphicsScene* scene )\r
@@ -306,6 +275,7 @@ contextMenuEvent( QGraphicsSceneContextMenuEvent* evt )
   QMenu menu;\r
   QAction* showAction = menu.addAction( "Show" );\r
   QAction* hideAction = menu.addAction( "Hide" );\r
+  QAction* propertiesAction = menu.addAction( "Properties" );\r
   QAction* selectedAction = menu.exec( evt->screenPos( ) );\r
 \r
   if( selectedAction == showAction )\r
@@ -317,6 +287,18 @@ contextMenuEvent( QGraphicsSceneContextMenuEvent* evt )
   }\r
   else if( selectedAction == hideAction )\r
   {\r
+    this->m_Block->editor( )->hideOutputData(\r
+      this->m_Block->namePort( ).toStdString( ),\r
+      this->name( ).toStdString( )\r
+      );\r
+  }\r
+  else if( selectedAction == propertiesAction )\r
+  {\r
+    this->m_Block->editor( )->visualPropertiesOutputData(\r
+      this->m_Block->namePort( ).toStdString( ),\r
+      this->name( ).toStdString( )\r
+      );\r
+\r
   } // fi\r
 }\r
 \r