1 /*=========================================================================
4 Module: $RCSfile: bbwxFileSelector.h,v $
6 Date: $Date: 2008/04/18 12:59:52 $
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 =========================================================================*//**
18 * \brief Short description in one line
20 * Long description which
21 * can span multiple lines
25 * \brief Pattern for the definition of a new type of Node (header)
28 * \class bbtk::NodePatern
29 * \brief Pattern for the definition of a new type of Node
33 #ifdef _USE_WXWIDGETS_
36 #ifndef __bbWxFileSelector_h__
37 #define __bbWxFileSelector_h__
39 #include "bbtkAtomicBlackBox.h"
49 //=================================================================
50 class /*BBTK_EXPORT*/ FileSelector : public bbtk::AtomicBlackBox
52 BBTK_BLACK_BOX_INTERFACE(FileSelector,bbtk::AtomicBlackBox);
53 BBTK_DECLARE_INPUT(Title,std::string);
54 BBTK_DECLARE_INPUT(Message,std::string);
55 BBTK_DECLARE_INPUT(DefaultDir,std::string);
56 BBTK_DECLARE_INPUT(DefaultFile,std::string);
57 BBTK_DECLARE_INPUT(Wildcard,std::string);
58 BBTK_DECLARE_INPUT(OpenSave,std::string);
59 BBTK_DECLARE_OUTPUT(Out,std::string);
60 BBTK_PROCESS(Process);
63 //=================================================================
66 //=================================================================
67 // AtomicBlackBox description
68 BBTK_BEGIN_DESCRIBE_BLACK_BOX(FileSelector,bbtk::AtomicBlackBox);
69 BBTK_NAME("FileSelector");
70 BBTK_AUTHOR("laurent.guigues@creatis.insa-lyon.fr");
71 BBTK_CATEGORY("widget");
72 BBTK_DESCRIPTION("Pops up a file selection dialog for reading or saving (wxFileDialog)");
73 BBTK_INPUT(FileSelector,Title,"Title of the dialog",std::string,"");
74 BBTK_INPUT(FileSelector,Message,"Message to show on the dialog",
76 BBTK_INPUT(FileSelector,DefaultDir,"The default directory",std::string,"");
77 BBTK_INPUT(FileSelector,DefaultFile,"The default filename",std::string,"file name");
78 BBTK_INPUT(FileSelector,Wildcard,"A wildcard, such as \"*.*\" or \"BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif\"",std::string,"wildcard");
79 BBTK_INPUT(FileSelector,OpenSave,"Open for an open dialog (default) / Save for a save dialog",std::string,"");
80 BBTK_OUTPUT(FileSelector,Out,"The file selected by the user",std::string,"file name");
81 BBTK_END_DESCRIBE_BLACK_BOX(FileSelector);
82 //=================================================================
91 #endif //__bbtkWxFileSelector_h__
93 #endif //_USE_WXWIDGETS_