]> Creatis software - creaImageIO.git/commitdiff
2414 creaImageIO Bug New Normal ImagesChooserDialog Box return the name of the file
authorEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Fri, 27 Jun 2014 12:43:04 +0000 (14:43 +0200)
committerEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Fri, 27 Jun 2014 12:43:04 +0000 (14:43 +0200)
bbtk/src/bbcreaImageIOImagesChooserDialogBox.xml

index 454f8836a600ae12e0b2222108740a6759359f84..67e768edb96022b095acbb0663625c5edacb1855 100644 (file)
@@ -72,6 +72,7 @@
   </typedef>
 
   <output name="DicomInfo" type="VectorMapInfoDicom" description="vector of maps of Dicom tags"/>
+  <output name="FileName" type="std::string" description="Selected file name"/>
   
   <!--========================================================================
     PROCESS section -->
@@ -84,6 +85,7 @@
                dlg.ShowModal(); 
                 bbSetOutputDicomInfo( dlg.getDicomInfoImagesSelected() );
                if (dlg.getImagesSelected().size()!=0){ 
+                 bbSetOutputFileName( std::string( dlg.getInfoImage().mb_str() ) );
                  if(dlg.getImagesSelected().size() ==1)
                  {
                        bbSetOutputOut( dlg.getImagesSelected()[0] );  
 //                     //  }
 
                                bbSetOutputOut(out);
+
                        } else {
                         bbSetOutputOut(first);
                        } // dim