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 $
=========================================================================*/
/* ---------------------------------------------------------------------
int vmin,
int vmax,
int value,
- int track);
+ bool track);
/// Dtor
~SliderWidget();
/// Events callbacks
wxSlider *mResolutionOfSlider;
int min;
int max;
- int reactiveOnTrack;
+ bool reactiveOnTrack;
wxStaticText *label_vertical;
wxStaticText *label_min;
wxStaticText *label_max;
int vmin,
int vmax,
int value,
- int reactiveontrack)
+ bool reactiveontrack)
:
wxPanel( parent, -1, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL),
mBox(box),
long wxorientation=0;
if (orientation==0)
{
- sizeX = 2;
- sizeY = 40;
+ sizeX = 2;
+ sizeY = 40;
wxorientation = wxSL_HORIZONTAL;
if (labels==true)
{
}
else
{
- sizeX = 20;
- sizeY = 2;
+ sizeX = 20;
+ sizeY = 2;
wxorientation = wxSL_VERTICAL;
}
bbSetInputOrientation("HORIZONTAL");
bbSetInputChangeResolution(false);
bbSetInputLabel(true);
- bbSetInputReactiveOnTrack(0);
+ bbSetInputReactiveOnTrack(false);
}
//--------------------------------------------------------------------------
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 $
=========================================================================*/
/* ---------------------------------------------------------------------
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);
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);
//=================================================================