]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Workspace.h
...
[cpPlugins.git] / lib / cpPlugins / Workspace.h
index eb146901c2862011b9f2fb1b3969e0b27fc5e96a..f22b2834e4d4ea9f70e9cae4b3c25e78eaa7e2d4 100644 (file)
@@ -16,11 +16,7 @@ namespace cpExtensions
 {
   namespace QT
   {
-// TODO: #ifdef cpPlugins_QT4
     class SimpleMPRWidget;
-// TODO: #else // cpPlugins_QT4
-// TODO:     typedef char SimpleMPRWidget;
-// TODO: #endif // cpPlugins_QT4
   }
 }
 
@@ -83,7 +79,7 @@ namespace cpPlugins
     bool RenameFilter(
       const std::string& old_name, const std::string& new_name
       );
-    void RemoveFilter( const std::string& name );
+    bool RemoveFilter( const std::string& name );
     void SetParameter( const std::string& name, const std::string& value );
 
     void SetPrintExecution( bool b );
@@ -105,11 +101,18 @@ namespace cpPlugins
       const std::string& output_name, const std::string& input_name
       );
     bool Connect( const OutputPort& port, const std::string& exposed_port );
-    void RemoveConnection(
-      const std::string& dest_filter, const std::string& input_name
+
+    bool Disconnect(
+      const std::string& orig_filter, const std::string& dest_filter,
+      const std::string& output_name, const std::string& input_name
       );
-    void RemoveConnection( const std::string& exposed_port );
-    void RemoveConnections( const std::string& dest_filter );
+    /* TODO
+       void RemoveConnection(
+       const std::string& dest_filter, const std::string& input_name
+       );
+       void RemoveConnection( const std::string& exposed_port );
+       void RemoveConnections( const std::string& dest_filter );
+    */
 
     // Graph reduction
     bool Reduce( const std::string& name );