ROOT logo
ROOT » GUI » GUI » TGNumberEntryField

class TGNumberEntryField: public TGTextEntry, public TGNumberFormat


TGNumberEntry, TGNumberEntryField and TGNumberFormat

TGNumberEntry is a number entry input widget with up/down buttons.
TGNumberEntryField is a number entry input widget.
TGNumberFormat contains enum types to specify the numeric format.

The number entry widget is based on TGTextEntry but allows only
numerical input. The widget support numerous formats including
integers, hex numbers, real numbers, fixed fraction reals and
time/date formats. The widget also allows to restrict input values
to non-negative or positive numbers and to specify explicit limits.

The following styles are supported:
kNESInteger:        integer number
kNESRealOne:        real number with one digit (no exponent)
kNESRealTwo:        real number with two digits (no exponent)
kNESRealThree:      real number with three digits (no exponent)
kNESRealFour:       real number with four digits (no exponent)
kNESReal:           arbitrary real number
kNESDegree:         angle in degree:minutes:seconds format
kNESMinSec:         time in minutes:seconds format
kNESHourMin:        time in hour:minutes format
kNESHourMinSec:     time in hour:minutes:seconds format
kNESDayMYear:       date in day/month/year format
kNESMDayYear:       date in month/day/year format
kNESHex:            hex number

The following attributes can be specified:
kNEAAnyNumber:      any number is allowed
kNEANonNegative:    only non-negative numbers are allowed
kNEAPositive:       only positive numbers are allowed

Explicit limits can be specified individually:
kNELNoLimits:       no limits
kNELLimitMin:       lower limit only
kNELLimitMax        upper limit only
kNELLimitMinMax     both lower and upper limits

TGNumberEntryField is a plain vanilla entry field, whereas
TGNumberEntry adds two small buttons to increase and decrease the
numerical value in the field. The number entry widgets also support
using the up and down cursor keys to change the numerical values.
The step size can be selected with control and shift keys:
--                  small step (1 unit/factor of 3)
shift               medium step (10 units/factor of 10)
control             large step (100 units/factor of 30)
shift-control       huge step (1000 units/factor of 100)

The steps are either linear or logarithmic. The default behaviour
is set when the entry field is created, but it can be changed by
pressing the alt key at the same time.

Changing the number in the widget will generate the event:
kC_TEXTENTRY, kTE_TEXTCHANGED, widget id, 0.
Hitting the enter key will generate:
kC_TEXTENTRY, kTE_ENTER, widget id, 0.
Hitting the tab key will generate:
kC_TEXTENTRY, kTE_TAB, widget id, 0.


/* */

Function Members (Methods)

