2 #ifndef __bbcreaMaracasVisuSliderMinMax_h_INCLUDED__
3 #define __bbcreaMaracasVisuSliderMinMax_h_INCLUDED__
4 #include "bbtkWxBlackBox.h"
8 namespace bbcreaMaracasVisu
12 //--------------------------------------------------------------------------------------------------------------------------------
13 //--------------------------------------------------------------------------------------------------------------------------------
14 //--------------------------------------------------------------------------------------------------------------------------------
17 //------------------------------------------------------------------------------------------------------------------------------------
18 // Event handling auxiliar class
19 //------------------------------------------------------------------------------------------------------------------------------------
20 class wxWidgetSliderMinMax : wxEvtHandler
23 //--------------------------------------------------------------------------------------------------------------------------------
24 // Constructors ans destructors
25 //--------------------------------------------------------------------------------------------------------------------------------
26 wxWidgetSliderMinMax(SliderMinMax *bbParent,mBarRange * modelBarRange);
27 ~wxWidgetSliderMinMax();
29 //--------------------------------------------------------------------------------------------------------------------------------
30 // Min-Max Barrange received events
31 //--------------------------------------------------------------------------------------------------------------------------------
32 void onBarrange(wxCommandEvent& event);
33 void onActualChange_Bar(wxCommandEvent& event);
34 void onStartChange_Bar(wxCommandEvent& event);
35 void onEndChange_Bar(wxCommandEvent& event);
36 void onSelectionEnd(wxCommandEvent& event);
37 void onMovedBar(wxCommandEvent& event);
38 void PushEventHandler();
42 //--------------------------------------------------------------------------------------------------------------------------------
44 //--------------------------------------------------------------------------------------------------------------------------------
45 SliderMinMax *mbbtkSliderMinMax;
46 mBarRange *modBarRange;
51 //--------------------------------------------------------------------------------------------------------------------------------
52 //--------------------------------------------------------------------------------------------------------------------------------
53 //--------------------------------------------------------------------------------------------------------------------------------
57 class /*BBTK_EXPORT*/ SliderMinMax
59 public bbtk::WxBlackBox
61 BBTK_BLACK_BOX_INTERFACE(SliderMinMax,bbtk::WxBlackBox);
62 BBTK_DECLARE_INPUT(Orientation, int);
63 BBTK_DECLARE_INPUT(InW, int);
64 BBTK_DECLARE_INPUT(InH, int);
65 BBTK_DECLARE_INPUT(InMax, int );
66 BBTK_DECLARE_INPUT(InMin, int );
67 BBTK_DECLARE_INPUT(InMaxShow, int );
68 BBTK_DECLARE_INPUT(InMinShow, int );
69 BBTK_DECLARE_INPUT(ShowLabels, int );
70 BBTK_DECLARE_INPUT(ShowActual, bool );
71 BBTK_DECLARE_OUTPUT(OutStart,int);
72 BBTK_DECLARE_OUTPUT(OutEnd,int);
73 BBTK_DECLARE_OUTPUT(OutActual,int);
74 BBTK_PROCESS(Process);
76 BBTK_CREATE_WIDGET(CreateWidget);
77 void CreateWidget(wxWindow*);
84 BBTK_BEGIN_DESCRIBE_BLACK_BOX(SliderMinMax,bbtk::WxBlackBox);
85 BBTK_NAME("SliderMinMax");
86 BBTK_AUTHOR("eduardo.davila [at] creatis.insa-lyon.fr");
87 BBTK_DESCRIPTION("Slider min max");
88 //BBTK_CATEGORY("__CategoryBlackBox__");
89 BBTK_INPUT(SliderMinMax,Orientation,"Orientation ", int,"");
90 BBTK_INPUT(SliderMinMax,InW,"Width ", int,"");
91 BBTK_INPUT(SliderMinMax,InH,"Height ", int,"");
92 BBTK_INPUT(SliderMinMax,InMax,"Max value ", int,"");
93 BBTK_INPUT(SliderMinMax,InMin, "Min value ",int ,"");
94 BBTK_INPUT(SliderMinMax,InMaxShow,"Max showed value ", int ,"");
95 BBTK_INPUT(SliderMinMax,InMinShow, "Min showed value ",int ,"");
96 BBTK_INPUT(SliderMinMax,ShowLabels, "Show labels ",int ,"");
97 BBTK_INPUT(SliderMinMax,ShowActual, "Show actual (default true)",bool ,"");
98 BBTK_OUTPUT(SliderMinMax,OutStart,"Min value output",int,"");
99 BBTK_OUTPUT(SliderMinMax,OutEnd,"Max value output",int,"");
100 BBTK_OUTPUT(SliderMinMax,OutActual,"Actual value output",int,"");
101 BBTK_END_DESCRIBE_BLACK_BOX(SliderMinMax);
103 // EO namespace bbcreaMaracasVisu
105 #endif // __bbcreaMaracasVisuSliderMinMax_h_INCLUDED__
106 #endif // _USE_WXWIDGETS_