2 # ---------------------------------------------------------------------
4 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
6 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
7 # Previous Authors : Laurent Guigues, Jean-Pierre Roux
8 # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
10 # This software is governed by the CeCILL-B license under French law and
11 # abiding by the rules of distribution of free software. You can use,
12 # modify and/ or redistribute the software under the terms of the CeCILL-B
13 # license as circulated by CEA, CNRS and INRIA at the following URL
14 # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
15 # or in the file LICENSE.txt.
17 # As a counterpart to the access to the source code and rights to copy,
18 # modify and redistribute granted by the license, users are provided only
19 # with a limited warranty and the software's author, the holder of the
20 # economic rights, and the successive licensors have only limited
23 # The fact that you are presently reading this means that you have had
24 # knowledge of the CeCILL-B license and that you accept its terms.
25 # ------------------------------------------------------------------------ */
28 /*=========================================================================
30 Module: $RCSfile: bbwxSlider.h,v $
32 Date: $Date: 2012/11/16 08:52:14 $
33 Version: $Revision: 1.19 $
34 =========================================================================*/
38 * \brief Short description in one line
40 * Long description which
41 * can span multiple lines
48 * \class bbwx::SliderWidget
52 #ifdef _USE_WXWIDGETS_
54 // Prevents multiple inclusions : use symbols of the form
55 // __FILENAME_INCLUDED__
56 // where FILENAME must be replaced by the actual file name
57 #ifndef __bbwxSlider_h_INCLUDED__
58 #define __bbwxSlider_h_INCLUDED__
60 // Include wxBlackBox definition
61 #include "bbtkWxBlackBox.h"
63 #include "bbwx_EXPORT.h"
66 // Namespace of the package "wx" is "bbwx"
67 // Namespace associated to packages should be of the form :
72 //------------------------------------------------------------------------
74 class bbwx_EXPORT Slider : public bbtk::WxBlackBox
76 BBTK_BLACK_BOX_INTERFACE(Slider,bbtk::WxBlackBox);
77 BBTK_DECLARE_INPUT(In,int);
78 BBTK_DECLARE_INPUT(Min,int);
79 BBTK_DECLARE_INPUT(Max,int);
80 BBTK_DECLARE_INPUT(Label,bool);
81 BBTK_DECLARE_INPUT(Title,std::string);
82 BBTK_DECLARE_INPUT(Orientation,std::string);
83 BBTK_DECLARE_INPUT(ChangeResolution,bool);
84 BBTK_DECLARE_INPUT(ReactiveOnTrack,bool);
85 BBTK_DECLARE_OUTPUT(Out,int);
86 BBTK_PROCESS(Process);
87 BBTK_CREATE_WIDGET(CreateWidget);
89 void CreateWidget(wxWindow*);
94 //=================================================================
96 //=================================================================
97 // the black box description
98 BBTK_BEGIN_DESCRIBE_BLACK_BOX(Slider,bbtk::WxBlackBox);
100 BBTK_AUTHOR("eduardo.davila@creatis.insa-lyon.fr");
101 // Already inserted for any WxBlackBox BBTK_CATEGORY("widget");
102 BBTK_DESCRIPTION("Slider widget (wxSlider)");
103 BBTK_INPUT(Slider,In, "Initial position of the slider (default 0)", int, "");
104 BBTK_INPUT(Slider,Min, "Minimum value of the slider (default 0)", int, "");
105 BBTK_INPUT(Slider,Max, "Maximum value of the slider (default 500)", int, "");
106 BBTK_INPUT(Slider,Label, "Show slider labels ? (default FALSE) ", bool, "");
107 BBTK_INPUT(Slider,Title, "Title shown above the slider (default '') ", std::string, "");
108 BBTK_INPUT(Slider,Orientation, "Orientation : (default H) 0=H=HORIZONTAL, 1=V=VERTICAL ", std::string, "");
109 BBTK_INPUT(Slider,ChangeResolution, "Can the user change the resolution of the slider ? (default FALSE) ", bool, "");
110 BBTK_INPUT(Slider,ReactiveOnTrack, "Slider sends info when track moves (default : FALSE)", bool, "");
112 BBTK_OUTPUT(Slider,Out,"Current position of the slider",int,"");
113 BBTK_END_DESCRIBE_BLACK_BOX(Slider);
114 //=================================================================
118 #endif //__bbtkwxSlider_h_INCLUDED__
120 #endif //_USE_WXWIDGETS_