public:
TGNumberEntryField(const TGWindow* p, Int_t id, Double_t val, GContext_t norm, FontStruct_t font = GetDefaultFontStruct(), UInt_t option = kSunkenFrame|kDoubleBorder, Pixel_t back = GetWhitePixel())
TGNumberEntryField(const TGWindow* parent = 0, Int_t id = -1, Double_t val = 0, TGNumberFormat::EStyle style = kNESReal, TGNumberFormat::EAttribute attr = kNEAAnyNumber, TGNumberFormat::ELimit limits = kNELNoLimits, Double_t min = 0, Double_t max = 1)
~TGNumberEntryField()
voidTObject::AbstractMethod(const char* method) const
virtual voidTGFrame::Activate(Bool_t)
voidTGFrame::AddInput(UInt_t emask)
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTGTextEntry::AppendText(const char* text)
static Bool_tTQObject::AreAllSignalsBlocked()
Bool_tTQObject::AreSignalsBlocked() const
virtual voidTGWidget::Associate(const TGWindow* w)
voidTGTextEntry::Backspace()
static Bool_tTQObject::BlockAllSignals(Bool_t b)
Bool_tTQObject::BlockSignals(Bool_t b)
virtual voidTObject::Browse(TBrowser* b)
virtual voidTGFrame::ChangeBackground(Pixel_t back)
virtual voidTQObject::ChangedBy(const char* method)SIGNAL
virtual voidTGFrame::ChangeOptions(UInt_t options)
static TClass*Class()
static TClass*TGNumberFormat::Class()
static TClass*TGTextEntry::Class()
static TClass*TGWidget::Class()
static TClass*TGFrame::Class()
static TClass*TQObject::Class()
static TClass*TGWindow::Class()
static TClass*TGObject::Class()
static TClass*TObject::Class()
virtual const char*TObject::ClassName() const
virtual voidTGTextEntry::Clear(Option_t* option = "")
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
voidTQObject::CollectClassSignalLists(TList& list, TClass* cls)
virtual Int_tTObject::Compare(const TObject* obj) const
Bool_tTQObject::Connect(const char* signal, const char* receiver_class, void* receiver, const char* slot)
static Bool_tTQObject::Connect(TQObject* sender, const char* signal, const char* receiver_class, void* receiver, const char* slot)
static Bool_tTQObject::Connect(const char* sender_class, const char* signal, const char* receiver_class, void* receiver, const char* slot)
virtual voidTQObject::Connected(const char*)
Bool_tTGFrame::Contains(Int_t x, Int_t y) const
virtual voidTObject::Copy(TObject& object) const
voidTGTextEntry::CursorLeft(Bool_t mark = kFALSE, Int_t steps = 1)
virtual voidTGTextEntry::CursorOutDown()SIGNAL
virtual voidTGTextEntry::CursorOutLeft()SIGNAL
virtual voidTGTextEntry::CursorOutRight()SIGNAL
virtual voidTGTextEntry::CursorOutUp()SIGNAL
voidTGTextEntry::CursorRight(Bool_t mark = kFALSE, Int_t steps = 1)
voidTGTextEntry::CursorWordBackward(Bool_t mark = kFALSE)
voidTGTextEntry::CursorWordForward(Bool_t mark = kFALSE)
voidTGTextEntry::Cut()
voidTGTextEntry::Del()
virtual voidTGFrame::Delete(Option_t* = "")
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual voidTGFrame::DeleteWindow()
voidTGTextEntry::Deselect()
virtual voidTQObject::Destroyed()SIGNAL
virtual voidTGWindow::DestroySubwindows()
virtual voidTGWindow::DestroyWindow()
Bool_tTQObject::Disconnect(const char* signal = 0, void* receiver = 0, const char* slot = 0)
static Bool_tTQObject::Disconnect(TQObject* sender, const char* signal = 0, void* receiver = 0, const char* slot = 0)
static Bool_tTQObject::Disconnect(const char* class_name, const char* signal, void* receiver = 0, const char* slot = 0)
virtual voidTQObject::Disconnected(const char*)
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTGTextEntry::DoubleClicked()SIGNAL
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTGTextEntry::DrawBorder()
virtual voidTGFrame::DrawBorder()
virtual voidTGFrame::DrawClass() const
virtual voidTObject::DrawClass() constMENU
virtual TObject*TGFrame::DrawClone(Option_t* = "") const
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTGFrame::DrawCopy(Handle_t, Int_t, Int_t)
virtual voidTGFrame::Dump() const
virtual voidTObject::Dump() constMENU
voidTQObject::Emit(const char* signal)
voidTQObject::Emit(const char* signal, Long_t* paramArr)
voidTQObject::Emit(const char* signal, const char* params)
voidTQObject::Emit(const char* signal, Double_t param)
voidTQObject::Emit(const char* signal, Long_t param)
voidTQObject::Emit(const char* signal, Long64_t param)
voidTQObject::Emit(const char* signal, Bool_t param)
voidTQObject::Emit(const char* signal, Char_t param)
voidTQObject::Emit(const char* signal, UChar_t param)
voidTQObject::Emit(const char* signal, Short_t param)
voidTQObject::Emit(const char* signal, UShort_t param)
voidTQObject::Emit(const char* signal, Int_t param)
voidTQObject::Emit(const char* signal, UInt_t param)
voidTQObject::Emit(const char* signal, ULong_t param)
voidTQObject::Emit(const char* signal, ULong64_t param)
voidTQObject::Emit(const char* signal, Float_t param)
voidTQObject::EmitVA(const char* signal, Int_t nargs)
voidTQObject::EmitVA(const char* signal, Int_t nargs, va_list va)
voidTGTextEntry::End(Bool_t mark = kFALSE)
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
ETextJustificationTGTextEntry::GetAlignment() const
virtual Pixel_tTGFrame::GetBackground() const
static const TGGC&TGFrame::GetBckgndGC()
static const TGGC&TGFrame::GetBlackGC()
static Pixel_tTGFrame::GetBlackPixel()
Int_tTGFrame::GetBorderWidth() const
TGTextBuffer*TGTextEntry::GetBuffer() const
virtual Int_tGetCharWidth(const char* text = "0") const
TGClient*TGObject::GetClient() const
const char*TGWidget::GetCommand() const
static Int_tTGWindow::GetCounter()
Int_tTGTextEntry::GetCursorPosition() const
virtual voidGetDate(Int_t& year, Int_t& month, Int_t& day) const
static FontStruct_tTGTextEntry::GetDefaultFontStruct()
static Pixel_tTGFrame::GetDefaultFrameBackground()
static const TGGC&TGTextEntry::GetDefaultGC()
virtual UInt_tTGFrame::GetDefaultHeight() const
static Pixel_tTGFrame::GetDefaultSelectedBackground()
virtual TGDimensionTGFrame::GetDefaultSize() const
virtual UInt_tTGFrame::GetDefaultWidth() const
TStringTGTextEntry::GetDisplayText() const
virtual TDNDData*TGFrame::GetDNDData(Atom_t)
virtual Int_tTGFrame::GetDragType() const
virtual Option_t*TObject::GetDrawOption() const
virtual Int_tTGFrame::GetDropType() const
static Long_tTObject::GetDtorOnly()
TGTextEntry::EEchoModeTGTextEntry::GetEchoMode() const
virtual UInt_tTGWindow::GetEditDisabled() const
UInt_tTGFrame::GetEventMask() const
FontStruct_tTGTextEntry::GetFontStruct() const
virtual Pixel_tTGTextEntry::GetForeground() const
virtual Pixel_tTGFrame::GetForeground() const
TGFrameElement*TGFrame::GetFrameElement() const
virtual TGFrame*TGFrame::GetFrameFromPoint(Int_t x, Int_t y)
UInt_tTGFrame::GetHeight() const
virtual ULong_tGetHexNumber() const
static const TGGC&TGFrame::GetHilightGC()
virtual const char*TObject::GetIconName() const
Handle_tTGObject::GetId() const
TGTextEntry::EInsertModeTGTextEntry::GetInsertMode() const
virtual Long_tGetIntNumber() const
TList*TQObject::GetListOfClassSignals() const
TList*TQObject::GetListOfConnections() const
TList*TQObject::GetListOfSignals() const
virtual const TGWindow*TGWindow::GetMainFrame() const
TStringTGTextEntry::GetMarkedText() const
UInt_tTGFrame::GetMaxHeight() const
Int_tTGTextEntry::GetMaxLength() const
UInt_tTGFrame::GetMaxWidth() const
UInt_tTGFrame::GetMinHeight() const
UInt_tTGFrame::GetMinWidth() const
virtual const char*TGWindow::GetName() const
virtual const char*TObject::GetName() const
virtual TGNumberFormat::EAttributeGetNumAttr() const
virtual Double_tGetNumber() const
virtual TGNumberFormat::ELimitGetNumLimits() const
virtual Double_tGetNumMax() const
virtual Double_tGetNumMin() const
virtual TGNumberFormat::EStyleGetNumStyle() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual UInt_tTGFrame::GetOptions() const
const TGWindow*TGWindow::GetParent() const
static const TGGC&TGFrame::GetShadowGC()
TGDimensionTGFrame::GetSize() const
const char*TGTextEntry::GetText() const
Pixel_tTGTextEntry::GetTextColor() const
virtual voidGetTime(Int_t& hour, Int_t& min, Int_t& sec) const
virtual const char*TGTextEntry::GetTitle() const
virtual const char*TObject::GetTitle() const
virtual TGToolTip*TGTextEntry::GetToolTip() const
virtual UInt_tTObject::GetUniqueID() const
static const TGGC&TGFrame::GetWhiteGC()
static Pixel_tTGFrame::GetWhitePixel()
UInt_tTGFrame::GetWidth() const
Int_tTGFrame::GetX() const
Int_tTGFrame::GetY() const
virtual Bool_tTGTextEntry::HandleButton(Event_t* event)
virtual Bool_tTGFrame::HandleButton(Event_t*)
virtual Bool_tTGFrame::HandleClientMessage(Event_t* event)
virtual Bool_tTGFrame::HandleColormapChange(Event_t*)
virtual Bool_tTGTextEntry::HandleConfigureNotify(Event_t* event)
virtual Bool_tTGFrame::HandleConfigureNotify(Event_t* event)
virtual Bool_tTGTextEntry::HandleCrossing(Event_t* event)
virtual Bool_tTGFrame::HandleCrossing(Event_t*)
virtual Bool_tTGFrame::HandleDNDDrop(TDNDData*)
virtual Atom_tTGFrame::HandleDNDEnter(Atom_t*)
virtual Bool_tTGFrame::HandleDNDFinished()
virtual Bool_tTGFrame::HandleDNDLeave()
virtual Atom_tTGFrame::HandleDNDPosition(Int_t, Int_t, Atom_t, Int_t, Int_t)
virtual Bool_tTGTextEntry::HandleDoubleClick(Event_t* event)
virtual Bool_tTGFrame::HandleDoubleClick(Event_t*)
virtual Bool_tTGFrame::HandleDragDrop(TGFrame*, Int_t, Int_t, TGLayoutHints*)
virtual Bool_tTGFrame::HandleDragEnter(TGFrame*)
virtual Bool_tTGFrame::HandleDragLeave(TGFrame*)
virtual Bool_tTGFrame::HandleDragMotion(TGFrame*)
virtual Bool_tTGFrame::HandleEvent(Event_t* event)
virtual Bool_tTGWindow::HandleEvent(Event_t*)
virtual Bool_tTGWindow::HandleExpose(Event_t* event)
virtual Bool_tHandleFocusChange(Event_t* event)
virtual Bool_tTGWindow::HandleIdleEvent(TGIdleHandler*)
virtual Bool_tHandleKey(Event_t* event)
virtual Bool_tTGTextEntry::HandleKey(Event_t* event)
virtual Bool_tTGFrame::HandleKey(Event_t*)
virtual Bool_tTGTextEntry::HandleMotion(Event_t* event)
virtual Bool_tTGFrame::HandleMotion(Event_t*)
virtual Bool_tTGTextEntry::HandleSelection(Event_t* event)
virtual Bool_tTGFrame::HandleSelection(Event_t*)
virtual Bool_tTGTextEntry::HandleSelectionClear(Event_t* event)
virtual Bool_tTGFrame::HandleSelectionClear(Event_t*)
virtual Bool_tTGTextEntry::HandleSelectionRequest(Event_t* event)
virtual Bool_tTGFrame::HandleSelectionRequest(Event_t*)
virtual Bool_tTGTextEntry::HandleTimer(TTimer* t)
virtual Bool_tTGWindow::HandleTimer(TTimer*)
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual Bool_tTQObject::HasConnection(const char* signal_name) const
Bool_tTGWidget::HasFocus() const
virtual ULong_tTGObject::Hash() const
virtual ULong_tTObject::Hash() const
Bool_tTGTextEntry::HasMarkedText() const
Bool_tTGTextEntry::HasOwnFont() const
virtual voidTQObject::HighPriority(const char* signal_name, const char* slot_name = 0)
voidTGTextEntry::Home(Bool_t mark = kFALSE)
virtual voidTGWindow::IconifyWindow()
virtual voidIncreaseNumber(TGNumberFormat::EStepSize step = kNSSSmall, Int_t sign = 1, Bool_t logstep = kFALSE)
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTGTextEntry::Insert(const char*)
virtual voidTGTextEntry::InsertText(const char* text, Int_t pos)
virtual voidTGFrame::Inspect() const
virtual voidTObject::Inspect() constMENU
virtual voidInvalidInput(const char* instr)SIGNAL
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual TClass*TGNumberFormat::IsA() const
virtual TClass*TGTextEntry::IsA() const
virtual TClass*TGWidget::IsA() const
virtual TClass*TGFrame::IsA() const
virtual TClass*TQObject::IsA() const
virtual TClass*TGWindow::IsA() const
virtual TClass*TGObject::IsA() const
virtual TClass*TObject::IsA() const
virtual Bool_tTGFrame::IsActive() const
virtual Bool_tTGFrame::IsComposite() const
Bool_tTGFrame::IsDNDSource() const
Bool_tTGFrame::IsDNDTarget() const
virtual Bool_tIsEditable() const
Bool_tTGTextEntry::IsEdited() const
Bool_tTGWidget::IsEnabled() const
virtual Bool_tTGObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTGTextEntry::IsFrameDrawn() const
virtual Bool_tTGFrame::IsLayoutBroken() const
virtual Bool_tIsLogStep() const
virtual Bool_tTGWindow::IsMapped()
virtual Bool_tTGWindow::IsMapSubwindows() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidLayout()
virtual voidTGTextEntry::Layout()
virtual voidTGFrame::Layout()
static voidTQObject::LoadRQ_OBJECT()
virtual voidTGWindow::LowerWindow()
virtual voidTQObject::LowPriority(const char* signal_name, const char* slot_name = 0)
virtual voidTObject::ls(Option_t* option = "") const
virtual voidTGFrame::MapRaised()
virtual voidTGWindow::MapRaised()
virtual voidTGFrame::MapSubwindows()
virtual voidTGWindow::MapSubwindows()
virtual voidTGFrame::MapWindow()
virtual voidTGWindow::MapWindow()
voidTGTextEntry::MarkWord(Int_t pos)
Int_tTGTextEntry::MaxMark() const
voidTObject::MayNotUse(const char* method) const
virtual voidTQObject::Message(const char* msg)SIGNAL
Int_tTGTextEntry::MinMark() const
virtual voidTGFrame::Move(Int_t x, Int_t y)
virtual voidTGWindow::Move(Int_t x, Int_t y)
virtual voidTGFrame::MoveResize(Int_t x, Int_t y, UInt_t w = 0, UInt_t h = 0)
virtual voidTGWindow::MoveResize(Int_t x, Int_t y, UInt_t w, UInt_t h)
virtual Int_tTGWindow::MustCleanup() const
voidTGTextEntry::NewMark(Int_t pos)
virtual Bool_tTObject::Notify()
virtual Int_tTQObject::NumberOfConnections() const
virtual Int_tTQObject::NumberOfSignals() const
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTGFrame::Print(Option_t* option = "") const
virtual voidTGWindow::Print(Option_t* option = "") const
virtual voidTObject::Print(Option_t* option = "") const
virtual voidTGFrame::ProcessedConfigure(Event_t* event)SIGNAL
virtual voidTGFrame::ProcessedEvent(Event_t* event)SIGNAL
virtual Bool_tTGFrame::ProcessMessage(Long_t, Long_t, Long_t)
virtual voidTGWindow::RaiseWindow()
virtual Int_tTObject::Read(const char* name)
virtual voidTGFrame::ReallyDelete()
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTGTextEntry::Remove()
voidTGFrame::RemoveInput(UInt_t emask)
virtual voidTGTextEntry::RemoveText(Int_t start, Int_t end)
virtual voidTGFrame::ReparentWindow(const TGWindow* p, Int_t x = 0, Int_t y = 0)
virtual voidTGWindow::ReparentWindow(const TGWindow* p, Int_t x = 0, Int_t y = 0)
virtual voidTGWindow::RequestFocus()
voidTObject::ResetBit(UInt_t f)
virtual voidTGFrame::Resize(TGDimension size)
virtual voidTGFrame::Resize(UInt_t w = 0, UInt_t h = 0)
virtual voidTGWindow::Resize(UInt_t w, UInt_t h)
virtual voidReturnPressed()
virtual voidTGTextEntry::ReturnPressed()SIGNAL
virtual voidTGObject::SaveAs(const char* filename = "", Option_t* option = "") const
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidSavePrimitive(ostream& out, Option_t* = "")
virtual voidTGTextEntry::SavePrimitive(ostream& out, Option_t* option = "")
virtual voidTGFrame::SavePrimitive(ostream& out, Option_t* option = "")
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidTGFrame::SaveUserColor(ostream& out, Option_t*)
virtual voidTGTextEntry::SelectAll()
virtual voidTGFrame::SendMessage(const TGWindow* w, Long_t msg, Long_t parm1, Long_t parm2)
virtual voidTGTextEntry::SetAlignment(ETextJustification mode = kTextLeft)
virtual voidTGFrame::SetBackgroundColor(Pixel_t back)
virtual voidTGWindow::SetBackgroundColor(Pixel_t color)
virtual voidTGWindow::SetBackgroundPixmap(Pixmap_t pixmap)
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTGFrame::SetCleanup(Int_t = kLocalCleanup)
virtual voidTGWidget::SetCommand(const char* command)
virtual voidTGTextEntry::SetCursorPosition(Int_t pos)
virtual voidSetDate(Int_t year, Int_t month, Int_t day)
voidTGFrame::SetDNDSource(Bool_t onoff)
voidTGFrame::SetDNDTarget(Bool_t onoff)
virtual voidTGFrame::SetDragType(Int_t type)
virtual voidTGFrame::SetDrawOption(Option_t* = "")
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
virtual voidTGFrame::SetDropType(Int_t type)
static voidTObject::SetDtorOnly(void* obj)
virtual voidTGTextEntry::SetEchoMode(TGTextEntry::EEchoMode mode = kNormal)
virtual voidTGFrame::SetEditable(Bool_t)
virtual voidTGWindow::SetEditable(Bool_t on = kTRUE)
virtual voidTGWindow::SetEditDisabled(UInt_t on = kEditDisable)
voidTGTextEntry::SetEdited(Bool_t flag = kTRUE)
voidTGTextEntry::SetEnabled(Bool_t flag = kTRUE)TOGGLE GETTER
virtual voidTGTextEntry::SetFocus()
virtual voidTGTextEntry::SetFont(TGFont* font, Bool_t local = kTRUE)
virtual voidTGTextEntry::SetFont(FontStruct_t font, Bool_t local = kTRUE)
virtual voidTGTextEntry::SetFont(const char* fontName, Bool_t local = kTRUE)
virtual voidTGTextEntry::SetForegroundColor(Pixel_t fore)
virtual voidTGFrame::SetForegroundColor(Pixel_t)
virtual voidSetFormat(TGNumberFormat::EStyle style, TGNumberFormat::EAttribute attr = kNEAAnyNumber)
virtual voidTGTextEntry::SetFrameDrawn(Bool_t flag = kTRUE)
voidTGFrame::SetFrameElement(TGFrameElement* fe)
virtual voidTGFrame::SetHeight(UInt_t h)
virtual voidSetHexNumber(ULong_t val)
virtual voidTGTextEntry::SetInsertMode(TGTextEntry::EInsertMode mode = kInsert)
virtual voidSetIntNumber(Long_t val)
virtual voidTGFrame::SetLayoutBroken(Bool_t = kTRUE)
virtual voidSetLimits(TGNumberFormat::ELimit limits = kNELNoLimits, Double_t min = 0, Double_t max = 1)
virtual voidSetLogStep(Bool_t on = kTRUE)
virtual voidTGWindow::SetMapSubwindows(Bool_t)
virtual voidTGFrame::SetMaxHeight(UInt_t h)
virtual voidTGTextEntry::SetMaxLength(Int_t maxlen)MENU
virtual voidTGFrame::SetMaxWidth(UInt_t w)
virtual voidTGFrame::SetMinHeight(UInt_t h)
virtual voidTGFrame::SetMinWidth(UInt_t w)
virtual voidTGWindow::SetName(const char* name)
virtual voidSetNumber(Double_t val)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTGFrame::SetSize(const TGDimension& s)
virtual voidSetState(Bool_t state)
virtual voidTGTextEntry::SetState(Bool_t state)
virtual voidSetText(const char* text, Bool_t emit = kTRUE)
virtual voidTGTextEntry::SetText(const char* text, Bool_t emit = kTRUE)MENU
virtual voidTGTextEntry::SetTextColor(Pixel_t color, Bool_t local = kTRUE)
virtual voidTGTextEntry::SetTextColor(TColor* color, Bool_t local = kTRUE)
virtual voidSetTime(Int_t hour, Int_t min, Int_t sec)
virtual voidTGTextEntry::SetTitle(const char* label)
virtual voidTGTextEntry::SetToolTipText(const char* text, Long_t delayms = 500)MENU
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidTGFrame::SetWidth(UInt_t w)
virtual voidTGWindow::SetWindowName(const char* name = 0)
virtual voidTGFrame::SetX(Int_t x)
virtual voidTGFrame::SetY(Int_t y)
virtual voidTGTextEntry::ShiftTabPressed()SIGNAL
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidTGTextEntry::ShowMembers(TMemberInspector& insp, char* parent)
virtual voidTGFrame::ShowMembers(TMemberInspector& insp, char* parent)
virtual voidTQObject::ShowMembers(TMemberInspector& insp, char* parent)
virtual voidTGWindow::ShowMembers(TMemberInspector& insp, char* parent)
virtual voidTGObject::ShowMembers(TMemberInspector& insp, char* parent)
virtual voidTObject::ShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
virtual voidTGNumberFormat::Streamer(TBuffer& b)
virtual voidTGTextEntry::Streamer(TBuffer& b)
virtual voidTGWidget::Streamer(TBuffer& b)
virtual voidTGFrame::Streamer(TBuffer& b)
virtual voidTQObject::Streamer(TBuffer& b)
virtual voidTGWindow::Streamer(TBuffer& b)
virtual voidTGObject::Streamer(TBuffer& b)
virtual voidTObject::Streamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
voidTGNumberFormat::StreamerNVirtual(TBuffer& b)
voidTGTextEntry::StreamerNVirtual(TBuffer& b)
voidTGWidget::StreamerNVirtual(TBuffer& b)
voidTGFrame::StreamerNVirtual(TBuffer& b)
voidTQObject::StreamerNVirtual(TBuffer& b)
voidTGWindow::StreamerNVirtual(TBuffer& b)
voidTGObject::StreamerNVirtual(TBuffer& b)
voidTObject::StreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
virtual voidTGTextEntry::TabPressed()SIGNAL
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTextChanged(const char* text = 0)
virtual voidTGTextEntry::TextChanged(const char* text = 0)SIGNAL
virtual voidTGFrame::UnmapWindow()
virtual voidTGWindow::UnmapWindow()
virtual voidTObject::UseCurrentStyle()
Bool_tTGWidget::WantFocus() const
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
Int_tTGWidget::WidgetId() const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
static Int_tTQObject::CheckConnectArgs(TQObject* sender, TClass* sender_class, const char* signal, TClass* receiver_class, const char* slot)
Int_tTGWidget::ClearFlags(Int_t flags)
static Bool_tTQObject::ConnectToClass(TQObject* sender, const char* signal, TClass* receiver_class, void* receiver, const char* slot)
static Bool_tTQObject::ConnectToClass(const char* sender_class, const char* signal, TClass* receiver_class, void* receiver, const char* slot)
voidTGTextEntry::CopyText() const
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
virtual voidTGTextEntry::DoRedraw()
virtual voidTGFrame::DoRedraw()
virtual voidTGWindow::DoRedraw()
virtual voidTGFrame::Draw3dRectangle(UInt_t type, Int_t x, Int_t y, UInt_t w, UInt_t h)
Int_tTGTextEntry::GetCharacterIndex(Int_t xcoord)
static const TGGC&TGTextEntry::GetDefaultSelectedBackgroundGC()
static const TGGC&TGTextEntry::GetDefaultSelectedGC()
static Time_tTGFrame::GetLastClick()
TStringTGFrame::GetOptionString() const
const TGResourcePool*TGFrame::GetResourcePool() const
virtual void*TGFrame::GetSender()
virtual void*TQObject::GetSender()
virtual const char*TQObject::GetSenderClassName() const
virtual voidTGTextEntry::Init()
virtual Bool_tTGTextEntry::IsCursorOutOfFrame()
voidTObject::MakeZombie()
TGWindow&TGWindow::operator=(const TGWindow& tgw)
TGObject&TGObject::operator=(const TGObject& tgo)
voidTGTextEntry::Paste()
virtual voidTGTextEntry::PastePrimary(Window_t wid, Atom_t property, Bool_t del)
virtual voidTGTextEntry::ScrollByChar()
Int_tTGWidget::SetFlags(Int_t flags)
virtual voidTGFrame::StartGuiBuilding(Bool_t on = kTRUE)
virtual voidTGTextEntry::UpdateOffset()

