1 /*=========================================================================
4 Module: $RCSfile: bbwxDirectorySelector.cxx,v $
6 Date: $Date: 2008/07/24 14:37:06 $
7 Version: $Revision: 1.5 $
9 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10 l'Image). All rights reserved. See Doc/License.txt or
11 http://www.creatis.insa-lyon.fr/Public/bbtk/License.html for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notices for more information.
17 =========================================================================*/
24 #ifdef _USE_WXWIDGETS_
27 #include "bbwxDirectorySelector.h"
29 #include "bbwxPackage.h"
31 #include <wx/dirdlg.h>
36 BBTK_ADD_BLACK_BOX_TO_PACKAGE(wx,DirectorySelector);
39 BBTK_BLACK_BOX_IMPLEMENTATION(DirectorySelector,bbtk::AtomicBlackBox);
42 void DirectorySelector::Process()
44 bbtkDebugMessageInc("Core",9,"DirectorySelector::Process() ["
45 <<bbGetFullName()<<"]"<<std::endl);
49 bbtk::std2wx(bbGetInputMessage()),
50 bbtk::std2wx(bbGetInputDefaultDir()));
52 if (FD->ShowModal()==wxID_OK)
54 bbSetOutputOut( bbtk::wx2std (FD->GetPath()) );
55 bbSetInputDefaultDir( bbtk::wx2std (FD->GetPath()) );
60 bbSetInputDefaultDir("");
63 bbtkDebugDecTab("Core",9);
70 #endif // _USE_WXWIDGETS_