//===== // 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) //===== #ifdef _USE_WT_ #ifndef __bbwtSlider_h_INCLUDED__ #define __bbwtSlider_h_INCLUDED__ #include "bbwt_EXPORT.h" #include "bbtkWtBlackBox.h" namespace bbwt { class bbwt_EXPORT Slider : public bbtk::WtBlackBox { BBTK_BLACK_BOX_INTERFACE(Slider,bbtk::WtBlackBox); //===== // 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) //===== BBTK_DECLARE_INPUT(In,int); BBTK_DECLARE_INPUT(Min,int); BBTK_DECLARE_INPUT(Max,int); BBTK_DECLARE_INPUT(Title,std::string); BBTK_DECLARE_INPUT(Orientation,std::string); BBTK_DECLARE_INPUT(ChangeResolution,bool); BBTK_DECLARE_INPUT(ReactiveOnTrack,bool); BBTK_DECLARE_OUTPUT(Out,int); BBTK_PROCESS(Process); void Process(); BBTK_CREATE_WIDGET(CreateWidget); void CreateWidget(Wt::WContainerWidget*); //===== // 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) //===== }; BBTK_BEGIN_DESCRIBE_BLACK_BOX(Slider,bbtk::WtBlackBox); BBTK_NAME("Slider"); BBTK_AUTHOR("JohannGONZALEZ"); BBTK_DESCRIPTION("gonzalez@creatis.insa-lyon.fr - Slider for web apps implemented with wt library."); BBTK_CATEGORY("__CategoryBlackBox__"); BBTK_INPUT(Slider,In, "Initial position of the slider (default 0)", int, ""); BBTK_INPUT(Slider,Min, "Minimum value of the slider (default 0)", int, ""); BBTK_INPUT(Slider,Max, "Maximum value of the slider (default 500)", int, ""); BBTK_INPUT(Slider,Title, "Title shown above the slider (default '') ", std::string, ""); BBTK_INPUT(Slider,Orientation, "Orientation : (default H) 0=H=HORIZONTAL, 1=V=VERTICAL ", std::string, ""); BBTK_INPUT(Slider,ChangeResolution, "Can the user change the resolution of the slider ? (default FALSE) ", bool, ""); BBTK_INPUT(Slider,ReactiveOnTrack, "Slider sends info when track moves (default : FALSE)", bool, ""); BBTK_OUTPUT(Slider,Out,"Current position of the slider",int,""); BBTK_END_DESCRIBE_BLACK_BOX(Slider); //===== // 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) //===== } // EO namespace bbwt #endif // __bbwtSlider_h_INCLUDED__ #endif // _USE_WXWIDGETS_