1 /*=========================================================================
4 Module: $RCSfile: bbwxDirectorySelector.h,v $
6 Date: $Date: 2008/02/15 12:47:18 $
7 Version: $Revision: 1.1 $
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 __bbWxDirectorySelector_h__
37 #define __bbWxDirectorySelector_h__
39 #include "bbtkAtomicBlackBox.h"
49 //=================================================================
50 class /*BBTK_EXPORT*/ DirectorySelector : public bbtk::AtomicBlackBox
52 BBTK_USER_BLACK_BOX_INTERFACE(DirectorySelector,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(DefaultDirectory,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(DirectorySelector,bbtk::AtomicBlackBox);
69 BBTK_NAME("DirectorySelector");
70 BBTK_AUTHOR("laurent.guigues@creatis.insa-lyon.fr");
71 BBTK_CATEGORY("widget");
72 BBTK_DESCRIPTION("Pops up a directory selection dialog (wxDirDialog)");
73 BBTK_INPUT(DirectorySelector,Title,"Title of the dialog",std::string);
74 BBTK_INPUT(DirectorySelector,Message,"Message to show on the dialog",std::string);
75 BBTK_INPUT(DirectorySelector,DefaultDir,"The default directory",std::string);
76 BBTK_OUTPUT(DirectorySelector,Out,"The directory selected by the user",std::string);
77 BBTK_END_DESCRIBE_BLACK_BOX(DirectorySelector);
78 //=================================================================
87 #endif //__bbtkWxDirectorySelector_h__
89 #endif //_USE_WXWIDGETS_