45 void CloseWindow()
override;
46 void DoText(
const char *
text);
63 AddFrame(fCanvas,
fLcan);
64 fCanvas->GetCanvas()->SetFillColor(33);
65 fCanvas->GetCanvas()->SetFrameFillColor(41);
66 fCanvas->GetCanvas()->SetBorderMode(0);
67 fCanvas->GetCanvas()->SetGrid();
68 fCanvas->GetCanvas()->SetLogy();
76 fCheck1->SetToolTipText(
"Pointer position constrained to slider sides");
77 fCheck2->SetToolTipText(
"Pointer position relative to slider position");
85 GetDefaultFrameBackground(),
87 fHslider1->Connect(
"PointerPositionChanged()",
"TTripleSliderDemo",
89 fHslider1->Connect(
"PositionChanged()",
"TTripleSliderDemo",
101 fTeh1->SetToolTipText(
"Minimum (left) Value of Slider");
102 fTeh2->SetToolTipText(
"Pointer Position Value");
103 fTeh3->SetToolTipText(
"Maximum (right) Value of Slider");
105 fTbh1->AddText(0,
"0.0");
106 fTbh2->AddText(0,
"0.0");
107 fTbh3->AddText(0,
"0.0");
109 fTeh1->Connect(
"TextChanged(char*)",
"TTripleSliderDemo",
this,
111 fTeh2->Connect(
"TextChanged(char*)",
"TTripleSliderDemo",
this,
113 fTeh3->Connect(
"TextChanged(char*)",
"TTripleSliderDemo",
this,
116 fCheck1->Connect(
"Clicked()",
"TTripleSliderDemo",
this,
118 fCheck2->Connect(
"Clicked()",
"TTripleSliderDemo",
this,
144 SetWindowName(
"Triple Slider Demo");
146 Resize(GetDefaultSize());
149 fFitFcn =
new TF1(
"fFitFcn",
"TMath::LogNormal(x, [0], [1], [2])", 0, 5);
151 fFitFcn->SetParameters(1.0, 0, 1);
163 fTbh1->AddText(0, buf);
166 fTbh2->AddText(0, buf);
169 fTbh3->AddText(0, buf);
173TTripleSliderDemo::~TTripleSliderDemo()
181void TTripleSliderDemo::CloseWindow()
189void TTripleSliderDemo::DoText(
const char * )
215 fCanvas->GetCanvas()->Modified();
216 fCanvas->GetCanvas()->Update();
220void TTripleSliderDemo::DoSlider()
228 fTbh1->AddText(0, buf);
229 fTeh1->SetCursorPosition(
fTeh1->GetCursorPosition());
235 fTbh2->AddText(0, buf);
236 fTeh2->SetCursorPosition(
fTeh2->GetCursorPosition());
242 fTbh3->AddText(0, buf);
243 fTeh3->SetCursorPosition(
fTeh3->GetCursorPosition());
251 fCanvas->GetCanvas()->Modified();
252 fCanvas->GetCanvas()->Update();
256void TTripleSliderDemo::HandleButtons()
#define ClassDef(name, id)
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize MapSubwindows
Option_t Option_t TPoint TPoint const char text
R__EXTERN void * gTQSender
A composite frame that layout their children in horizontal way.
This class describes layout hints used by the layout classes.
Defines top level windows that interact with the system Window Manager.
A text buffer is used in several widgets, like TGTextEntry, TGFileDialog, etc.
A TGTextEntry is a one line text input widget.
TripleSlider inherit from DoubleSlider widgets and allow easy selection of a min, max and pointer val...
This class creates a TGCanvas in which a TCanvas is created.