]> Creatis software - bbtk.git/blob - packages/wx/src/bbwxDirectorySelector.h
=== MAJOR RELEASE ====
[bbtk.git] / packages / wx / src / bbwxDirectorySelector.h
1 /*=========================================================================
2                                                                                 
3   Program:   bbtk
4   Module:    $RCSfile: bbwxDirectorySelector.h,v $
5   Language:  C++
6   Date:      $Date: 2008/04/18 12:59:52 $
7   Version:   $Revision: 1.3 $
8                                                                                 
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.
12                                                                                 
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.
16                                                                                 
17 =========================================================================*//**
18  * \brief Short description in one line
19  * 
20  * Long description which 
21  * can span multiple lines
22  */
23 /**
24  * \file 
25  * \brief Pattern for the definition of a new type of Node (header)
26  */
27 /**
28  * \class bbtk::NodePatern 
29  * \brief Pattern for the definition of a new type of Node 
30  */
31
32
33 #ifdef _USE_WXWIDGETS_
34
35
36 #ifndef __bbWxDirectorySelector_h__
37 #define __bbWxDirectorySelector_h__
38
39 #include "bbtkAtomicBlackBox.h"
40
41
42
43 namespace bbwx
44 {
45   
46   
47   
48
49   //=================================================================
50   class /*BBTK_EXPORT*/ DirectorySelector : public bbtk::AtomicBlackBox
51   {
52     BBTK_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);
61     void Process();
62   };
63   //=================================================================
64   
65  
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,"directory name");
74   BBTK_INPUT(DirectorySelector,Message,"Message to show on the dialog",std::string,"");
75   BBTK_INPUT(DirectorySelector,DefaultDir,"The default directory",std::string,"directory name");
76   BBTK_OUTPUT(DirectorySelector,Out,"The directory selected by the user",std::string,"directory name");
77   BBTK_END_DESCRIBE_BLACK_BOX(DirectorySelector);
78   //=================================================================
79
80
81
82 }
83
84
85
86 //namespace bbtk
87 #endif  //__bbtkWxDirectorySelector_h__
88
89 #endif //_USE_WXWIDGETS_