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 #include "bbwx_EXPORT.h"
00056
00057 namespace bbwx
00058 {
00059
00060
00061
00062
00063
00064 class bbwx_EXPORT DirectorySelector : public bbtk::AtomicBlackBox
00065 {
00066 BBTK_BLACK_BOX_INTERFACE(DirectorySelector,bbtk::AtomicBlackBox);
00067 BBTK_DECLARE_INPUT(Title,std::string);
00068 BBTK_DECLARE_INPUT(Message,std::string);
00069 BBTK_DECLARE_INPUT(DefaultDir,std::string);
00070 BBTK_DECLARE_INPUT(DefaultDirectory,std::string);
00071 BBTK_DECLARE_INPUT(Wildcard,std::string);
00072 BBTK_DECLARE_INPUT(OpenSave,std::string);
00073 BBTK_DECLARE_OUTPUT(Out,std::string);
00074 BBTK_PROCESS(Process);
00075 void Process();
00076 };
00077
00078
00079
00080
00081
00082 BBTK_BEGIN_DESCRIBE_BLACK_BOX(DirectorySelector,bbtk::AtomicBlackBox);
00083 BBTK_NAME("DirectorySelector");
00084 BBTK_AUTHOR("laurent.guigues@creatis.insa-lyon.fr");
00085 BBTK_CATEGORY("widget");
00086 BBTK_DESCRIPTION("Pops up a directory selection dialog (wxDirDialog)");
00087 BBTK_INPUT(DirectorySelector,Title, "Title of the dialog", std::string,"directory name");
00088 BBTK_INPUT(DirectorySelector,Message, "Message to show on the dialog", std::string,"");
00089 BBTK_INPUT(DirectorySelector,DefaultDir,"The default directory", std::string,"directory name");
00090 BBTK_OUTPUT(DirectorySelector,Out, "The directory selected by the user", std::string,"directory name");
00091 BBTK_END_DESCRIBE_BLACK_BOX(DirectorySelector);
00092
00093
00094
00095
00096 }
00097
00098
00099
00100
00101 #endif //__bbtkWxDirectorySelector_h__
00102
00103 #endif //USE_WXWIDGETS