From: jean-pierre roux Date: Tue, 10 Feb 2009 14:56:50 +0000 (+0000) Subject: ReactiveOnTrack is now 'bool' (no longer 'int) X-Git-Tag: EED.02Oct2009~106 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=5196156e0ab3bdf5ea8205d9cbccf558ca3004ad;p=bbtk.git ReactiveOnTrack is now 'bool' (no longer 'int) --- diff --git a/packages/wx/src/bbwxSlider.cxx b/packages/wx/src/bbwxSlider.cxx index c4050e2..9066cb8 100644 --- a/packages/wx/src/bbwxSlider.cxx +++ b/packages/wx/src/bbwxSlider.cxx @@ -2,8 +2,8 @@ Program: bbtk Module: $RCSfile: bbwxSlider.cxx,v $ Language: C++ - Date: $Date: 2009/01/13 09:57:13 $ - Version: $Revision: 1.18 $ + Date: $Date: 2009/02/10 14:56:50 $ + Version: $Revision: 1.19 $ =========================================================================*/ /* --------------------------------------------------------------------- @@ -61,7 +61,7 @@ namespace bbwx int vmin, int vmax, int value, - int track); + bool track); /// Dtor ~SliderWidget(); /// Events callbacks @@ -85,7 +85,7 @@ namespace bbwx wxSlider *mResolutionOfSlider; int min; int max; - int reactiveOnTrack; + bool reactiveOnTrack; wxStaticText *label_vertical; wxStaticText *label_min; wxStaticText *label_max; @@ -105,7 +105,7 @@ namespace bbwx int vmin, int vmax, int value, - int reactiveontrack) + bool reactiveontrack) : wxPanel( parent, -1, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL), mBox(box), @@ -125,8 +125,8 @@ namespace bbwx long wxorientation=0; if (orientation==0) { - sizeX = 2; - sizeY = 40; + sizeX = 2; + sizeY = 40; wxorientation = wxSL_HORIZONTAL; if (labels==true) { @@ -135,8 +135,8 @@ namespace bbwx } else { - sizeX = 20; - sizeY = 2; + sizeX = 20; + sizeY = 2; wxorientation = wxSL_VERTICAL; } @@ -406,7 +406,7 @@ namespace bbwx bbSetInputOrientation("HORIZONTAL"); bbSetInputChangeResolution(false); bbSetInputLabel(true); - bbSetInputReactiveOnTrack(0); + bbSetInputReactiveOnTrack(false); } //-------------------------------------------------------------------------- diff --git a/packages/wx/src/bbwxSlider.h b/packages/wx/src/bbwxSlider.h index e886846..c3a763c 100644 --- a/packages/wx/src/bbwxSlider.h +++ b/packages/wx/src/bbwxSlider.h @@ -2,8 +2,8 @@ Program: bbtk Module: $RCSfile: bbwxSlider.h,v $ Language: C++ - Date: $Date: 2008/12/11 15:30:14 $ - Version: $Revision: 1.15 $ + Date: $Date: 2009/02/10 14:56:50 $ + Version: $Revision: 1.16 $ =========================================================================*/ /* --------------------------------------------------------------------- @@ -80,7 +80,7 @@ namespace bbwx BBTK_DECLARE_INPUT(Title,std::string); BBTK_DECLARE_INPUT(Orientation,std::string); BBTK_DECLARE_INPUT(ChangeResolution,bool); - BBTK_DECLARE_INPUT(ReactiveOnTrack,int); + BBTK_DECLARE_INPUT(ReactiveOnTrack,bool); BBTK_DECLARE_OUTPUT(Out,int); BBTK_PROCESS(Process); BBTK_CREATE_WIDGET(CreateWidget); @@ -106,7 +106,7 @@ namespace bbwx 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 0 = no)",int,""); + 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); //=================================================================