]> Creatis software - creaWT.git/blob - wt/bbtk_wt_PKG/src/bbwtCommandButton.h
2536 BBTK Feature New Normal wt-version Package
[creaWT.git] / wt / bbtk_wt_PKG / src / bbwtCommandButton.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 __bbwtCommandButton_h_INCLUDED__
6 #define __bbwtCommandButton_h_INCLUDED__
7 #include "bbwt_EXPORT.h"
8 #include "bbtkWtBlackBox.h"
9
10 namespace bbwt
11 {
12
13 class bbwt_EXPORT CommandButton
14  : 
15    public bbtk::WtBlackBox
16 {
17   friend class CommandButtonWidget;
18   BBTK_BLACK_BOX_INTERFACE(CommandButton,bbtk::WtBlackBox);
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   BBTK_DECLARE_INPUT(Label,std::string);
23   BBTK_DECLARE_INPUT(In,std::string);
24   BBTK_PROCESS(Process);
25   void Process();
26   BBTK_CREATE_WIDGET(CreateWidget);
27   void CreateWidget(Wt::WContainerWidget*);
28 //===== 
29 // 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)
30 //===== 
31             
32   private: 
33     void UpdateLabel();
34
35 };
36
37 BBTK_BEGIN_DESCRIBE_BLACK_BOX(CommandButton,bbtk::WtBlackBox);
38 BBTK_NAME("CommandButton");
39 BBTK_AUTHOR("JohannGONZALEZ");
40 BBTK_DESCRIPTION("gonzalez@creatis.insa-lyon.fr - Command button implemented for web apps with wt library.");
41 BBTK_CATEGORY("__CategoryBlackBox__");
42 BBTK_INPUT(CommandButton,Label,"Label prepended to the button",std::string,"");
43 BBTK_INPUT(CommandButton,In,"Text",std::string,"");
44 BBTK_END_DESCRIBE_BLACK_BOX(CommandButton);
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 // EO namespace bbwt
50
51 #endif // __bbwtCommandButton_h_INCLUDED__
52 #endif // _USE_WXWIDGETS_
53