/*========================================================================= Program: bbtk Module: $RCSfile: bbwxDirectorySelector.cxx,v $ Language: C++ Date: $Date: 2008/03/17 07:04:09 $ Version: $Revision: 1.3 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or http://www.creatis.insa-lyon.fr/Public/bbtk/License.html for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notices for more information. =========================================================================*/ /** * \file * \brief */ #ifdef _USE_WXWIDGETS_ #include "bbwxDirectorySelector.h" #include "bbwxPackage.h" #include namespace bbwx { BBTK_ADD_BLACK_BOX_TO_PACKAGE(wx,DirectorySelector); BBTK_USER_BLACK_BOX_IMPLEMENTATION(DirectorySelector,bbtk::AtomicBlackBox); void DirectorySelector::Process() { bbtkDebugMessageInc("Core",9,"DirectorySelector::Process() [" <ShowModal()==wxID_OK) { bbSetOutputOut( bbtk::wx2std (FD->GetPath()) ); bbSetInputDefaultDir( bbtk::wx2std (FD->GetPath()) ); } else { bbSetOutputOut(""); bbSetInputDefaultDir(""); } bbtkDebugDecTab("Core",9); } }//namespace bbtk #endif // _USE_WXWIDGETS_