ROOT logo
ROOT » GUI » GUI » TGTextView

class TGTextView: public TGView


TGTextView

A TGTextView is a text viewer widget. It is a specialization of
TGView. It uses the TGText class (which contains all text
manipulation code, i.e. loading a file in memory, changing,
removing lines, etc.). Use a TGTextView to view non-editable text.
For supported messages see TGView.


Function Members (Methods)

public:
TGTextView(const TGWindow* parent = 0, UInt_t w = 1, UInt_t h = 1, Int_t id = -1, UInt_t sboptions = 0, Pixel_t back = GetWhitePixel())
TGTextView(const TGWindow* parent, UInt_t w, UInt_t h, TGText* text, Int_t id = -1, UInt_t sboptions = 0, Pixel_t back = GetWhitePixel())
TGTextView(const TGWindow* parent, UInt_t w, UInt_t h, const char* string, Int_t id = -1, UInt_t sboptions = 0, Pixel_t back = GetWhitePixel())
virtual~TGTextView()
voidTObject::AbstractMethod(const char* method) const
virtual voidTGFrame::Activate(Bool_t)
virtual voidTGCompositeFrame::AddFrame(TGFrame* f, TGLayoutHints* l = 0)
voidTGFrame::AddInput(UInt_t emask)
virtual voidAddLine(const char* string)
virtual voidAddLineFast(const char* string)
virtual voidAddText(TGText* text)
virtual voidAdjustWidth()
virtual voidTObject::AppendPad(Option_t* option = "")
static Bool_tTQObject::AreAllSignalsBlocked()
Bool_tTQObject::AreSignalsBlocked() const
virtual voidTGWidget::Associate(const TGWindow* w)
static Bool_tTQObject::BlockAllSignals(Bool_t b)
Bool_tTQObject::BlockSignals(Bool_t b)
virtual voidTObject::Browse(TBrowser* b)
virtual voidTGView::ChangeBackground(Pixel_t)
virtual voidTQObject::ChangedBy(const char* method)SIGNAL
virtual voidTGCompositeFrame::ChangeOptions(UInt_t options)
virtual voidTGCompositeFrame::ChangeSubframesBackground(Pixel_t back)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTGCompositeFrame::Cleanup()
virtual voidClear(Option_t* = "")
virtual voidClicked(const char* word)SIGNAL
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 Bool_tCopy()
virtual voidDataChanged()SIGNAL
virtual voidDataDropped(const char* fname)SIGNAL
virtual voidTGFrame::Delete(Option_t* = "")
virtual voidTGFrame::DeleteWindow()
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 voidDoubleClicked(const char* word)SIGNAL
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTGView::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)
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 TGFrameElement*TGCompositeFrame::FindFrameElement(TGFrame* f) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual Pixel_tTGFrame::GetBackground() const
static const TGGC&TGFrame::GetBckgndGC()
static const TGGC&TGFrame::GetBlackGC()
static Pixel_tTGFrame::GetBlackPixel()
Int_tTGFrame::GetBorderWidth() const
TGViewFrame*TGView::GetCanvas() const
TGClient*TGObject::GetClient() const
const char*TGWidget::GetCommand() const
static Int_tTGWindow::GetCounter()
static Pixel_tTGFrame::GetDefaultFrameBackground()
virtual UInt_tTGCompositeFrame::GetDefaultHeight() const
static Pixel_tTGFrame::GetDefaultSelectedBackground()
virtual TGDimensionTGView::GetDefaultSize() const
virtual UInt_tTGCompositeFrame::GetDefaultWidth() 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()
virtual UInt_tTGWindow::GetEditDisabled() const
UInt_tTGFrame::GetEventMask() const
virtual Pixel_tTGFrame::GetForeground() const
TGFrameElement*TGFrame::GetFrameElement() const
virtual TGFrame*TGCompositeFrame::GetFrameFromPoint(Int_t x, Int_t y)
UInt_tTGFrame::GetHeight() const
static const TGGC&TGFrame::GetHilightGC()
virtual const char*TObject::GetIconName() const
Handle_tTGObject::GetId() const
virtual TGLayoutManager*TGCompositeFrame::GetLayoutManager() const
virtual TList*TGCompositeFrame::GetList() const
TList*TQObject::GetListOfClassSignals() const
TList*TQObject::GetListOfConnections() const
TList*TQObject::GetListOfSignals() const
virtual const TGWindow*TGWindow::GetMainFrame() const
UInt_tTGFrame::GetMaxHeight() const
UInt_tTGFrame::GetMaxWidth() const
UInt_tTGFrame::GetMinHeight() const
UInt_tTGFrame::GetMinWidth() const
virtual const char*TGWindow::GetName() 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
TGLongPositionTGView::GetScrollPosition() const
TGLongPositionTGView::GetScrollValue() const
static const TGGC&TGFrame::GetShadowGC()
TGDimensionTGFrame::GetSize() const
Int_tTGCompositeFrame::GetState(TGFrame* f) const
TGText*GetText() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
const TGGC&TGView::GetViewWhiteGC()
TGDimensionTGView::GetVirtualSize() const
static const TGGC&TGFrame::GetWhiteGC()
static Pixel_tTGFrame::GetWhitePixel()
UInt_tTGFrame::GetWidth() const
Int_tTGFrame::GetX() const
Int_tTGFrame::GetY() const
virtual Bool_tHandleButton(Event_t* event)
virtual Bool_tTGFrame::HandleClientMessage(Event_t* event)
virtual Bool_tTGFrame::HandleColormapChange(Event_t*)
virtual Bool_tTGFrame::HandleConfigureNotify(Event_t* event)
virtual Bool_tHandleCrossing(Event_t* event)
virtual Bool_tHandleDNDDrop(TDNDData* data)
virtual Atom_tHandleDNDEnter(Atom_t* typelist)
virtual Bool_tTGFrame::HandleDNDFinished()
virtual Bool_tHandleDNDLeave()
virtual Atom_tHandleDNDPosition(Int_t x, Int_t y, Atom_t action, Int_t xroot, Int_t yroot)
virtual Bool_tHandleDoubleClick(Event_t* event)
virtual Bool_tTGCompositeFrame::HandleDragDrop(TGFrame* frame, Int_t x, Int_t y, TGLayoutHints* lo)
virtual Bool_tTGCompositeFrame::HandleDragEnter(TGFrame*)
virtual Bool_tTGCompositeFrame::HandleDragLeave(TGFrame*)
virtual Bool_tTGCompositeFrame::HandleDragMotion(TGFrame*)
virtual Bool_tTGFrame::HandleEvent(Event_t* event)
virtual Bool_tTGView::HandleExpose(Event_t* event)
virtual Bool_tTGCompositeFrame::HandleFocusChange(Event_t*)
virtual Bool_tTGWindow::HandleIdleEvent(TGIdleHandler*)
virtual Bool_tTGCompositeFrame::HandleKey(Event_t*)
virtual Bool_tHandleMotion(Event_t* event)
virtual Bool_tTGCompositeFrame::HandleSelection(Event_t*)
virtual Bool_tHandleSelectionClear(Event_t* event)
virtual Bool_tHandleSelectionRequest(Event_t* event)
virtual Bool_tHandleTimer(TTimer* t)
virtual Bool_tTQObject::HasConnection(const char* signal_name) const
Bool_tTGWidget::HasFocus() const
virtual ULong_tTGObject::Hash() const
virtual voidTGCompositeFrame::HideFrame(TGFrame* f)
virtual voidTQObject::HighPriority(const char* signal_name, const char* slot_name = 0)
virtual voidTGWindow::IconifyWindow()
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 voidTGFrame::Inspect() const
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTGFrame::IsActive() const
Bool_tTGCompositeFrame::IsArranged(TGFrame* f) const
Bool_tTGCompositeFrame::IsArranged(TGFrameElement* ptr) const
virtual Bool_tTGCompositeFrame::IsComposite() const
Bool_tTGFrame::IsDNDSource() const
Bool_tTGFrame::IsDNDTarget() const
virtual Bool_tTGCompositeFrame::IsEditable() const
Bool_tTGWidget::IsEnabled() const
virtual Bool_tTGObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
virtual Bool_tTGCompositeFrame::IsLayoutBroken() const
virtual Bool_tTGWindow::IsMapped()
virtual Bool_tTGCompositeFrame::IsMapSubwindows() const
Bool_tIsMarked() const
Bool_tTObject::IsOnHeap() const
Bool_tIsReadOnly() const
virtual Bool_tIsSaved()
virtual Bool_tTObject::IsSortable() const
Bool_tTGCompositeFrame::IsVisible(TGFrame* f) const
Bool_tTGCompositeFrame::IsVisible(TGFrameElement* ptr) const
Bool_tTObject::IsZombie() const
virtual voidLayout()
virtual Bool_tLoadBuffer(const char* txtbuf)
virtual Bool_tLoadFile(const char* fname, long startpos = 0, long length = -1)
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 voidTGCompositeFrame::MapSubwindows()
virtual voidTGFrame::MapWindow()
virtual voidMarked(Bool_t mark)SIGNAL
voidTObject::MayNotUse(const char* method) const
virtual voidTQObject::Message(const char* msg)SIGNAL
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_tTGCompositeFrame::MustCleanup() const
virtual Bool_tTObject::Notify()
virtual Int_tTQObject::NumberOfConnections() const
virtual Int_tTQObject::NumberOfSignals() const
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) 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 voidTGCompositeFrame::Print(Option_t* option = "") const
virtual voidTGFrame::ProcessedConfigure(Event_t* event)SIGNAL
virtual voidTGFrame::ProcessedEvent(Event_t* event)SIGNAL
virtual Bool_tTGView::ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
virtual voidTGWindow::RaiseWindow()
virtual Int_tTObject::Read(const char* name)
virtual voidTGFrame::ReallyDelete()
virtual voidTObject::RecursiveRemove(TObject* obj)
virtual voidTGCompositeFrame::RemoveAll()
virtual voidTGCompositeFrame::RemoveFrame(TGFrame* f)
voidTGFrame::RemoveInput(UInt_t emask)
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 Long_tReturnHeighestColHeight()
virtual Long_tReturnLineCount()
virtual Long_tReturnLineLength(Long_t line)
virtual Long_tReturnLongestLine()
virtual Long_tReturnLongestLineWidth()
virtual voidTGObject::SaveAs(const char* filename = "", Option_t* option = "") const
virtual voidSavePrimitive(ostream& out, Option_t* = "")
virtual voidTGCompositeFrame::SavePrimitiveSubframes(ostream& out, Option_t* option = "")
voidTGFrame::SaveUserColor(ostream& out, Option_t*)
virtual voidTGView::ScrollCanvas(Int_t newTop, Int_t direction)
voidTGView::ScrollDown(Int_t pixels)
voidTGView::ScrollLeft(Int_t pixels)
voidTGView::ScrollRight(Int_t pixels)
virtual voidTGView::ScrollToPosition(TGLongPosition newPos)
voidTGView::ScrollUp(Int_t pixels)
virtual Bool_tSearch(const char* string, Bool_t direction, Bool_t caseSensitive)
virtual Bool_tSelectAll()
virtual voidTGFrame::SendMessage(const TGWindow* w, Long_t msg, Long_t parm1, Long_t parm2)
virtual voidSetBackground(Pixel_t p)
virtual voidTGView::SetBackgroundColor(Pixel_t)
virtual voidTGView::SetBackgroundPixmap(Pixmap_t p)
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTGCompositeFrame::SetCleanup(Int_t mode = kLocalCleanup)
virtual voidTGWidget::SetCommand(const char* command)
voidTGFrame::SetDNDSource(Bool_t onoff)
voidTGFrame::SetDNDTarget(Bool_t onoff)
virtual voidTGFrame::SetDragType(Int_t type)
virtual voidTGFrame::SetDrawOption(Option_t* = "")
virtual voidTGFrame::SetDropType(Int_t type)
static voidTObject::SetDtorOnly(void* obj)
virtual voidTGCompositeFrame::SetEditable(Bool_t on = kTRUE)
virtual voidTGCompositeFrame::SetEditDisabled(UInt_t on = 1)
virtual voidSetFont(FontStruct_t font)
virtual voidSetForegroundColor(Pixel_t)
voidTGFrame::SetFrameElement(TGFrameElement* fe)
virtual voidTGFrame::SetHeight(UInt_t h)
virtual voidSetHsbPosition(Long_t newPos)
virtual voidTGCompositeFrame::SetLayoutBroken(Bool_t on = kTRUE)
virtual voidTGView::SetLayoutManager(TGLayoutManager*)
virtual voidTGCompositeFrame::SetMapSubwindows(Bool_t on)
virtual voidTGFrame::SetMaxHeight(UInt_t h)
virtual voidTGFrame::SetMaxWidth(UInt_t w)
virtual voidTGFrame::SetMinHeight(UInt_t h)
virtual voidTGFrame::SetMinWidth(UInt_t w)
virtual voidTGWindow::SetName(const char* name)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidSetReadOnly(Bool_t on = kTRUE)TOGGLE GETTER
virtual voidSetSBRange(Int_t direction)
virtual voidSetSelectBack(Pixel_t p)
virtual voidSetSelectFore(Pixel_t p)
virtual voidTGFrame::SetSize(const TGDimension& s)
virtual voidSetText(TGText* text)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidTGView::SetVisibleStart(Int_t newTop, Int_t direction)
virtual voidSetVsbPosition(Long_t newPos)
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 voidShowBottom()
virtual voidTGCompositeFrame::ShowFrame(TGFrame* f)
virtual voidShowMembers(TMemberInspector&)
virtual voidShowTop()
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual Long_tToObjXCoord(Long_t xCoord, Long_t line)
virtual Long_tToObjYCoord(Long_t yCoord)
TGLongPositionTGView::ToPhysical(TGLongPosition coord) const
virtual Long_tToScrXCoord(Long_t xCoord, Long_t line)
virtual Long_tToScrYCoord(Long_t yCoord)
TGLongPositionTGView::ToVirtual(TGLongPosition coord) const
virtual Bool_tTGCompositeFrame::TranslateCoordinates(TGFrame* child, Int_t x, Int_t y, Int_t& fx, Int_t& fy)
virtual voidTGFrame::UnmapWindow()
virtual voidUpdate()
virtual voidTGView::UpdateBackgroundStart()
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)
virtual voidCopy(TObject&) const
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
virtual voidTGView::DoRedraw()
virtual voidTGFrame::Draw3dRectangle(UInt_t type, Int_t x, Int_t y, UInt_t w, UInt_t h)
virtual voidDrawRegion(Int_t x, Int_t y, UInt_t w, UInt_t h)
static FontStruct_tGetDefaultFontStruct()
static const TGGC&GetDefaultGC()
static const TGGC&GetDefaultSelectedBackgroundGC()
static const TGGC&GetDefaultSelectedGC()
static Time_tTGFrame::GetLastClick()
TStringTGFrame::GetOptionString() const
const TGResourcePool*TGFrame::GetResourcePool() const
virtual void*TGFrame::GetSender()
virtual const char*TQObject::GetSenderClassName() const
virtual voidHLayout()
voidInit(Pixel_t bg)
virtual Bool_tTGView::ItemLayout()
voidTObject::MakeZombie()
virtual voidMark(Long_t xPos, Long_t yPos)
Int_tTGWidget::SetFlags(Int_t flags)
virtual voidTGFrame::StartGuiBuilding(Bool_t on = kTRUE)
virtual voidUnMark()
virtual voidTGView::UpdateRegion(Int_t x, Int_t y, UInt_t w, UInt_t h)
virtual voidVLayout()

