]> Creatis software - creaWT.git/blob - wt/bbtk_wt_PKG/src/bbwtCommandButton.h~
#3037 creaWT Bug New Normal - AddMesh update
[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   BBTK_BLACK_BOX_INTERFACE(CommandButton,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(Label,std::string);
22   BBTK_DECLARE_INPUT(In,std::string);
23   BBTK_PROCESS(Process);
24   void Process();
25   BBTK_CREATE_WIDGET(CreateWidget);
26   void CreateWidget(Wt::WContainerWidget*);
27 //===== 
28 // 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)
29 //===== 
30             
31   private: 
32     void UpdateLabel();
33
34 };
35
36 BBTK_BEGIN_DESCRIBE_BLACK_BOX(CommandButton,bbtk::WtBlackBox);
37 BBTK_NAME("CommandButton");
38 BBTK_AUTHOR("JohannGONZALEZ");
39 BBTK_DESCRIPTION("gonzalez@creatis.insa-lyon.fr - Command button implemented for web apps with wt library.");
40 BBTK_CATEGORY("__CategoryBlackBox__");
41 BBTK_INPUT(CommandButton,Label,"Label prepended to the button",std::string,"");
42 BBTK_INPUT(CommandButton,In,"Text",std::string,"");
43 BBTK_END_DESCRIBE_BLACK_BOX(CommandButton);
44 //===== 
45 // 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)
46 //===== 
47 }
48 // EO namespace bbwt
49
50 #endif // __bbwtCommandButton_h_INCLUDED__
51 #endif // _USE_WXWIDGETS_
52