Data Members

protected:
ETextJustificationTGTextEntry::fAlignment*OPTION={GetMethod="GetAlignment";SetMethod="SetAlignment";Items=(kTextLeft="Left",kTextCenterX="Center",kTextRight="Right")}*
Pixel_tTGFrame::fBackgroundframe background color
Int_tTGFrame::fBorderWidthframe border width
TGClient*TGObject::fClientConnection to display server
Atom_tTGTextEntry::fClipboardclipboard property
TStringTGWidget::fCommandcommand to be executed
TBlinkTimer*TGTextEntry::fCurBlinkcursor blink timer
Int_tTGTextEntry::fCursorIXcursor position in characters
Bool_tTGTextEntry::fCursorOncursor status (on/off)
Int_tTGTextEntry::fCursorXcursor position in pixels
Int_tTGFrame::fDNDStateEDNDFlags
TGTextEntry::EEchoModeTGTextEntry::fEchoMode*OPTION={GetMethod="GetEchoMode";SetMethod="SetEchoMode";Items=(kNormal="Normal",kNoEcho="No Echo",kPassword="Password")}*
UInt_tTGWindow::fEditDisabledflags used for "guibuilding"
Bool_tTGTextEntry::fEditedkFALSE, if the line edit's contents have not been changed since the construction
Int_tTGTextEntry::fEndIXselection end in characters
Int_tTGTextEntry::fEndXselection end in pixels
UInt_tTGFrame::fEventMaskcurrenty active event mask
TGFrameElement*TGFrame::fFEpointer to frame element
FontStruct_tTGTextEntry::fFontStructtext font
Bool_tTGTextEntry::fFrameDrawnkTRUE draw itself inside a two-pixel frame, kFALSE draw without any frame
Bool_tTGTextEntry::fHasOwnFontkTRUE - font defined locally, kFALSE - globally
UInt_tTGFrame::fHeightframe height
Handle_tTGObject::fIdX11/Win32 Window identifier
TGTextEntry::EInsertModeTGTextEntry::fInsertMode*OPTION={GetMethod="GetInsertMode";SetMethod="SetInsertMode";Items=(kInsert="Insert",kReplace="Replace")}*
TList*TQObject::fListOfConnections! list of connections to this object
TList*TQObject::fListOfSignals! list of signals from this object
UInt_tTGFrame::fMaxHeightmaximal frame height
Int_tTGTextEntry::fMaxLenmaximum length of text
UInt_tTGFrame::fMaxWidthmaximal frame width
UInt_tTGFrame::fMinHeightminimal frame height
UInt_tTGFrame::fMinWidthminimal frame width
const TGWindow*TGWidget::fMsgWindowwindow which handles widget events
TStringTGWindow::fNamename of the window used in SavePrimitive()
Bool_tTGWindow::fNeedRedrawkTRUE if window needs to be redrawn
Bool_tfNeedsVerificationNeeds verification of input
TGGCTGTextEntry::fNormGCnormal drawing context
TGNumberFormat::EAttributefNumAttrNumber attribute
TGNumberFormat::ELimitfNumLimitsLimit attributes
Double_tfNumMaxUpper limit
Double_tfNumMinLower limit
TGNumberFormat::EStylefNumStyleNumber style
Int_tTGTextEntry::fOffsetstart position of text (in pixels)
UInt_tTGFrame::fOptionsframe options
const TGWindow*TGWindow::fParentParent window
TGGCTGTextEntry::fSelGCselected text drawing context
GContext_tTGTextEntry::fSelbackGCselected background drawing context
Bool_tTGTextEntry::fSelectionOnselection status (on/off)
Bool_tTQObject::fSignalsBlocked! flag used for suppression of signals
Int_tTGTextEntry::fStartIXselection begin in characters
Int_tTGTextEntry::fStartXselection begin in pixels
Bool_tfStepLogLogarithmic steps for increase?
TGTextBuffer*TGTextEntry::fTexttext buffer
TGToolTip*TGTextEntry::fTipassociated tooltip
Int_tTGWidget::fWidgetFlagswidget status flags (OR of EWidgetStatus)
Int_tTGWidget::fWidgetIdthe widget id (used for event processing)
UInt_tTGFrame::fWidthframe width
Int_tTGFrame::fXframe x position
Int_tTGFrame::fYframe y position
static Bool_tTQObject::fgAllSignalsBlockedflag used for suppression of all signals
static const TGGC*TGFrame::fgBckgndGC
static const TGGC*TGFrame::fgBlackGC
static Pixel_tTGFrame::fgBlackPixel
static TString*TGTextEntry::fgClipboardTextapplication clipboard text
static Int_tTGWindow::fgCountercounter of created windows in SavePrimitive
static Window_tTGFrame::fgDbw
static Int_tTGFrame::fgDbx
static Int_tTGFrame::fgDby
static const TGFont*TGTextEntry::fgDefaultFont
static Pixel_tTGFrame::fgDefaultFrameBackground
static const TGGC*TGTextEntry::fgDefaultGC
static Pixel_tTGFrame::fgDefaultSelectedBackground
static const TGGC*TGTextEntry::fgDefaultSelectedBackgroundGC
static const TGGC*TGTextEntry::fgDefaultSelectedGC
static const TGGC*TGFrame::fgHilightGC
static Bool_tTGFrame::fgInit
static UInt_tTGFrame::fgLastButton
static Time_tTGFrame::fgLastClick
static const TGGC*TGFrame::fgShadowGC
static UInt_tTGFrame::fgUserColor
static const TGGC*TGFrame::fgWhiteGC
static Pixel_tTGFrame::fgWhitePixel

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGNumberEntryField(const TGWindow* p, Int_t id, Double_t val, GContext_t norm, FontStruct_t font = GetDefaultFontStruct(), UInt_t option = kSunkenFrame|kDoubleBorder, Pixel_t back = GetWhitePixel())
 Constructs a number entry field.
