library: libGui
#include "TGNumberEntry.h"

TGNumberEntryField


class description - header file - source file
viewCVS header - viewCVS source

class TGNumberEntryField: public TGTextEntry, public TGNumberFormat

Inheritance Inherited Members Includes Libraries
Class Charts

Function Members (Methods)

Display options:
Show inherited
Show non-public
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)
virtual voidTGWidget::Associate(const TGWindow* w)
voidTGTextEntry::Backspace()
virtual voidTObject::Browse(TBrowser* b)
virtual voidTGFrame::ChangeBackground(Pixel_t back)
virtual voidTQObject::ChangedBy(const char* method)
virtual voidTGFrame::ChangeOptions(UInt_t options)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTGTextEntry::Clear(Option_t* option = "")
virtual TObject*TObject::Clone(const char* newname = "") const
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()
virtual voidTGTextEntry::CursorOutLeft()
virtual voidTGTextEntry::CursorOutRight()
virtual voidTGTextEntry::CursorOutUp()
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 voidTGFrame::DeleteWindow()
voidTGTextEntry::Deselect()
virtual voidTQObject::Destroyed()
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()
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTGTextEntry::DrawBorder()
virtual voidTGFrame::DrawClass() const
virtual TObject*TGFrame::DrawClone(Option_t* = "") const
virtual voidTGFrame::DrawCopy(Handle_t, Int_t, Int_t)
virtual voidTGFrame::Dump() const
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 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
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 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 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::HandleClientMessage(Event_t* event)
virtual Bool_tTGFrame::HandleColormapChange(Event_t*)
virtual Bool_tTGTextEntry::HandleConfigureNotify(Event_t* event)
virtual Bool_tTGTextEntry::HandleCrossing(Event_t* event)
virtual Bool_tTGTextEntry::HandleDoubleClick(Event_t* event)
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::HandleExpose(Event_t* event)
virtual Bool_tHandleFocusChange(Event_t* event)
virtual Bool_tTGWindow::HandleIdleEvent(TGIdleHandler*)
virtual Bool_tHandleKey(Event_t* event)
virtual Bool_tTGTextEntry::HandleMotion(Event_t* event)
virtual Bool_tTGTextEntry::HandleSelection(Event_t* event)
virtual Bool_tTGTextEntry::HandleSelectionClear(Event_t* event)
virtual Bool_tTGTextEntry::HandleSelectionRequest(Event_t* event)
virtual Bool_tTGTextEntry::HandleTimer(TTimer* t)
virtual Bool_tTQObject::HasConnection(const char* signal_name) const
Bool_tTGWidget::HasFocus() const
virtual ULong_tTGObject::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 voidInvalidInput(const char* instr)
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTGFrame::IsActive() const
virtual Bool_tTGFrame::IsComposite() const
virtual Bool_tIsEditable() const
Bool_tTGTextEntry::IsEdited() const
Bool_tTGWidget::IsEnabled() const
virtual Bool_tTGObject::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()
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 voidTGFrame::MapSubwindows()
virtual voidTGFrame::MapWindow()
voidTGTextEntry::MarkWord(Int_t pos)
Int_tTGTextEntry::MaxMark() const
voidTObject::MayNotUse(const char* method) const
virtual voidTQObject::Message(const char* msg)
Int_tTGTextEntry::MinMark() const
virtual voidTGFrame::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 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 voidTGFrame::ProcessedEvent(Event_t* event)
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::RequestFocus()
voidTObject::ResetBit(UInt_t f)
virtual voidTGFrame::Resize(TGDimension size)
virtual voidTGFrame::Resize(UInt_t w = 0, UInt_t h = 0)
virtual voidReturnPressed()
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") const
virtual voidSavePrimitive(ostream& out, Option_t* = "")
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::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)
virtual voidTGFrame::SetDragType(Int_t type)
virtual voidTGFrame::SetDrawOption(Option_t* = "")
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::SetEditDisabled(UInt_t on = kEditDisable)
voidTGTextEntry::SetEdited(Bool_t flag = kTRUE)
voidTGTextEntry::SetEnabled(Bool_t flag = kTRUE)
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 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)
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 voidSetText(const char* text)
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)
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 voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
virtual voidTGTextEntry::TabPressed()
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTextChanged(const char* text = "0")
virtual voidTGFrame::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::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 const char*TQObject::GetSenderClassName() const
virtual voidTGTextEntry::Init()
virtual Bool_tTGTextEntry::IsCursorOutOfFrame()
voidTObject::MakeZombie()
TGWindow&TGWindow::operator=(const TGWindow& tgw)
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

