- if( idx < this->m_Outputs.size( ) )
- if( this->m_Outputs[ idx ] != NULL )
- this->m_Outputs[ idx ]->SetDataObject( dobj );
+ this->m_Parameters = TParameters::New( );
+ this->m_Parameters->SetProcessObject( this );
+
+#ifdef cpPlugins_Interface_QT4
+ if( QApplication::instance( ) != NULL )
+ this->m_ParametersDialog = new ParametersQtDialog( );
+#endif // cpPlugins_Interface_QT4
+}
+
+// -------------------------------------------------------------------------
+cpPlugins::Interface::ProcessObject::
+~ProcessObject( )
+{
+#ifdef cpPlugins_Interface_QT4
+ if( this->m_ParametersDialog != NULL )
+ delete this->m_ParametersDialog;
+#endif // cpPlugins_Interface_QT4
+
+ /*
+ auto iIt = this->m_Inputs.begin( );
+ for( ; iIt != this->m_Inputs.end( ); ++iIt )
+ delete iIt->second;
+ this->m_Inputs.clear( );
+ */
+
+ auto oIt = this->m_Outputs.begin( );
+ for( ; oIt != this->m_Outputs.end( ); ++oIt )
+ delete oIt->second;
+ this->m_Outputs.clear( );