/*========================================================================= Program: bbtk Module: $RCSfile: bbwxFileSelector.cxx,v $ Language: C++ Date: $Date: 2008/07/24 14:37:06 $ Version: $Revision: 1.4 $ 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 "bbwxFileSelector.h" #include "bbwxPackage.h" #include "bbtkWx.h" #include namespace bbwx { BBTK_ADD_BLACK_BOX_TO_PACKAGE(wx,FileSelector); BBTK_BLACK_BOX_IMPLEMENTATION(FileSelector,bbtk::AtomicBlackBox); void FileSelector::Process() { bbtkDebugMessageInc("Core",9,"FileSelector::Process() [" <ShowModal(); // This line is need it by windows //EED FD->SetReturnCode( result_FD ); if (FD->GetReturnCode()==wxID_OK) { bbSetOutputOut( bbtk::wx2std (FD->GetPath()) ); } else { bbSetOutputOut(""); } bbtkDebugDecTab("Core",9); } void FileSelector::bbUserConstructor() { bbSetInputOpenSave("Open"); } }//namespace bbtk #endif // _USE_WXWIDGETS_