00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00047 #ifdef _USE_WXWIDGETS_
00048
00049
00050
00051
00052 #ifndef __bbwxSlider_h_INCLUDED__
00053 #define __bbwxSlider_h_INCLUDED__
00054
00055
00056 #include "bbtkWxBlackBox.h"
00057
00058 #include "bbwx_EXPORT.h"
00059
00060
00061
00062
00063
00064 namespace bbwx
00065 {
00066
00067
00068
00069
00070
00071
00072 class bbwx_EXPORT Slider : public bbtk::WxBlackBox
00073 {
00074
00075 BBTK_BLACK_BOX_INTERFACE(Slider,bbtk::WxBlackBox);
00076 BBTK_DECLARE_INPUT(In,int);
00077 BBTK_DECLARE_INPUT(Min,int);
00078 BBTK_DECLARE_INPUT(Max,int);
00079 BBTK_DECLARE_INPUT(Label,bool);
00080 BBTK_DECLARE_INPUT(Title,std::string);
00081 BBTK_DECLARE_INPUT(Orientation,std::string);
00082 BBTK_DECLARE_INPUT(ChangeResolution,bool);
00083 BBTK_DECLARE_INPUT(ReactiveOnTrack,int);
00084 BBTK_DECLARE_OUTPUT(Out,int);
00085 BBTK_PROCESS(Process);
00086 BBTK_CREATE_WIDGET(CreateWidget);
00087 void Process();
00088 void CreateWidget(wxWindow*);
00089
00090 protected:
00091 virtual void bbUserConstructor();
00092 };
00093
00094
00095
00096
00097 BBTK_BEGIN_DESCRIBE_BLACK_BOX(Slider,bbtk::WxBlackBox);
00098 BBTK_NAME("Slider");
00099 BBTK_AUTHOR("eduardo.davila@creatis.insa-lyon.fr");
00100
00101 BBTK_DESCRIPTION("Slider widget (wxSlider)");
00102 BBTK_INPUT(Slider,In,"Initial position of the slider (default 0)",int,"");
00103 BBTK_INPUT(Slider,Min,"Minimum value of the slider (default 0)",int,"");
00104 BBTK_INPUT(Slider,Max,"Maximum value of the slider (default 500)",int,"");
00105 BBTK_INPUT(Slider,Label,"Show slider labels ? (default FALSE) ",bool,"");
00106 BBTK_INPUT(Slider,Title,"Title shown above the slider (default '') ", std::string,"");
00107 BBTK_INPUT(Slider,Orientation, "Orientation : (default H) 0=H=HORIZONTAL, 1=V=VERTICAL ",std::string,"");
00108 BBTK_INPUT(Slider,ChangeResolution, "Can the user change the resolution of the slider ? (default FALSE) ",bool,"");
00109 BBTK_INPUT(Slider,ReactiveOnTrack, "Slider sends info when track moves (default 0 = no)",int,"");
00110 BBTK_OUTPUT(Slider,Out,"Current position of the slider",int,"");
00111 BBTK_END_DESCRIBE_BLACK_BOX(Slider);
00112
00113
00114
00115
00116 }
00117
00118 #endif //__bbtkwxSlider_h_INCLUDED__
00119
00120 #endif //_USE_WXWIDGETS_