00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00048 #ifdef _USE_WXWIDGETS_
00049
00050
00051 #ifndef __bbWxDirectorySelector_h__
00052 #define __bbWxDirectorySelector_h__
00053
00054 #include "bbtkAtomicBlackBox.h"
00055
00056
00057
00058 namespace bbwx
00059 {
00060
00061
00062
00063
00064
00065 class DirectorySelector : public bbtk::AtomicBlackBox
00066 {
00067 BBTK_BLACK_BOX_INTERFACE(DirectorySelector,bbtk::AtomicBlackBox);
00068 BBTK_DECLARE_INPUT(Title,std::string);
00069 BBTK_DECLARE_INPUT(Message,std::string);
00070 BBTK_DECLARE_INPUT(DefaultDir,std::string);
00071 BBTK_DECLARE_INPUT(DefaultDirectory,std::string);
00072 BBTK_DECLARE_INPUT(Wildcard,std::string);
00073 BBTK_DECLARE_INPUT(OpenSave,std::string);
00074 BBTK_DECLARE_OUTPUT(Out,std::string);
00075 BBTK_PROCESS(Process);
00076 void Process();
00077 };
00078
00079
00080
00081
00082
00083 BBTK_BEGIN_DESCRIBE_BLACK_BOX(DirectorySelector,bbtk::AtomicBlackBox);
00084 BBTK_NAME("DirectorySelector");
00085 BBTK_AUTHOR("laurent.guigues@creatis.insa-lyon.fr");
00086 BBTK_CATEGORY("widget");
00087 BBTK_DESCRIPTION("Pops up a directory selection dialog (wxDirDialog)");
00088 BBTK_INPUT(DirectorySelector,Title, "Title of the dialog", std::string,"directory name");
00089 BBTK_INPUT(DirectorySelector,Message, "Message to show on the dialog", std::string,"");
00090 BBTK_INPUT(DirectorySelector,DefaultDir,"The default directory", std::string,"directory name");
00091 BBTK_OUTPUT(DirectorySelector,Out, "The directory selected by the user", std::string,"directory name");
00092 BBTK_END_DESCRIBE_BLACK_BOX(DirectorySelector);
00093
00094
00095
00096
00097 }
00098
00099
00100
00101
00102 #endif //__bbtkWxDirectorySelector_h__
00103
00104 #endif //_USE_WXWIDGETS_