]> Creatis software - bbtk.git/commitdiff
*** empty log message ***
authorguigues <guigues>
Fri, 15 Feb 2008 13:52:44 +0000 (13:52 +0000)
committerguigues <guigues>
Fri, 15 Feb 2008 13:52:44 +0000 (13:52 +0000)
packages/wx/src/bbwxDirectorySelector.cxx

index 813a9114a73f25923247282b7613096817c8205e..b0c6d62fb4ee87432922e983f04f66ab2ede22f8 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbwxDirectorySelector.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/02/15 12:47:18 $
-  Version:   $Revision: 1.1 $
+  Date:      $Date: 2008/02/15 13:52:44 $
+  Version:   $Revision: 1.2 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -26,9 +26,8 @@
 
 #include "bbwxDirectorySelector.h"
 #include "bbwxPackage.h"
-
-#include <wx/filedlg.h>
-
+#include <wx/dirdlg.h>
 
 namespace bbwx
 {
@@ -44,8 +43,8 @@ namespace bbwx
     bbtkDebugMessageInc("Core",9,"DirectorySelector::Process() ["
                        <<bbGetFullName()<<"]"<<std::endl);
 
-    wxFileDialog* FD = 
-      new wxFileDialog( 0, 
+    wxDirDialog* FD = 
+      new wxDirDialog( 0, 
                        bbtk::std2wx(bbGetInputMessage()),
                        bbtk::std2wx(bbGetInputDefaultDir()));
     
@@ -57,7 +56,7 @@ namespace bbwx
        bbSetInputDefaultDir( bbtk::wx2std (FD->GetPath()) );
     }
     else
-      { 
+      {  
        bbSetOutputOut("");
        bbSetInputDefaultDir("");
       }