public:
enum TGTextEntry::EEchoMode { kNormal
kNoEcho
kPassword
};
enum TGTextEntry::EInsertMode { kInsert
kReplace
};
enum TGWindow::EEditMode { kEditEnable
kEditDisable
kEditDisableEvents
kEditDisableGrab
kEditDisableLayout
kEditDisableResize
kEditDisableHeight
kEditDisableWidth
kEditDisableBtnEnable
kEditDisableKeyEnable
};
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
enum TGNumberFormat::EStyle { kNESInteger
kNESRealOne
kNESRealTwo
kNESRealThree
kNESRealFour
kNESReal
kNESDegree
kNESMinSec
kNESHourMin
kNESHourMinSec
kNESDayMYear
kNESMDayYear
kNESHex
};
enum TGNumberFormat::EAttribute { kNEAAnyNumber
kNEANonNegative
kNEAPositive
};
enum TGNumberFormat::ELimit { kNELNoLimits
kNELLimitMin
kNELLimitMax
kNELLimitMinMax
};
enum TGNumberFormat::EStepSize { kNSSSmall
kNSSMedium
kNSSLarge
kNSSHuge
};
protected:
Bool_tfNeedsVerificationNeeds verification of input
TGNumberFormat::EStylefNumStyleNumber style
TGNumberFormat::EAttributefNumAttrNumber attribute
TGNumberFormat::ELimitfNumLimitsLimit attributes
Double_tfNumMinLower limit
Double_tfNumMaxUpper limit
Bool_tfStepLogLogarithmic steps for increase?
TGTextBuffer*TGTextEntry::fTexttext buffer
Int_tTGTextEntry::fStartXselection begin in pixels
Int_tTGTextEntry::fEndXselection end in pixels
Int_tTGTextEntry::fStartIXselection begin in characters
Int_tTGTextEntry::fEndIXselection end in characters
Bool_tTGTextEntry::fSelectionOnselection status (on/off)
Int_tTGTextEntry::fOffsetstart position of text (in pixels)
Int_tTGTextEntry::fCursorXcursor position in pixels
Int_tTGTextEntry::fCursorIXcursor position in characters
Bool_tTGTextEntry::fCursorOncursor status (on/off)
FontStruct_tTGTextEntry::fFontStructtext font
TGGCTGTextEntry::fNormGCnormal drawing context
TGGCTGTextEntry::fSelGCselected text drawing context
GContext_tTGTextEntry::fSelbackGCselected background drawing context
Atom_tTGTextEntry::fClipboardclipboard property
TBlinkTimer*TGTextEntry::fCurBlinkcursor blink timer
TGToolTip*TGTextEntry::fTipassociated tooltip
Int_tTGTextEntry::fMaxLenmaximum length of text
Bool_tTGTextEntry::fEditedkFALSE, if the line edit's contents have not been changed since the construction
Bool_tTGTextEntry::fFrameDrawnkTRUE draw itself inside a two-pixel frame, kFALSE draw without any frame
TGTextEntry::EEchoModeTGTextEntry::fEchoMode*OPTION={GetMethod="GetEchoMode";SetMethod="SetEchoMode";Items=(kNormal="Normal",kNoEcho="No Echo",kPassword="Password")}*
TGTextEntry::EInsertModeTGTextEntry::fInsertMode*OPTION={GetMethod="GetInsertMode";SetMethod="SetInsertMode";Items=(kInsert="Insert",kReplace="Replace")}*
ETextJustificationTGTextEntry::fAlignment*OPTION={GetMethod="GetAlignment";SetMethod="SetAlignment";Items=(kTextLeft="Left",kTextCenterX="Center",kTextRight="Right")}*
Bool_tTGTextEntry::fHasOwnFontkTRUE - font defined locally, kFALSE - globally
static TString*TGTextEntry::fgClipboardTextapplication clipboard text
static const TGFont*TGTextEntry::fgDefaultFont
static const TGGC*TGTextEntry::fgDefaultSelectedGC
static const TGGC*TGTextEntry::fgDefaultSelectedBackgroundGC
static const TGGC*TGTextEntry::fgDefaultGC
Int_tTGFrame::fXframe x position
Int_tTGFrame::fYframe y position
UInt_tTGFrame::fWidthframe width
UInt_tTGFrame::fHeightframe height
UInt_tTGFrame::fMinWidthminimal frame width
UInt_tTGFrame::fMinHeightminimal frame height
UInt_tTGFrame::fMaxWidthmaximal frame width
UInt_tTGFrame::fMaxHeightmaximal frame height
Int_tTGFrame::fBorderWidthframe border width
UInt_tTGFrame::fOptionsframe options
Pixel_tTGFrame::fBackgroundframe background color
UInt_tTGFrame::fEventMaskcurrenty active event mask
TGFrameElement*TGFrame::fFEpointer to frame element
static Bool_tTGFrame::fgInit
static Pixel_tTGFrame::fgDefaultFrameBackground
static Pixel_tTGFrame::fgDefaultSelectedBackground
static Pixel_tTGFrame::fgWhitePixel
static Pixel_tTGFrame::fgBlackPixel
static const TGGC*TGFrame::fgBlackGC
static const TGGC*TGFrame::fgWhiteGC
static const TGGC*TGFrame::fgHilightGC
static const TGGC*TGFrame::fgShadowGC
static const TGGC*TGFrame::fgBckgndGC
static Time_tTGFrame::fgLastClick
static UInt_tTGFrame::fgLastButton
static Int_tTGFrame::fgDbx
static Int_tTGFrame::fgDby
static Window_tTGFrame::fgDbw
static UInt_tTGFrame::fgUserColor
const TGWindow*TGWindow::fParentParent window
Bool_tTGWindow::fNeedRedrawkTRUE if window needs to be redrawn
TStringTGWindow::fNamename of the window used in SavePrimitive()
static Int_tTGWindow::fgCountercounter of created windows in SavePrimitive
UInt_tTGWindow::fEditDisabledflags used for "guibuilding"
Handle_tTGObject::fIdX11/Win32 Window identifier
TGClient*TGObject::fClientConnection to display server
TList*TQObject::fListOfSignals! list of signals from this object
TList*TQObject::fListOfConnections! list of connections to this object
Int_tTGWidget::fWidgetIdthe widget id (used for event processing)
Int_tTGWidget::fWidgetFlagswidget status flags (OR of EWidgetStatus)
const TGWindow*TGWidget::fMsgWindowwindow which handles widget events
TStringTGWidget::fCommandcommand to be executed

