]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/Parameters.cxx
merge async example
[cpPlugins.git] / lib / cpPlugins / Interface / Parameters.cxx
index d2ae7f16fec1a041f3fdd33f630614d1cfab60d8..af641e0e6f1dbb29dabbec35f217ab61d0c59d0e 100644 (file)
@@ -1,7 +1,32 @@
 #include <cpPlugins/Interface/Parameters.h>
+#include <cpPlugins/Interface/ProcessObject.h>
 
 #include <sstream>
 
+// -------------------------------------------------------------------------
+const cpPlugins::Interface::
+ProcessObject* cpPlugins::Interface::Parameters::
+GetProcessObject( ) const
+{
+  return( this->m_Process );
+}
+
+// -------------------------------------------------------------------------
+void cpPlugins::Interface::Parameters::
+SetProcessObject( ProcessObject* v )
+{
+  this->m_Process = v;
+}
+
+// -------------------------------------------------------------------------
+void cpPlugins::Interface::Parameters::
+Modified( ) const
+{
+  this->Superclass::Modified( );
+  if( this->m_Process != NULL )
+    this->m_Process->Modified( );
+}
+
 // -------------------------------------------------------------------------
 void cpPlugins::Interface::Parameters::
 Clear( )
@@ -380,7 +405,7 @@ cpPlugins_Parameters_Add( Real );
     TParameters::iterator i = this->m_Parameters.find( name );  \
     if( i == this->m_Parameters.end( ) )                        \
       return;                                                   \
-    if( i->second.first != Self::Y )                            \
+    if( i->second.first != Self::Y##List )                      \
       return;                                                   \
     i->second.second.second = "";                               \
     this->Modified( );                                          \
@@ -416,7 +441,8 @@ SetSelectedChoice( const TString& name, const TString& choice )
 // -------------------------------------------------------------------------
 cpPlugins::Interface::Parameters::
 Parameters( )
-  : Superclass( )
+  : Superclass( ),
+    m_Process( NULL )
 {
   this->Clear( );
 }