]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/ProcessObject.cxx
...
[cpPlugins.git] / lib / cpPlugins / Interface / ProcessObject.cxx
index db873e9d4f854724c7606a79af4e4f00a705c5b6..1db1a61cb44db76ac27f40400912feab3523d21a 100644 (file)
@@ -131,6 +131,14 @@ DisconnectOutputs( )
       i->second->DisconnectPipeline( );
 }
 
+// -------------------------------------------------------------------------
+const cpPlugins::Interface::ProcessObject::
+TInteractors& cpPlugins::Interface::ProcessObject::
+GetInteractors( ) const
+{
+  return( this->m_Interactors );
+}
+
 // -------------------------------------------------------------------------
 void cpPlugins::Interface::ProcessObject::
 AddInteractor( vtkRenderWindowInteractor* interactor )
@@ -144,11 +152,10 @@ AddInteractor( vtkRenderWindowInteractor* interactor )
 }
 
 // -------------------------------------------------------------------------
-cpPlugins::Interface::ProcessObject::
-DialogResult cpPlugins::Interface::ProcessObject::
+bool cpPlugins::Interface::ProcessObject::
 ExecConfigurationDialog( QWidget* parent )
 {
-  DialogResult r = Self::DialogResult_Cancel;
+  bool r = false;
 
 #ifdef cpPlugins_Interface_QT4
 
@@ -165,14 +172,11 @@ ExecConfigurationDialog( QWidget* parent )
     this->m_ParametersDialog->setParent( NULL );
     this->m_ParametersDialog->setParameters( this->m_Parameters );
 
-    if( this->m_ParametersDialog->exec( ) == 1 )
-      r = Self::DialogResult_NoModal;
-    else
-      r = Self::DialogResult_Cancel;
+    r = ( this->m_ParametersDialog->exec( ) == 1 );
   }
   else
-    r = Self::DialogResult_Cancel;
-
+    r = false;
+  
 #endif // cpPlugins_Interface_QT4
 
   return( r );