Data Members

protected:
Pixel_tTGFrame::fBackgroundframe background color
Int_tTGFrame::fBorderWidthframe border width
TGViewFrame*TGView::fCanvasframe containing the text
TGClient*TGObject::fClientConnection to display server
TGText*fClipTextclipboard text buffer
Atom_tTGView::fClipboardclipboard property
TStringTGWidget::fCommandcommand to be executed
Int_tTGFrame::fDNDStateEDNDFlags
Atom_t*fDNDTypeListhandles DND types
UInt_tTGWindow::fEditDisabledflags used for "guibuilding"
UInt_tTGFrame::fEventMaskcurrenty active event mask
TGRectangleTGView::fExposedRegionexposed area
TGFrameElement*TGFrame::fFEpointer to frame element
FontStruct_tfFonttext font
UInt_tTGFrame::fHeightframe height
TGHScrollBar*TGView::fHsbhorizontal scrollbar
Handle_tTGObject::fIdX11/Win32 Window identifier
Bool_tfIsMarkedtrue if text is marked/selected
Bool_tfIsMarkingtrue if in marking mode
Bool_tfIsSavedtrue is content is saved
Bool_tTGCompositeFrame::fLayoutBrokenno layout manager is used
TGLayoutManager*TGCompositeFrame::fLayoutManagerlayout manager
TList*TGCompositeFrame::fListcontainer of frame elements
TList*TQObject::fListOfConnections! list of connections to this object
TList*TQObject::fListOfSignals! list of signals from this object
Bool_tTGCompositeFrame::fMapSubwindowskTRUE - map subwindows
TGLongPositionfMarkedEndend position of marked text
Bool_tfMarkedFromXtrue if text is marked from x
Bool_tfMarkedFromYtrue if text is marker from y
TGLongPositionfMarkedStartstart position of marked text
Int_tfMaxAscentmaximum ascent in font
Int_tfMaxDescentmaximum descent in font
UInt_tTGFrame::fMaxHeightmaximal frame height
Int_tfMaxWidthmaximum width of character in font
UInt_tTGFrame::fMaxWidthmaximal frame width
UInt_tTGFrame::fMinHeightminimal frame height
UInt_tTGFrame::fMinWidthminimal frame width
TGLongPositionTGView::fMousePosposition of mouse
const TGWindow*TGWidget::fMsgWindowwindow which handles widget events
Int_tTGCompositeFrame::fMustCleanupcleanup mode (see EFrameCleanup)
TStringTGWindow::fNamename of the window used in SavePrimitive()
Bool_tTGWindow::fNeedRedrawkTRUE if window needs to be redrawn
TGGCfNormGCgraphics context for drawing text
UInt_tTGFrame::fOptionsframe options
const TGWindow*TGWindow::fParentParent window
Bool_tfReadOnlytext cannot be editted
TViewTimer*fScrollTimerscrollbar timer
TGLongPositionTGView::fScrollValscroll value
Int_tTGView::fScrollingscrolling direction
TGGCfSelGCgraphics context for drawing marked text
TGGCfSelbackGCgraphics context for drawing marked background
Bool_tTQObject::fSignalsBlocked! flag used for suppression of signals
TGText*fTexttext buffer
TGDimensionTGView::fVirtualSizethe current virtual window size
TGLongPositionTGView::fVisibleposition of visible region
TGVScrollBar*TGView::fVsbvertical scrollbar
TGGCTGView::fWhiteGCgraphics context used for scrolling
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
UInt_tTGView::fXMarginx margin
Int_tTGFrame::fYframe y position
UInt_tTGView::fYMarginy margin
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 Int_tTGWindow::fgCountercounter of created windows in SavePrimitive
static Window_tTGFrame::fgDbw
static Int_tTGFrame::fgDbx
static Int_tTGFrame::fgDby
static const TGFont*fgDefaultFont
static Pixel_tTGFrame::fgDefaultFrameBackground
static TGGC*fgDefaultGC
static TGLayoutHints*TGCompositeFrame::fgDefaultHintsdefault hints used by AddFrame()
static Pixel_tTGFrame::fgDefaultSelectedBackground
static const TGGC*fgDefaultSelectedBackgroundGC
static TGGC*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

