library: libGui
#include "TGTextEdit.h"


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

class TGTextEdit: public TGTextView

Inheritance Inherited Members Includes Libraries
Class Charts

Function Members (Methods)

Display options:
Show inherited
Show non-public
TGTextEdit(const TGWindow* parent = 0, UInt_t w = 1, UInt_t h = 1, Int_t id = -1, UInt_t sboptions = 0, Pixel_t back = GetWhitePixel())
TGTextEdit(const TGWindow* parent, UInt_t w, UInt_t h, TGText* text, Int_t id = -1, UInt_t sboptions = 0, Pixel_t back = GetWhitePixel())
TGTextEdit(const TGWindow* parent, UInt_t w, UInt_t h, const char* string, Int_t id = -1, UInt_t sboptions = 0, Pixel_t back = GetWhitePixel())
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 voidTGTextView::AddLine(const char* string)
virtual voidTGTextView::AddLineFast(const char* string)
virtual voidTGTextView::AddText(TGText* text)
virtual voidTGTextView::AdjustWidth()
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTGWidget::Associate(const TGWindow* w)
virtual voidTObject::Browse(TBrowser* b)
virtual voidTGView::ChangeBackground(Pixel_t)
virtual voidTQObject::ChangedBy(const char* method)
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 TObject*TObject::Clone(const char* newname = "") const
virtual voidClosed()
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 Bool_tCut()
virtual voidTGTextView::DataChanged()
virtual voidDelete(Option_t* = "")
virtual voidTGFrame::DeleteWindow()
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 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 voidDrawRegion(Int_t x, Int_t y, UInt_t width, UInt_t height)
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 voidEnableMenu(Bool_t on = kTRUE)
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 voidFindAgain()
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()
TGLongPositionGetCurrentPos() const
static Pixel_tTGFrame::GetDefaultFrameBackground()
virtual UInt_tTGCompositeFrame::GetDefaultHeight() const
static Pixel_tTGFrame::GetDefaultSelectedBackground()
virtual TGDimensionTGView::GetDefaultSize() const
virtual UInt_tTGCompositeFrame::GetDefaultWidth() const
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
TGTextEdit::EInsertModeGetInsertMode() 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
TGPopupMenu*GetMenu() 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
static const TGGC&TGFrame::GetShadowGC()
TGDimensionTGFrame::GetSize() const
Int_tTGCompositeFrame::GetState(TGFrame* f) const
TGText*TGTextView::GetText() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
const TGGC&TGView::GetWhiteGC()
static Pixel_tTGFrame::GetWhitePixel()
UInt_tTGFrame::GetWidth() const
Int_tTGFrame::GetX() const
Int_tTGFrame::GetY() const
virtual Bool_tGoto(Long_t line, Long_t column = 0)
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_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_tHandleFocusChange(Event_t* event)
virtual Bool_tTGWindow::HandleIdleEvent(TGIdleHandler*)
virtual Bool_tHandleKey(Event_t* event)
virtual Bool_tHandleMotion(Event_t* event)
virtual Bool_tHandleSelection(Event_t* event)
virtual Bool_tTGTextView::HandleSelectionClear(Event_t* event)
virtual Bool_tTGTextView::HandleSelectionRequest(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 voidTGView::HLayout()
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
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_tTGView::IsMarked() const
virtual Bool_tIsMenuEnabled() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTGView::IsReadOnly() const
virtual Bool_tTGTextView::IsSaved()
virtual Bool_tTObject::IsSortable() const
Bool_tTGCompositeFrame::IsVisible(TGFrame* f) const
Bool_tTGCompositeFrame::IsVisible(TGFrameElement* ptr) const
Bool_tTObject::IsZombie() const
virtual voidTGView::Layout()
virtual Bool_tTGTextView::LoadBuffer(const char* txtbuf)
virtual Bool_tTGTextView::LoadFile(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 voidTGView::Marked(Bool_t mark)
voidTObject::MayNotUse(const char* method) const
virtual voidTQObject::Message(const char* msg)
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
virtual voidOpened()
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 Bool_tPaste()
virtual voidTObject::Pop()
virtual voidPrint(Option_t* = "") const
virtual voidTGFrame::ProcessedEvent(Event_t* event)
virtual Bool_tProcessMessage(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::RemoveFrame(TGFrame* f)
voidTGFrame::RemoveInput(UInt_t emask)
virtual voidTGFrame::ReparentWindow(const TGWindow* p, Int_t x = 0, Int_t y = 0)
virtual Bool_tReplace(TGLongPosition pos, const char* oldText, const char* newText, Bool_t direction, Bool_t caseSensitive)
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_tTGTextView::ReturnHeighestColHeight()
virtual Long_tTGTextView::ReturnLineCount()
virtual Long_tTGTextView::ReturnLineLength(Long_t line)
virtual Long_tTGTextView::ReturnLongestLine()
virtual Long_tReturnLongestLineWidth()
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") const
virtual voidSaved()
virtual voidSavedAs()
virtual Bool_tSaveFile(const char* fname, Bool_t saveas = kFALSE)
virtual voidSavePrimitive(ostream& out, Option_t* = "")
virtual voidTGCompositeFrame::SavePrimitiveSubframes(ostream& out, Option_t* option = "")
voidTGFrame::SaveUserColor(ostream& out, Option_t*)
virtual voidScrollCanvas(Int_t newTop, Int_t direction)
virtual voidSearch(Bool_t close)
virtual Bool_tSearch(const char* string, Bool_t direction = kTRUE, Bool_t caseSensitive = kFALSE)
virtual Bool_tTGTextView::SelectAll()
virtual voidTGFrame::SendMessage(const TGWindow* w, Long_t msg, Long_t parm1, Long_t parm2)
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 voidTGCompositeFrame::SetCleanup(Int_t mode = kLocalCleanup)
virtual voidTGWidget::SetCommand(const char* command)
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 voidSetFocus()
virtual voidTGTextView::SetFont(FontStruct_t font)
virtual voidTGFrame::SetForegroundColor(Pixel_t)
voidTGFrame::SetFrameElement(TGFrameElement* fe)
virtual voidTGFrame::SetHeight(UInt_t h)
virtual voidTGView::SetHsbPosition(Long_t newPos)
virtual voidSetInsertMode(TGTextEdit::EInsertMode mode = kInsert)
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 voidTGView::SetReadOnly(Bool_t on = kTRUE)
virtual voidTGView::SetSBRange(Int_t direction)
virtual voidTGFrame::SetSize(const TGDimension& s)
virtual voidTGTextView::SetText(TGText* text)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidTGView::SetVisibleStart(Int_t newTop, Int_t direction)
virtual voidTGView::SetVsbPosition(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 voidTGView::ShowBottom()
virtual voidTGCompositeFrame::ShowFrame(TGFrame* f)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidTGView::ShowTop()
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& 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_tTGTextView::ToObjXCoord(Long_t xCoord, Long_t line)
virtual Long_tTGTextView::ToObjYCoord(Long_t yCoord)
virtual Long_tTGTextView::ToScrXCoord(Long_t xCoord, Long_t line)
virtual Long_tTGTextView::ToScrYCoord(Long_t yCoord)
virtual Bool_tTGCompositeFrame::TranslateCoordinates(TGFrame* child, Int_t x, Int_t y, Int_t& fx, Int_t& fy)
virtual voidTGFrame::UnmapWindow()
virtual voidTGTextView::Update()
virtual voidTObject::UseCurrentStyle()
virtual voidTGView::VLayout()
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
virtual voidAdjustPos()
virtual voidBreakLine()
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 voidCursorOff()
virtual voidCursorOn()
virtual voidDelChar()
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
virtual voidTGFrame::DoRedraw()
virtual voidTGFrame::Draw3dRectangle(UInt_t type, Int_t x, Int_t y, UInt_t w, UInt_t h)
virtual voidDrawCursor(Int_t mode)
virtual voidEnd()
static const TGGC&GetCursor0GC()
static const TGGC&GetCursor1GC()
static FontStruct_tTGTextView::GetDefaultFontStruct()
static const TGGC&TGTextView::GetDefaultGC()
static const TGGC&TGTextView::GetDefaultSelectedBackgroundGC()
static const TGGC&TGTextView::GetDefaultSelectedGC()
static Time_tTGFrame::GetLastClick()
TStringTGFrame::GetOptionString() const
const TGResourcePool*TGFrame::GetResourcePool() const
virtual void*TGFrame::GetSender()
virtual const char*TQObject::GetSenderClassName() const
virtual voidHome()
virtual voidInsChar(char character)
virtual voidLineDown()
virtual voidLineUp()
virtual voidTGTextView::Mark(Long_t xPos, Long_t yPos)
virtual voidNextChar()
TGWindow&TGWindow::operator=(const TGWindow& tgw)
virtual voidPrevChar()
virtual voidScreenDown()
virtual voidScreenUp()
virtual voidSetCurrent(TGLongPosition new_coord)
Int_tTGWidget::SetFlags(Int_t flags)
virtual voidSetMenuState()
virtual voidTGFrame::StartGuiBuilding(Bool_t on = kTRUE)
virtual voidTGTextView::UnMark()

Data Members

enum EInsertMode { kInsert
enum { kM_FILE_NEW
enum TGView::[unnamed] { kNoHSB
enum TGWindow::EEditMode { kEditEnable
enum TObject::EStatusBits { kCanDelete
enum TObject::[unnamed] { kIsOnHeap
GContext_tfCursor0GCgraphics context for erasing cursor
GContext_tfCursor1GCgraphics context for drawing cursor
Int_tfCursorStatecursor state (1=drawn, 2=erased)
TViewTimer*fCurBlinkcursor blink timer
TGPopupMenu*fMenupopup menu with editor actions
TGSearchType*fSearchstructure used by search dialog
TGLongPositionfCurrentcurrent cursor position
Bool_tfEnableMenuenable context menu with editor actions
static TGGC*fgCursor0GC
static TGGC*fgCursor1GC
TGText*TGTextView::fTexttext buffer
TGText*TGTextView::fClipTextclipboard text buffer
FontStruct_tTGTextView::fFonttext font
Int_tTGTextView::fMaxAscentmaximum ascent in font
Int_tTGTextView::fMaxDescentmaximum descent in font
Int_tTGTextView::fMaxWidthmaximum width of character in font
TGGCTGTextView::fNormGCgraphics context for drawing text
TGGCTGTextView::fSelGCgraphics context for drawing marked text
GContext_tTGTextView::fSelbackGCgraphics context for drawing marked background
Bool_tTGTextView::fMarkedFromXtrue if text is marked from x
Bool_tTGTextView::fMarkedFromYtrue if text is marker from y
static const TGFont*TGTextView::fgDefaultFont
static TGGC*TGTextView::fgDefaultGC
static TGGC*TGTextView::fgDefaultSelectedGC
static const TGGC*TGTextView::fgDefaultSelectedBackgroundGC
TGLongPositionTGView::fMarkedStartstart position of marked text
TGLongPositionTGView::fMarkedEndend position of marked text
TGLongPositionTGView::fVisibleposition of visible region
TGLongPositionTGView::fMousePosposition of mouse
TGLongPositionTGView::fScrollValposition of scrollbar
Bool_tTGView::fIsMarkedtrue if text is marked/selected
Bool_tTGView::fIsMarkingtrue if in marking mode
Bool_tTGView::fIsSavedtrue is content is saved
Int_tTGView::fScrollingscrolling direction
Atom_tTGView::fClipboardclipboard property
UInt_tTGView::fXMarginx margin
UInt_tTGView::fYMarginy margin
TGViewFrame*TGView::fCanvasframe containing the text
TGHScrollBar*TGView::fHsbhorizontal scrollbar
TGVScrollBar*TGView::fVsbvertical scrollbar
TViewTimer*TGView::fScrollTimerscrollbar timer
TGGCTGView::fWhiteGCgraphics context used for scrolling
Bool_tTGView::fReadOnlytext cannot be editted
TGLayoutManager*TGCompositeFrame::fLayoutManagerlayout manager
TList*TGCompositeFrame::fListcontainer of frame elements
Bool_tTGCompositeFrame::fLayoutBrokenno layout manager is used
Int_tTGCompositeFrame::fMustCleanupcleanup mode (see EFrameCleanup)
Bool_tTGCompositeFrame::fMapSubwindowskTRUE - map subwindows
static TGLayoutHints*TGCompositeFrame::fgDefaultHintsdefault hints used by AddFrame()
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

 A TGTextEdit is a specialization of TGTextView. It provides the      
 text edit functionality to the static text viewing widget.           
 For the messages supported by this widget see the TGView class.      

TGTextEdit(const TGWindow *parent, UInt_t w, UInt_t h, Int_t id, UInt_t sboptions, ULong_t back)
 Create a text edit widget.
TGTextEdit(const TGWindow *parent, UInt_t w, UInt_t h, TGText *text, Int_t id, UInt_t sboptions, ULong_t back)
 Create a text edit widget. Initialize it with the specified text buffer.
TGTextEdit(const TGWindow *parent, UInt_t w, UInt_t h, const char *string, Int_t id, UInt_t sboptions, ULong_t back)
 Create a text edit widget. Initialize it with the specified string.
 Cleanup text edit widget.
void Init()
 Initiliaze a text edit widget.
void SetMenuState()
 Enable/disable menu items in function of what is possible.
Long_t ReturnLongestLineWidth()
 Return width of longest line in widget.
void Clear(Option_t *)
 Clear text edit widget.
Bool_t SaveFile(const char *filename, Bool_t saveas)
 Save file. If filename==0 ask user via dialog for a filename, if in
 addition saveas==kTRUE always ask for new filename. Returns
 kTRUE if file was correctly saved, kFALSE otherwise.
Bool_t Copy()
 Copy text.
Bool_t Cut()
 Cut text.
Bool_t Paste()
 Paste text into widget.
void Print(Option_t *)
 Send current buffer to printer.
void Delete(Option_t *)
 Delete selection.
Bool_t Search(const char *string, Bool_t direction, Bool_t caseSensitive)
 Search for string in the specified direction. If direction is true
 the search will be in forward direction.
Bool_t Replace(TGLongPosition textPos, const char *oldText, const char *newText, Bool_t direction, Bool_t caseSensitive)
 Replace text starting at textPos.
Bool_t Goto(Long_t line, Long_t column)
 Goto the specified line.
void SetInsertMode(EInsertMode mode)
 Sets the mode how characters are entered.
void CursorOff()
 If cursor if on, turn it off.
void CursorOn()
 Turn cursor on.
void SetCurrent(TGLongPosition new_coord)
 Make the specified position the current position.
void DrawCursor(Int_t mode)
 Draw cursor. If mode = 1 draw cursor, if mode = 2 erase cursor.
void AdjustPos()
 Adjust current position.
Bool_t HandleTimer(TTimer *t)
 Handle timer cursor blink timer.
Bool_t HandleSelection(Event_t *event)
 Handle selection notify event.
Bool_t HandleButton(Event_t *event)
 Handle mouse button event in text edit widget.
Bool_t HandleDoubleClick(Event_t *event)
 Handle double click event.
Bool_t HandleMotion(Event_t *event)
 Handle mouse motion event in text edit widget.
Bool_t HandleKey(Event_t *event)
 The key press event handler converts a key press to some line editor
Bool_t HandleCrossing(Event_t *event)
 Handle mouse crossing event.
Bool_t HandleFocusChange(Event_t *event)
 Handle focus change event in text edit widget.
void Search(Bool_t close)
 Invokes search dialog.
Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
 Process context menu messages.
void InsChar(char character)
 Insert a character in the text edit widget.
void DelChar()
 Delete a character from the text edit widget.
void BreakLine()
 Break a line.
void ScrollCanvas(Int_t new_top, Int_t direction)
 Scroll the canvas to new_top in the kVertical or kHorizontal direction.
void DrawRegion(Int_t x, Int_t y, UInt_t width, UInt_t height)
 Redraw the text edit widget.
void PrevChar()
 Go to the previous character.
void NextChar()
 Go to next character.
void LineUp()
 Make current position first line in window by scrolling up.
void LineDown()
 Move one line down.
void ScreenUp()
 Move one screen up.
void ScreenDown()
 Move one screen down.
void Home()
 Move to beginning of line.
void End()
 Move to end of line.
const TGGC & GetCursor0GC()
 Return selection graphics context for text cursor.
const TGGC & GetCursor1GC()
 Return default graphics context for text cursor.
void SavePrimitive(ostream &out, Option_t * /*= ""*/)
 Save a text edit widget as a C++ statement(s) on output stream out
void Copy(TObject &)
{ MayNotUse("Copy(TObject &)"); }
EInsertMode GetInsertMode()
{ return fInsertMode; }
TGPopupMenu * GetMenu()
{ return fMenu; }
void EnableMenu(Bool_t on = kTRUE)
{ fEnableMenu = on; }
Bool_t IsMenuEnabled()
{ return fEnableMenu; }
void SetFocus()
{ RequestFocus(); }
TGLongPosition GetCurrentPos()
{ return fCurrent; }
void FindAgain()
{ Emit("FindAgain()"); }
void Closed()
{ Emit("Closed()"); }
void Opened()
{ Emit("Opened()"); }
void Saved()
{ Emit("Saved()"); }
void SavedAs()
{ Emit("SavedAs()"); }

Author: Fons Rademakers 3/7/2000
Last update: root/gui:$Name: $:$Id: TGTextEdit.cxx,v 1.40 2006/07/03 16:10:45 brun Exp $
Copyright (C) 1995-2000, 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.