library: libGui #include "TGText.h" |
TGText
class description - header file - source file - inheritance tree (.pdf)
protected:
TGText(const TGText&)
void Init()
void LongestLine()
TGText& operator=(const TGText&)
Bool_t SetCurrentRow(Long_t row)
public:
TGText()
TGText(TGText* text)
TGText(const char* string)
virtual ~TGText()
Bool_t AddText(TGText* text)
Bool_t Append(const char* fn)
Bool_t BreakLine(TGLongPosition pos)
static TClass* Class()
void Clear()
Long_t ColCount() const
Bool_t DelChar(TGLongPosition pos)
Bool_t DelLine(ULong_t pos)
Bool_t DelText(TGLongPosition start, TGLongPosition end)
char GetChar(TGLongPosition pos)
TGTextLine* GetCurrentLine() const
const char* GetFileName() const
char* GetLine(TGLongPosition pos, ULong_t length)
Long_t GetLineLength(Long_t row)
Long_t GetLongestLine() const
Bool_t InsChar(TGLongPosition pos, char c)
Bool_t InsLine(ULong_t row, const char* string)
Bool_t InsText(TGLongPosition pos, const char* buf)
Bool_t InsText(TGLongPosition ins_pos, TGText* src, TGLongPosition start_src, TGLongPosition end_src)
virtual TClass* IsA() const
Bool_t IsSaved() const
Bool_t Load(const char* fn, Long_t startpos = 0, Long_t length = -1)
Bool_t LoadBuffer(const char* txtbuf)
Bool_t Replace(TGLongPosition start, const char* oldText, const char* newText, Bool_t direction, Bool_t caseSensitive)
void ReTab(Long_t row)
Long_t RowCount() const
Bool_t Save(const char* fn)
Bool_t Search(TGLongPosition* foundPos, TGLongPosition start, const char* searchString, Bool_t direction, Bool_t caseSensitive)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
protected:
TString fFilename name of opened file ("" if open buffer)
Bool_t fIsSaved false if text needs to be saved
TGTextLine* fFirst first line of text
TGTextLine* fCurrent current line
Long_t fCurrentRow current row number
Long_t fRowCount number of rows
Long_t fColCount number of columns in current line
Long_t fLongestLine length of longest line
void Init()
Common initialization method.
TGText()
Create default (empty) text buffer.
TGText(TGText *text)
Create text buffer and initialize with other text buffer.
TGText(const char *string)
Create text buffer and initialize with single line string.
Bool_t Load(const char *fn, Long_t startpos, Long_t length)
Load text from file fn. Startpos is the begin from where to
load the file and length is the number of characters to read
from the file.
char * GetLine(TGLongPosition pos, ULong_t length)
Return string at position pos. Returns 0 in case pos is not valid.
The returned string must be deleted by the user.
void ReTab(Long_t row)
Redo all tabs in a line. Needed after a new tab is inserted.
Author: Fons Rademakers 26/04/98
Last update: root/gui:$Name: $:$Id: TGText.cxx,v 1.19 2006/07/09 05:27:54 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.