]> Creatis software - creaImageIO.git/commitdiff
*** empty log message ***
authorguigues <guigues>
Wed, 8 Apr 2009 10:32:27 +0000 (10:32 +0000)
committerguigues <guigues>
Wed, 8 Apr 2009 10:32:27 +0000 (10:32 +0000)
src2/creaImageIOTreeHandlerImageAdder.cpp
src2/creaImageIOWxTreeView.cpp

index d2431aa1ad083914bbcd0b8876c980ace9d7778d..c4337bc0f2dfad358c0fac070070dbfe0f229016 100644 (file)
@@ -1,8 +1,5 @@
 #include <creaImageIOTreeHandlerImageAdder.h>
 #include <creaImageIOSystem.h>
-//#include <wx/dir.h>
-//#include <wx/filename.h>
-
 #include "boost/filesystem.hpp"
 
 namespace fs = boost::filesystem;
@@ -115,63 +112,13 @@ namespace creaImageIO
            mProgressSignal(mProgress);
            if (mProgress.GetStop()) 
                {
-                       itr = end_itr;
+                       itr = end_itr
 //                     break;
                }
                }
       }
         
   }
-
-    /*
-
-    std::string fileName;
-    std::string dirName = dirpath;
-
-    wxDir dir( std2wx(dirpath) );
-
-    if ( !dir.IsOpened() )
-      {
-        // deal with the error here - wxDir would already log an error message
-        // explaining the exact reason of the failure
-        return;
-      }
-
-    wxString filename;
-
-    bool cont = dir.GetFirst(&filename, wxEmptyString, 
-                            wxDIR_FILES | wxDIR_HIDDEN );
-    while ( cont )
-      {
-       mProgress.IncNumberScannedFiles();
-
-       wxFileName wxffn(dir.GetName(),filename);
-       std::string ffn = wx2std(wxffn.GetFullPath());
-       if (IsHandledFile(ffn)) 
-         {
-           mProgress.IncNumberHandledFiles();
-           AddFile( ffn );
-         }
-       mProgressSignal(mProgress);
-       cont = ( dir.GetNext(&filename) && (!mProgress.GetStop()) );
-      }
-    
-    // Recurse into subdirs
-    if ( recursive )
-      {
-       cont = dir.GetFirst(&filename, wxEmptyString, 
-                           wxDIR_DIRS | wxDIR_HIDDEN );
-       while ( cont )
-         {
-           wxFileName wxffn(dir.GetName(),filename);
-           std::string ffn = wx2std(wxffn.GetFullPath());
-           AddDirectoryRecursor( ffn, recursive);
-           cont = dir.GetNext(&filename);
-         }
-      }
-  
-  */
-  
   //=======================================================================
 
 
index 9884cb03843de979297328302a9623811f0cdb52..e7a004214a3a6614301162d506401c1fc8bc0edb 100644 (file)
@@ -267,7 +267,7 @@ namespace creaImageIO
          {
       out<<" "<<GetTreeHandler()->GetTree().GetLevelDescriptor(mLastLevel).GetName()<<"?";
          }
-         if (wxMessageBox(_T(out.str()),
+         if (wxMessageBox(crea::std2wx(out.str()),
                         _T("Remove Files"),
                         wxYES_NO,this ) == wxYES)
          {