void Init(Pixel_t bg)
 Initialize a text view widget.
TGTextView(const TGWindow* parent = 0, UInt_t w = 1, UInt_t h = 1, Int_t id = -1, UInt_t sboptions = 0, Pixel_t back = GetWhitePixel())
 Create a text view widget.
TGTextView(const TGWindow* parent, UInt_t w, UInt_t h, TGText* text, Int_t id = -1, UInt_t sboptions = 0, Pixel_t back = GetWhitePixel())
 Create a text view widget.
TGTextView(const TGWindow* parent, UInt_t w, UInt_t h, const char* string, Int_t id = -1, UInt_t sboptions = 0, Pixel_t back = GetWhitePixel())
 Create a text view widget.
~TGTextView()
 Cleanup text view widget.
void SetBackground(Pixel_t p)
 set background  color
void SetSelectBack(Pixel_t p)
 set selected text background color
void SetSelectFore(Pixel_t p)
 set selected text color
void SetText(TGText* text)
 Adopt a new text buffer. The text will be deleted by this object.
void AddText(TGText* text)
 Add text to the view widget.
void AddLine(const char* string)
 Add a line of text to the view widget.
void AddLineFast(const char* string)
 Add a line of text to the view widget.
 Fast version. Use it if you are going to add
 several lines, than call Update().
