#ifdef cpPlugins_Interface_QT4
- r = cpPlugins::Interface::ParametersQtDialog(
+ if( this->m_ParametersDialog == NULL )
+ {
+ this->m_ParametersDialog = new ParametersQtDialog( parent );
+ this->m_ParametersDialog->setTitle(
+ this->GetClassName( ) + std::string( " basic configuration" )
+ );
+ this->m_ParametersDialog->setParameters( this->m_Parameters );
+
+ } // fi
+
+ if( !( this->m_ParametersDialog->IsModal( ) ) )
+ {
+ this->m_ParametersDialog->show( );
+ r = true;
+ }
+ else
+ r = ( this->m_ParametersDialog->exec( ) == 1 );
+
+ /*
+ r = cpPlugins::Interface::ParametersQtDialog(
this->m_Parameters,
this->GetClassName( ) + std::string( " basic configuration" ),
parent
);
- /*
if( r )
- // TODO: !!! this->m_Parameters = parameters;
- */
+ */
#endif // cpPlugins_Interface_QT4
ProcessObject( )
: Superclass( ),
m_ITKObject( NULL ),
- m_VTKObject( NULL )
+ m_VTKObject( NULL ),
+ m_ParametersDialog( NULL )
{
this->m_Parameters = TParameters::New( );
}
cpPlugins::Interface::ProcessObject::
~ProcessObject( )
{
+ if( this->m_ParametersDialog == NULL )
+ delete this->m_ParametersDialog;
}
// -------------------------------------------------------------------------