]> Creatis software - bbtk.git/commitdiff
ReactiveOnTrack is now 'bool' (no longer 'int)
authorjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Tue, 10 Feb 2009 14:56:50 +0000 (14:56 +0000)
committerjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Tue, 10 Feb 2009 14:56:50 +0000 (14:56 +0000)
packages/wx/src/bbwxSlider.cxx
packages/wx/src/bbwxSlider.h

index c4050e21da4aabb9060d1939302ab428111a4a97..9066cb8b034a89965847715807a9766d7eec20c0 100644 (file)
@@ -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);    
   }
   
   //--------------------------------------------------------------------------
index e886846cbf853470ea3a23b82a9037dc6aeaec78..c3a763cb77987d0d8f9035bf2781135d4a7da0a3 100644 (file)
@@ -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);
   //=================================================================