TGNumberEntryField(const TGWindow* parent = 0, Int_t id = -1, Double_t val = 0, TGNumberFormat::EStyle style = kNESReal, TGNumberFormat::EAttribute attr = kNEAAnyNumber, TGNumberFormat::ELimit limits = kNELNoLimits, Double_t min = 0, Double_t max = 1)
 Constructs a number entry field.
void SetNumber(Double_t val)
 Set the numeric value (floating point representation).
void SetIntNumber(Long_t val)
 Set the numeric value (integer representation).
void SetTime(Int_t hour, Int_t min, Int_t sec)
 Set the numeric value (time format).
void SetDate(Int_t year, Int_t month, Int_t day)
 Set the numeric value (date format).
void SetHexNumber(ULong_t val)
 Set the numeric value (hex format).
void SetText(const char* text, Bool_t emit = kTRUE)
 Set the value (text format).
Double_t GetNumber() const
 Get the numeric value (floating point representation).
Long_t GetIntNumber() const
 Get the numeric value (integer representation).
void GetTime(Int_t& hour, Int_t& min, Int_t& sec) const
 Get the numeric value (time format).
void GetDate(Int_t& year, Int_t& month, Int_t& day) const
 Get the numeric value (date format).
ULong_t GetHexNumber() const
 Get the numeric value (hex format).