void Update()
 update the whole window of text view
Long_t ReturnLongestLineWidth()
 Return width of longest line.
Bool_t Search(const char* string, Bool_t direction, Bool_t caseSensitive)
 Search for string in text. If direction is true search forward.
 Returns true if string is found.
void SetFont(FontStruct_t font)
 Changes text entry font.
Long_t ToScrYCoord(Long_t yCoord)
 Convert line number to screen coordinate.
Long_t ToScrXCoord(Long_t xCoord, Long_t line)
 Convert column number in specified line to screen coordinate.
Long_t ToObjYCoord(Long_t yCoord)
 Convert y screen coordinate to line number.
Long_t ToObjXCoord(Long_t xCoord, Long_t line)
 Convert x screen coordinate to column in specified line.
void Clear(Option_t* = "")
 Clear text view widget.
Bool_t LoadFile(const char* fname, long startpos = 0, long length = -1)
 Load a file in the text view widget. Return false in case file does not
 exist.
Bool_t LoadBuffer(const char* txtbuf)
 Load text from a text buffer. Return false in case of failure.
Bool_t Copy()
 Copy selected text to clipboard.
Bool_t SelectAll()
 Select all text in the viewer.
void DrawRegion(Int_t x, Int_t y, UInt_t w, UInt_t h)
 Draw lines in exposed region.