Class Description

                                                                      
 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.                                 
                                                                      
/* */

TGNumberEntryField(const TGWindow * p, Int_t id, Double_t val, GContext_t norm, FontStruct_t font, UInt_t option, ULong_t back)
 Constructs a number entry field.
TGNumberEntryField(const TGWindow * parent, Int_t id, Double_t val, EStyle style, EAttribute attr, ELimit limits, Double_t min, Double_t max)
 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)
 Set the value (text format).
Double_t GetNumber()
 Get the numeric value (floating point representation).
Long_t GetIntNumber()
 Get the numeric value (integer representation).
void GetTime(Int_t & hour, Int_t & min, Int_t & sec)
 Get the numeric value (time format).
void GetDate(Int_t & year, Int_t & month, Int_t & day)
 Get the numeric value (date format).
ULong_t GetHexNumber()
 Get the numeric value (hex format).
Int_t GetCharWidth(const char *text)
 Get the text width in pixels.
void IncreaseNumber(EStepSize step, Int_t stepsign, Bool_t logstep)
 Increase the number value.
void SetFormat(EStyle style, EAttribute attr)
 Set the numerical format.
void SetLimits(ELimit limits, Double_t min, Double_t max)
 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)
 Text has changed message.
void ReturnPressed()
 Return was pressed.
void Layout()
 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()
 Get the numerical style
EAttribute GetNumAttr()
 Get the numerical attribute
ELimit GetNumLimits()
 Get the numerialc limit attribute
Double_t GetNumMin()
 Get the lower limit
Double_t GetNumMax()
 Get the upper limit
Bool_t IsLogStep()
 Is log step enabled?
Bool_t IsEditable()
{ return kFALSE; }
void InvalidInput(const char *instr)
{ Emit("InvalidInput(char*)", instr); }

Author: Daniel Sigg 03/09/2001
Last update: root/gui:$Name: $:$Id: TGNumberEntry.cxx,v 1.31 2006/08/28 17:00:56 antcheva Exp $
Copyright (C) 1995-2001, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.