]> Creatis software - bbtk.git/blob - packages/wx/src/bbwxButtonSelectFilesDirectory.h
#3475 ButtonSelectFilesDirectory box wx
[bbtk.git] / packages / wx / src / bbwxButtonSelectFilesDirectory.h
1 //===== 
2 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
3 //===== 
4 #ifdef _USE_WXWIDGETS_
5 #ifndef __bbwxButtonSelectFilesDirectory_h_INCLUDED__
6 #define __bbwxButtonSelectFilesDirectory_h_INCLUDED__
7
8 #include "bbwx_EXPORT.h"
9 #include "bbtkWxBlackBox.h"
10
11 namespace bbwx
12 {
13
14 class bbwx_EXPORT ButtonSelectFilesDirectory
15  : 
16    public bbtk::WxBlackBox
17 {
18   BBTK_BLACK_BOX_INTERFACE(ButtonSelectFilesDirectory,bbtk::WxBlackBox);
19 //===== 
20 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
21 //===== 
22     friend class ButtonSelectFilesDirectoryWidget;
23
24   BBTK_DECLARE_INPUT(Type,int);
25   BBTK_DECLARE_INPUT(Label,std::string);
26   BBTK_DECLARE_INPUT(Wildcard,std::string);
27   BBTK_DECLARE_INPUT(OpenSave,std::string);
28   BBTK_DECLARE_INPUT(Title,std::string);
29   BBTK_DECLARE_INPUT(Message,std::string);
30   BBTK_DECLARE_INPUT(DefaultDir,std::string);
31   BBTK_DECLARE_INPUT(DefaultFile,std::string);
32   BBTK_DECLARE_OUTPUT(Out,std::string);
33   BBTK_PROCESS(Process);
34   void Process();
35   BBTK_CREATE_WIDGET(CreateWidget);
36   void CreateWidget(wxWindow*);
37
38   protected: 
39     
40   
41   private: 
42     void UpdateLabel();
43  
44   
45 //===== 
46 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
47 //===== 
48 };
49
50 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ButtonSelectFilesDirectory,bbtk::WxBlackBox);
51   BBTK_NAME("ButtonSelectFilesDirectory");
52   BBTK_AUTHOR("InfoDev");
53   BBTK_DESCRIPTION("No Description.");
54   BBTK_CATEGORY("__CategoryBlackBox__");
55   BBTK_INPUT(ButtonSelectFilesDirectory,Type,"(default 0)  0:Files  1:Directory",int,"");
56   BBTK_INPUT(ButtonSelectFilesDirectory,Label,"Label",std::string,"");
57   BBTK_INPUT(ButtonSelectFilesDirectory,Wildcard,"A wildcard, such as \"*.*\" or \"BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif\"",std::string,"wildcard");
58   BBTK_INPUT(ButtonSelectFilesDirectory,OpenSave,"(Just for Type 0 -Files ) Open for an open dialog (default) / Save for a save dialog",std::string,"");
59   BBTK_INPUT(ButtonSelectFilesDirectory,Title,"Title of the dialog",std::string,"");
60   BBTK_INPUT(ButtonSelectFilesDirectory,Message,"Message to show on the dialog",std::string,"");
61   BBTK_INPUT(ButtonSelectFilesDirectory,DefaultDir,"The default directory",std::string,"");
62   BBTK_INPUT(ButtonSelectFilesDirectory,DefaultFile,"The default filename",std::string,"file name");
63   
64   BBTK_OUTPUT(ButtonSelectFilesDirectory,Out,"File/Directory string",std::string,"");
65 BBTK_END_DESCRIBE_BLACK_BOX(ButtonSelectFilesDirectory);
66 //===== 
67 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
68 //===== 
69 }
70 // EO namespace bbwx
71
72 #endif // __bbwxButtonSelectFilesDirectory_h_INCLUDED__
73 #endif // _USE_WXWIDGETS_
74