]> Creatis software - cpPlugins.git/blobdiff - lib/cpPipelineEditor/Editor.cxx
MPR objects updated
[cpPlugins.git] / lib / cpPipelineEditor / Editor.cxx
index 8388eddb123b3cbff209ed47542acab7ab7c67d4..289ee46431d2e8e51dc0e5f51eb64a658396cd67 100644 (file)
@@ -119,12 +119,16 @@ setWorkspace( TWorkspace* ws )
 \r
 // -------------------------------------------------------------------------\r
 std::string cpPipelineEditor::Editor::\r
-createFilter( const std::string& filter, const QPointF& pnt )\r
+createFilter(\r
+  const std::string& category,\r
+  const std::string& filter,\r
+  const QPointF& pnt\r
+  )\r
 {\r
   std::string name = filter;\r
   while( this->m_Workspace->HasFilter( name ) )\r
     name += std::string( "_" );\r
-  if( this->m_Workspace->CreateFilter( filter, name ) )\r
+  if( this->m_Workspace->CreateFilter( category, filter, name ) )\r
   {\r
     auto b = this->_createBlock(\r
       this->m_Workspace->GetFilter( name ),\r
@@ -279,6 +283,24 @@ showOutputData(
   emit showFilterOutput( filter_name, output_name );\r
 }\r
 \r
+// -------------------------------------------------------------------------\r
+void cpPipelineEditor::Editor::\r
+hideOutputData(\r
+  const std::string& filter_name, const std::string& output_name\r
+  )\r
+{\r
+  emit hideFilterOutput( filter_name, output_name );\r
+}\r
+\r
+// -------------------------------------------------------------------------\r
+void cpPipelineEditor::Editor::\r
+visualPropertiesOutputData(\r
+  const std::string& filter_name, const std::string& output_name\r
+  )\r
+{\r
+  emit visualPropertiesFilterOutput( filter_name, output_name );\r
+}\r
+\r
 // -------------------------------------------------------------------------\r
 cpPipelineEditor_Editor_Callback_CODE( ContextMenu )\r
 {\r
@@ -358,15 +380,11 @@ cpPipelineEditor_Editor_Callback_CODE( MouseDoubleClick )
           old_name.toStdString( ),\r
           new_name.toStdString( )\r
           );\r
-        if( ok )\r
-        {\r
-          block->setNamePort( new_name );\r
-          this->m_Workspace->RenameFilter(\r
-            old_name.toStdString( ),\r
-            new_name.toStdString( )\r
-            );\r
-\r
-        } // fi\r
+        block->setNamePort( new_name );\r
+        this->m_Workspace->RenameFilter(\r
+          old_name.toStdString( ),\r
+          new_name.toStdString( )\r
+          );\r
 \r
       } // fi\r
     }\r