13 #ifndef ROOT_TGNumberEntry 14 #define ROOT_TGNumberEntry 90 Pixel_t back = GetWhitePixel());
98 virtual void SetNumber(
Double_t val);
99 virtual void SetIntNumber(
Long_t val);
102 virtual void SetHexNumber(
ULong_t val);
106 virtual Long_t GetIntNumber()
const;
109 virtual ULong_t GetHexNumber()
const;
111 virtual Int_t GetCharWidth(
const char*
text =
"0")
const;
118 virtual void SetState(
Bool_t state);
144 virtual void TextChanged(
const char *
text = 0);
145 virtual void ReturnPressed();
148 virtual void InvalidInput(
const char *instr) { Emit(
"InvalidInput(char*)", instr); }
149 virtual void SavePrimitive(std::ostream &out,
Option_t * =
"");
194 fNumericEntry->
SetTime(hour, min, sec); }
197 fNumericEntry->
SetDate(year, month, day); }
203 fNumericEntry->
SetText(text); }
214 fNumericEntry->
GetTime(hour, min, sec); }
217 fNumericEntry->
GetDate(year, month, day); }
231 fNumericEntry->
SetLimits(limits, min, max); }
251 virtual void SetButtonToNum(
Bool_t state);
254 SetFormat(style, GetNumAttr()); }
256 SetFormat(GetNumStyle(), attr); }
258 SetLimits(limits, GetNumMin(), GetNumMax()); }
260 SetLimits(GetNumLimits(), min, max); }
263 virtual void Associate(
const TGWindow *w);
265 virtual void ValueChanged(
Long_t val);
266 virtual void ValueSet(
Long_t val);
270 return fNumericEntry; }
276 return fButtonDown; }
281 virtual void SavePrimitive(std::ostream &out,
Option_t * =
"");
virtual void IncreaseNumber(EStepSize step=kNSSSmall, Int_t sign=1, Bool_t logstep=kFALSE)
virtual ULong_t GetHexNumber() const
const TGPicture * fPicDown
virtual void GetTime(Int_t &hour, Int_t &min, Int_t &sec) const
Get the numeric value (time format).
virtual void SetTime(Int_t hour, Int_t min, Int_t sec)
Set the numeric value (time format).
virtual void SetDate(Int_t year, Int_t month, Int_t day)
Set the numeric value (date format).
virtual void SetLogStep(Bool_t on=kTRUE)
virtual void SetHexNumber(ULong_t val)
virtual void InvalidInput(const char *instr)
virtual ELimit GetNumLimits() const
virtual Bool_t IsEditable() const
virtual void SetIntNumber(Long_t val)
Set the numeric value (integer representation).
virtual void SetNumber(Double_t val)
void SetNumLimits(ELimit limits=kNELNoLimits)
virtual void SetLimits(ELimit limits=TGNumberFormat::kNELNoLimits, Double_t min=0, Double_t max=1)
void box(Int_t pat, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
virtual void GetDate(Int_t &year, Int_t &month, Int_t &day) const
Get the numeric value (date format).
virtual void IncreaseNumber(EStepSize step=kNSSSmall, Int_t sign=1, Bool_t logstep=kFALSE)
Increase the number value.
TGButton * GetButtonDown() const
virtual EAttribute GetNumAttr() const
virtual Double_t GetNumMin() const
virtual void SetFormat(EStyle style, EAttribute attr=kNEAAnyNumber)
Set the numerical format.
virtual Long_t GetIntNumber() const
Get the numeric value (integer representation).
#define ClassDef(name, id)
virtual Long_t GetIntNumber() const
TGNumberEntryField * fNumericEntry
virtual Double_t GetNumber() const
Get the numeric value (floating point representation).
virtual ELimit GetNumLimits() const
virtual Double_t GetNumMin() const
virtual void SetLimits(ELimit limits=kNELNoLimits, Double_t min=0, Double_t max=1)
Set the numerical limits.
virtual EStyle GetNumStyle() const
void SetLimitValues(Double_t min=0, Double_t max=1)
virtual Bool_t IsEditable() const
Return kTRUE if frame is being edited.
void SetNumStyle(EStyle style)
virtual void SetHexNumber(ULong_t val)
Set the numeric value (hex format).
TGButton * GetButtonUp() const
virtual void SetIntNumber(Long_t val)
virtual void SetTime(Int_t hour, Int_t min, Int_t sec)
TGNumberEntryLayout(TGNumberEntry *box)
void SetNumAttr(EAttribute attr=kNEAAnyNumber)
virtual void SetDate(Int_t year, Int_t month, Int_t day)
virtual UInt_t GetDefaultHeight() const
virtual void SetFormat(EStyle style, EAttribute attr=TGNumberFormat::kNEAAnyNumber)
virtual Bool_t IsLogStep() const
virtual Double_t GetNumber() const
Bool_t fNeedsVerification
Binding & operator=(OUT(*fun)(void))
virtual void SetNumber(Double_t val)
Set the numeric value (floating point representation).
RooCmdArg Layout(Double_t xmin, Double_t xmax=0.99, Double_t ymin=0.95)
TGNumberEntryField * GetNumberEntry() const
virtual Double_t GetNumMax() const
virtual void GetDate(Int_t &year, Int_t &month, Int_t &day) const
virtual Bool_t IsLogStep() const
virtual EAttribute GetNumAttr() const
virtual void SetText(const char *text)
virtual EStyle GetNumStyle() const
virtual ULong_t GetHexNumber() const
Get the numeric value (hex format).
virtual Double_t GetNumMax() const
virtual void SetText(const char *text, Bool_t emit=kTRUE)
Set the value (text format).
UInt_t GetDefaultHeight() const
virtual void GetTime(Int_t &hour, Int_t &min, Int_t &sec) const