]> Creatis software - creaWT.git/blob - wt/bbtk_wt_PKG/src/bbwtInputText.h~
41709bbeb13b1adffedb5267a95cdba8a1877bad
[creaWT.git] / wt / bbtk_wt_PKG / src / bbwtInputText.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_WT_
5 #ifndef __bbwtInputText_h_INCLUDED__
6 #define __bbwtInputText_h_INCLUDED__
7 #include "bbwt_EXPORT.h"
8 #include "bbtkWtBlackBox.h"
9
10 namespace bbwt
11 {
12
13 class bbwt_EXPORT InputText
14  : 
15    public bbtk::WtBlackBox
16 {
17   BBTK_BLACK_BOX_INTERFACE(InputText,bbtk::WtBlackBox);
18 //===== 
19 // 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)
20 //===== 
21   BBTK_DECLARE_INPUT(Title,std::string);
22   BBTK_DECLARE_INPUT(In,std::string);
23         BBTK_DECLARE_INPUT(ReactiveOnKeystroke,int);
24         BBTK_DECLARE_OUTPUT(Out,std::string);
25   BBTK_PROCESS(Process);
26   void Process();
27   BBTK_CREATE_WIDGET(CreateWidget);
28   void CreateWidget(Wt::WContainerWidget*);
29 //===== 
30 // 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)
31 //===== 
32           private:
33           bool firsttime;
34 };
35
36 BBTK_BEGIN_DESCRIBE_BLACK_BOX(InputText,bbtk::WxBlackBox);
37 BBTK_NAME("InputText");
38 BBTK_AUTHOR("JohannGONZALEZ");
39 BBTK_DESCRIPTION("gonzalez@creatis.insa-lyon.fr - InputText widget implemented with wt.");
40 BBTK_CATEGORY("__CategoryBlackBox__");
41 BBTK_INPUT(InputText,Title,"Title prepended to the text",std::string,"");
42 BBTK_INPUT(InputText,In,"Text",std::string,"");
43 BBTK_INPUT(InputText,ReactiveOnKeystroke,"0 not event generated, 1 Enter event genereated, 2 All keys, (default '2') ", int,"");
44 BBTK_OUTPUT(InputText,Out,"Current text",std::string,"");
45 BBTK_END_DESCRIBE_BLACK_BOX(InputText);
46 //===== 
47 // 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)
48 //===== 
49 }
50 // EO namespace bbwt
51
52 #endif // __bbwtInputText_h_INCLUDED__
53 #endif // _USE_WXWIDGETS_
54