1 /*=========================================================================
4 Module: $RCSfile: bbwxDirectorySelector.cxx,v $
6 Date: $Date: 2008/03/17 07:04:09 $
7 Version: $Revision: 1.3 $
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"
28 #include "bbwxPackage.h"
30 #include <wx/dirdlg.h>
35 BBTK_ADD_BLACK_BOX_TO_PACKAGE(wx,DirectorySelector);
38 BBTK_USER_BLACK_BOX_IMPLEMENTATION(DirectorySelector,bbtk::AtomicBlackBox);
41 void DirectorySelector::Process()
43 bbtkDebugMessageInc("Core",9,"DirectorySelector::Process() ["
44 <<bbGetFullName()<<"]"<<std::endl);
48 bbtk::std2wx(bbGetInputMessage()),
49 bbtk::std2wx(bbGetInputDefaultDir()));
51 if (FD->ShowModal()==wxID_OK)
53 bbSetOutputOut( bbtk::wx2std (FD->GetPath()) );
54 bbSetInputDefaultDir( bbtk::wx2std (FD->GetPath()) );
59 bbSetInputDefaultDir("");
62 bbtkDebugDecTab("Core",9);
69 #endif // _USE_WXWIDGETS_