#include <itkGDCMSeriesFileNames.h>
// -------------------------------------------------------------------------
-bool cpPlugins::IO::DicomSeriesReader::
+cpPlugins::IO::DicomSeriesReader::
+DialogResult cpPlugins::IO::DicomSeriesReader::
ExecConfigurationDialog( QWidget* parent )
{
- bool r = false;
+ DialogResult r = Self::DialogResult_Cancel;
#ifdef cpPlugins_Interface_QT4
dialog.setFileMode( QFileDialog::DirectoryOnly );
dialog.setDirectory( QFileDialog::tr( "." ) );
if( !dialog.exec( ) )
- return( false );
+ return( Self::DialogResult_Cancel );
// Prepare dialog
QApplication::setOverrideCursor( Qt::WaitCursor );
{
delete tree_widget;
delete tree_dialog;
- return( false );
+ return( Self::DialogResult_Cancel );
} // fi
parent->setEnabled( true );
if( tree_dialog->exec( ) == 0 )
- return( false );
+ return( Self::DialogResult_Cancel );
QTreeWidgetItem* item = tree_widget->currentItem( );
if( item != NULL )
for( unsigned int f = 0; f < names.size( ); ++f )
this->m_Parameters->AddToStringList( "FileNames", names[ f ] );
- r = true;
+ r = Self::DialogResult_NoModal;
QApplication::restoreOverrideCursor( );
if( parent != NULL )