12 #ifndef ROOT_TGTripleSlider
13 #define ROOT_TGTripleSlider
60 class TGTripleVSlider :
public TGDoubleVSlider {
67 const TGPicture *fPointerPic;
69 virtual void DoRedraw();
70 virtual void SetPointerPos(Int_t z, Int_t opt = 0);
73 TGTripleVSlider(
const TGWindow *p = 0, UInt_t h = 1, UInt_t type = 1, Int_t
id = -1,
74 UInt_t options = kVerticalFrame,
75 Pixel_t back = GetDefaultFrameBackground(),
76 Bool_t reversed = kFALSE,
77 Bool_t mark_ends = kFALSE,
78 Bool_t constrained = kTRUE,
79 Bool_t relative = kFALSE);
81 virtual ~TGTripleVSlider();
83 virtual void PointerPositionChanged() { Emit(
"PointerPositionChanged()"); }
84 virtual void DrawPointer();
85 virtual Float_t GetPointerPosition()
const {
86 if (fReversedScale)
return fVmin + fVmax - fSCz;
89 virtual Bool_t HandleButton(Event_t *event);
90 virtual Bool_t HandleConfigureNotify(Event_t* event);
91 virtual Bool_t HandleMotion(Event_t *event);
92 virtual void SetConstrained(Bool_t on = kTRUE);
93 virtual void SetPointerPosition(Float_t pos);
94 virtual void SetRelative(Bool_t rel = kTRUE) { fRelative = rel; }
95 virtual void SavePrimitive(std::ostream &out, Option_t *option =
"");
97 ClassDef(TGTripleVSlider,0)
101 class TGTripleHSlider :
public TGDoubleHSlider {
108 const TGPicture *fPointerPic;
110 virtual void DoRedraw();
111 virtual void SetPointerPos(Int_t z, Int_t opt = 0);
114 TGTripleHSlider(
const TGWindow *p = 0, UInt_t w = 1, UInt_t type = 1, Int_t
id = -1,
115 UInt_t options = kHorizontalFrame,
116 Pixel_t back = GetDefaultFrameBackground(),
117 Bool_t reversed = kFALSE,
118 Bool_t mark_ends = kFALSE,
119 Bool_t constrained = kTRUE,
120 Bool_t relative = kFALSE);
122 virtual ~TGTripleHSlider();
124 virtual void PointerPositionChanged() { Emit(
"PointerPositionChanged()"); }
125 virtual void DrawPointer();
126 virtual Float_t GetPointerPosition()
const {
127 if (fReversedScale)
return fVmin + fVmax - fSCz;
130 virtual Bool_t HandleButton(Event_t *event);
131 virtual Bool_t HandleConfigureNotify(Event_t* event);
132 virtual Bool_t HandleMotion(Event_t *event);
133 virtual void SetConstrained(Bool_t on = kTRUE);
134 virtual void SetPointerPosition(Float_t pos);
135 virtual void SetRelative(Bool_t rel = kTRUE) { fRelative = rel; }
136 virtual void SavePrimitive(std::ostream &out, Option_t *option =
"");
138 ClassDef(TGTripleHSlider,0)