Int_t GetCharWidth(const char* text = "0") const
 Get the text width in pixels.
void IncreaseNumber(TGNumberFormat::EStepSize step = kNSSSmall, Int_t sign = 1, Bool_t logstep = kFALSE)
 Increase the number value.
void SetFormat(TGNumberFormat::EStyle style, TGNumberFormat::EAttribute attr = kNEAAnyNumber)
 Set the numerical format.
void SetLimits(TGNumberFormat::ELimit limits = kNELNoLimits, Double_t min = 0, Double_t max = 1)
 Set the numerical limits.
void SetState(Bool_t state)
 Set the active state.
Bool_t HandleKey(Event_t* event)
 Handle keys.
Bool_t HandleFocusChange(Event_t* event)
 Handle focus change.
void TextChanged(const char* text = 0)
 Text has changed message.
void ReturnPressed()
 Return was pressed.
void Layout()
void SavePrimitive(ostream& out, Option_t* = "")
 Save a number entry widget as a C++ statement(s) on output stream out.
void SetLogStep(Bool_t on = kTRUE)
 Set logarithmic steps
EStyle GetNumStyle() const
 Get the numerical style
EAttribute GetNumAttr() const
 Get the numerical attribute
ELimit GetNumLimits() const
 Get the numerialc limit attribute
Double_t GetNumMin() const
 Get the lower limit
Double_t GetNumMax() const
 Get the upper limit
Bool_t IsLogStep() const
 Is log step enabled?
Bool_t IsEditable() const
{ return kFALSE; }
void InvalidInput(const char* instr)
{ Emit("InvalidInput(char*)", instr); }