]> Creatis software - creaWT.git/blob - wt/bbtk_wt_PKG/src/bbwtComboBox.h~
89bb1adbb5bcbe627ff3cbd3301e6daab0c09e5c
[creaWT.git] / wt / bbtk_wt_PKG / src / bbwtComboBox.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 __bbwtComboBox_h_INCLUDED__
6 #define __bbwtComboBox_h_INCLUDED__
7 #include "bbwt_EXPORT.h"
8 #include "bbtkWtBlackBox.h"
9
10 namespace bbwt
11 {
12
13 class bbwt_EXPORT ComboBox
14  : 
15    public bbtk::WtBlackBox
16 {
17   BBTK_BLACK_BOX_INTERFACE(ComboBox,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(Selection, int );
23   BBTK_DECLARE_INPUT(In,std::vector< std::string >);
24   BBTK_DECLARE_INPUT(Form,int);
25   BBTK_DECLARE_OUTPUT(Out, int );
26   BBTK_DECLARE_OUTPUT(OutString, std::string );
27   BBTK_PROCESS(Process);
28   void Process();
29   BBTK_CREATE_WIDGET(CreateWidget);
30   void CreateWidget(Wt::WContainerWidget*);
31 //===== 
32 // 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)
33 //===== 
34 };
35
36 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ComboBox,bbtk::WtBlackBox);
37 BBTK_NAME("ComboBox");
38 BBTK_AUTHOR("JohannGonzalez");
39 BBTK_DESCRIPTION("gonzalez@creatis.insa-lyon.fr - ComboBox widget for wt webapps.");
40 BBTK_CATEGORY("__CategoryBlackBox__");
41         BBTK_INPUT(ComboBox,Title,"Title prepended to the text",std::string,"");
42         BBTK_INPUT(ComboBox,Selection,"i element to be selected (default 0)",int,"");
43         BBTK_INPUT(ComboBox,In,"Vector of strings",std::vector< std::string >,"");
44         BBTK_INPUT(ComboBox,Form,"0 Combobox, 1 List  (default 0)",int,"");
45
46    BBTK_OUTPUT(ComboBox,Out,"i Item selected",int,"");
47    BBTK_OUTPUT(ComboBox,OutString,"string Item selected",std::string,"");
48
49 BBTK_END_DESCRIBE_BLACK_BOX(ComboBox);
50 //===== 
51 // 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)
52 //===== 
53 }
54 // EO namespace bbwt
55
56 #endif // __bbwtComboBox_h_INCLUDED__
57 #endif // _USE_WXWIDGETS_
58