Bool_t HandleCrossing(Event_t* event)
 Handle mouse crossing event.
Bool_t HandleTimer(TTimer* t)
 Handle scroll timer.
Bool_t HandleButton(Event_t* event)
 Handle mouse button event in text editor.
Bool_t HandleDoubleClick(Event_t* event)
 handle double click
Bool_t HandleMotion(Event_t* event)
 Handle mouse motion event in the text editor widget.
Bool_t HandleSelectionClear(Event_t* event)
 Handle selection clear event.
Bool_t HandleSelectionRequest(Event_t* event)
 Handle request to send current clipboard contents to requestor window.
Bool_t HandleDNDDrop(TDNDData* data)
 Handle Drop event
Atom_t HandleDNDPosition(Int_t x, Int_t y, Atom_t action, Int_t xroot, Int_t yroot)
 Handle Drag position event
Atom_t HandleDNDEnter(Atom_t* typelist)
 Handle Drag Enter event
Bool_t HandleDNDLeave()
 Handle Drag Leave event
void Mark(Long_t xPos, Long_t yPos)
 Mark a text region from xPos to yPos.
void UnMark()
 Clear marked region.
void AdjustWidth()
 Adjust widget width to longest line.
void Layout()
 Layout the components of view.
void HLayout()
 Horizontal layout of widgets (canvas, scrollbar).
