]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/ProcessObject.cxx
Widget integration (step 5/6): Interactive plugins now supported, widgets updates...
[cpPlugins.git] / lib / cpPlugins / Interface / ProcessObject.cxx
index b2b9337d1ea8ccb07ee17bc1a392d7fc12070d9b..f832743feb2d5ce57eb43af8f7e1046e8a2550a4 100644 (file)
@@ -5,19 +5,19 @@
 #endif // cpPlugins_Interface_QT4
 
 // -------------------------------------------------------------------------
-const cpPlugins::Interface::Parameters&
 cpPlugins::Interface::ProcessObject::
-GetDefaultParameters( ) const
+TParameters* cpPlugins::Interface::ProcessObject::
+GetParameters( )
 {
-  return( this->m_DefaultParameters );
+  return( this->m_Parameters.GetPointer( ) );
 }
 
 // -------------------------------------------------------------------------
-void cpPlugins::Interface::ProcessObject::
-SetParameters( const cpPlugins::Interface::Parameters& params )
+const cpPlugins::Interface::ProcessObject::
+TParameters* cpPlugins::Interface::ProcessObject::
+GetParameters( ) const
 {
-  this->m_Parameters = params;
-  this->Modified( );
+  return( this->m_Parameters.GetPointer( ) );
 }
 
 // -------------------------------------------------------------------------
@@ -104,14 +104,15 @@ ExecConfigurationDialog( QWidget* parent )
 
 #ifdef cpPlugins_Interface_QT4
 
-  Parameters parameters = this->m_DefaultParameters;
   r = cpPlugins::Interface::ParametersQtDialog(
-    parameters,
+    this->m_Parameters,
     this->GetClassName( ) + std::string( " basic configuration" ),
     parent
     );
-  if( r )
-    this->m_Parameters = parameters;
+  /*
+    if( r )
+    // TODO: !!! this->m_Parameters = parameters;
+    */
 
 #endif // cpPlugins_Interface_QT4
 
@@ -125,6 +126,7 @@ ProcessObject( )
     m_ITKObject( NULL ),
     m_VTKObject( NULL )
 {
+  this->m_Parameters = TParameters::New( );
 }
 
 // -------------------------------------------------------------------------