]> Creatis software - creaWT.git/blob - wt/bbtk_wt_PKG/src/bbwtSlider.h~
#3037 creaWT Bug New Normal - AddMesh update
[creaWT.git] / wt / bbtk_wt_PKG / src / bbwtSlider.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 __bbwtSlider_h_INCLUDED__
6 #define __bbwtSlider_h_INCLUDED__
7 #include "bbwt_EXPORT.h"
8 #include "bbtkWtBlackBox.h"
9
10 namespace bbwt
11 {
12
13 class bbwt_EXPORT Slider
14  : 
15    public bbtk::WtBlackBox
16 {
17   BBTK_BLACK_BOX_INTERFACE(Slider,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(In,int);
22   BBTK_DECLARE_INPUT(Min,int);
23   BBTK_DECLARE_INPUT(Max,int);
24   BBTK_DECLARE_INPUT(Title,std::string);
25   BBTK_DECLARE_INPUT(Orientation,std::string);
26   BBTK_DECLARE_INPUT(ChangeResolution,bool);
27   BBTK_DECLARE_OUTPUT(Out,int);
28   BBTK_PROCESS(Process);
29   void Process();
30   BBTK_CREATE_WIDGET(CreateWidget);
31   void CreateWidget(Wt::WContainerWidget*);
32 //===== 
33 // 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)
34 //===== 
35 };
36
37 BBTK_BEGIN_DESCRIBE_BLACK_BOX(Slider,bbtk::WtBlackBox);
38 BBTK_NAME("Slider");
39 BBTK_AUTHOR("JohannGONZALEZ");
40 BBTK_DESCRIPTION("gonzalez@creatis.insa-lyon.fr - Slider for web apps implemented with wt library.");
41 BBTK_CATEGORY("__CategoryBlackBox__");
42 BBTK_INPUT(Slider,In,               "Initial position of the slider (default 0)",                          int,         "");
43 BBTK_INPUT(Slider,Min,              "Minimum value of the slider (default 0)",                             int,         "");
44 BBTK_INPUT(Slider,Max,              "Maximum value of the slider (default 500)",                           int,         "");
45 BBTK_INPUT(Slider,Title,            "Title shown above the slider (default '') ",                          std::string, "");
46 BBTK_INPUT(Slider,Orientation,      "Orientation : (default H)  0=H=HORIZONTAL, 1=V=VERTICAL ",            std::string, "");
47 BBTK_INPUT(Slider,ChangeResolution, "Can the user change the resolution of the slider ? (default FALSE) ", bool,        "");
48 BBTK_OUTPUT(Slider,Out,"Current position of the slider",int,"");
49 BBTK_END_DESCRIBE_BLACK_BOX(Slider);
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 // __bbwtSlider_h_INCLUDED__
57 #endif // _USE_WXWIDGETS_
58