void VLayout()
 Vertical layout of widgets (canvas, scrollbar).
void SetSBRange(Int_t direction)
 Set the range for the kVertical or kHorizontal scrollbar.
void SetHsbPosition(Long_t newPos)
 Set position of horizontal scrollbar.
void SetVsbPosition(Long_t newPos)
 Set position of vertical scrollbar.
FontStruct_t GetDefaultFontStruct()
 Return default font structure in use.
void ShowBottom()
 Show bottom of the page.
void ShowTop()
 Show top of the page.
void SetForegroundColor(Pixel_t )
 Set text color.
const TGGC & GetDefaultGC()
 Return default graphics context in use.
const TGGC & GetDefaultSelectedGC()
 Return selection graphics context in use.
const TGGC & GetDefaultSelectedBackgroundGC()
 Return graphics context for highlighted frame background.
void SavePrimitive(ostream& out, Option_t* = "")
 Save a text edit widget as a C++ statement(s) on output stream out
void Copy(TObject& ) const
{ MayNotUse("Copy(TObject &)"); }
TGTextView(const TGTextView& )
TGTextView& operator=(const TGTextView& )
Bool_t IsSaved()
{ fIsSaved = fText->IsSaved(); return fIsSaved;}
Long_t ReturnHeighestColHeight()
{ return fText->RowCount()*fScrollVal.fY; }
Long_t ReturnLineLength(Long_t line)
{ return fText->GetLineLength(line); }
Long_t ReturnLongestLine()
{ return fText->GetLongestLine(); }
Long_t ReturnLineCount()
{ return fText->RowCount(); }
TGText * GetText() const
{ return fText; }
void SetReadOnly(Bool_t on = kTRUE)
{ fReadOnly = on; }
Bool_t IsReadOnly() const
{ return fReadOnly; }
Bool_t IsMarked() const
{ return fIsMarked; }
void DataChanged()
{ Emit("DataChanged()"); }
void DataDropped(const char* fname)
{ Emit("DataDropped(char *)", fname); }
void Marked(Bool_t mark)
{ Emit("Marked(Bool_t)", mark); }
void Clicked(const char* word)
{ Emit("Clicked(char *)", word); }
void DoubleClicked(const char* word)
{ Emit("DoubleClicked(char *)", word); }