class TGTextEditor: public TGMainFrame


TGTextEditor

A simple text editor that uses the TGTextEdit widget.
It provides all functionalities of TGTextEdit as copy, paste, cut,
search, go to a given line number. In addition, it provides the
possibilities for compiling, executing or interrupting a running
macro.

This class can be used in following ways:
- with file name as argument:
new TGTextEditor("hsimple.C");
- with a TMacro* as argument:
TMacro *macro = new TMacro("hsimple.C");
new TGTextEditor(macro);

Basic Features:

New Document

To create a new blank document, select File menu / New, or click
the New toolbar button. It will create a new instance of
TGTextEditor.

Open/Save File

To open a file, select File menu / Open or click on the Open
toolbar button. This will bring up the standard File Dialog for
opening files.
If the current document has not been saved yet, you will be asked
either to save or abandon the changes.
To save the file using the same name, select File menu / Save or
the toolbar Save button. To change the file name use File menu /
Save As... or corresponding SaveAs button on the toolbar.

Text Selection

You can move the cursor by simply clicking on the desired location
with the left mouse button. To highlight some text, press the mouse
and drag the mouse while holding the left button pressed.
To select a word, double-click on it;
to select the text line - triple-click on it;
to select all  do quadruple-click.

Cut, Copy, Paste

After selecting some text, you can cut or copy it to the clipboard.
A subsequent paste operation will insert the contents of the
clipboard at the current cursor location.

Text Search

The editor uses a standard Search dialog. You can specify a forward
or backward search direction starting from the current cursor
location according to the selection made of a case sensitive mode
or not. The last search can be repeated by pressing F3.

Text Font

You can change the text font by selecting Edit menu / Set Font.
The Font Dialog pops up and shows the Name, Style, and Size of any
available font. The selected font sample is shown in the preview
area.

Executing Macros

You can execute the currently loaded macro in the editor by
selecting Tools menu / Execute Macro; by clicking on the
corresponding toolbar button, or by using Ctrl+F5 accelerator keys.
This is identical to the command ".x macro.C" in the root prompt
command line.

Compiling Macros

The currently loaded macro can be compiled with ACLiC if you select
Tools menu / Compile Macro; by clicking on the corresponding
toolbar button, or by using Ctrl+F7 accelerator keys.
This is identical to the command ".L macro.C++" in the root prompt
command line.

Interrupting a Running Macro

You can interrupt a running macro by selecting the Tools menu /
Interrupt; by clicking on the corresponding toolbar button, or by
using Shift+F5 accelerator keys.

Interface to CINT Interpreter

Any command entered in the Command combo box will be passed to
the CINT interpreter. This combo box will keep the commands history
and will allow you to re-execute the same commands during an editor
session.

Keyboard Bindings

The following table lists the keyboard shortcuts and accelerator
keys.

Key:              Action:


Up                Move cursor up.
Shift+Up          Move cursor up and extend selection.
Down              Move cursor down.
Shift+Down        Move cursor down and extend selection.
Left              Move cursor left.
Shift+Left        Move cursor left and extend selection.
Right             Move cursor right.
Shift+Right       Move cursor right and extend selection.
Home              Move cursor to begin of line.
  Shift+Home        Move cursor to begin of line and extend selection.
Ctrl+Home         Move cursor to top of page.
End               Move cursor to end of line.
Shift+End         Move cursor to end of line and extend selection.
Ctrl+End          Move cursor to end of page.
PgUp              Move cursor up one page.
Shift+PgUp        Move cursor up one page and extend selection.
PgDn              Move cursor down one page.
Shift+PgDn        Move cursor down one page and extend selection.
Delete            Delete character after cursor, or text selection.
  BackSpace         Delete character before cursor, or text selection.
Ctrl+B            Move cursor left.
Ctrl+D            Delete character after cursor, or text selection.
Ctrl+E            Move cursor to end of line.
  Ctrl+H            Delete character before cursor, or text selection.
Ctrl+K            Delete characters from current position to the
end of line.
Ctrl+U            Delete current line.


/* */


Function Members (Methods)

public:
TGTextEditor(const char* filename = 0, const TGWindow* p = 0, UInt_t w = 900, UInt_t h = 600)
TGTextEditor(TMacro* macro, const TGWindow* p = 0, UInt_t w = 0, UInt_t h = 0)
virtual~TGTextEditor()
voidAbout()
voidTObject::AbstractMethod(const char* method) const
virtual voidTGFrame::Activate(Bool_t)
virtual voidTGCompositeFrame::AddFrame(TGFrame* f, TGLayoutHints* l = 0)
voidTGFrame::AddInput(UInt_t emask)
voidAddLine(const char* string)
voidAddLineFast(const char* string)
voidAddText(TGText* text)
virtual voidTObject::AppendPad(Option_t* option = "")
static Bool_tTQObject::AreAllSignalsBlocked()
Bool_tTQObject::AreSignalsBlocked() const
virtual Bool_tTGMainFrame::BindKey(const TGWindow* w, Int_t keycode, Int_t modifier) const
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 voidTGCompositeFrame::ChangeOptions(UInt_t options)
virtual voidTGCompositeFrame::ChangeSubframesBackground(Pixel_t back)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTGCompositeFrame::Cleanup()
virtual voidTObject::Clear(Option_t* = "")
voidClearText()
virtual TObject*TObject::Clone(const char* newname = "") const
virtual voidCloseWindow()
voidTQObject::CollectClassSignalLists(TList& list, TClass* cls)
virtual Int_tTObject::Compare(const TObject* obj) const
voidCompileMacro()
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
voidDataChanged()
voidDataDropped(char* fname)
virtual voidTGFrame::Delete(Option_t* = "")
virtual voidDeleteWindow()
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)
voidTGMainFrame::DontCallClose()
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTGFrame::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)
voidExecuteMacro()
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
virtual Pixel_tTGFrame::GetBackground() const
static const TGGC&TGFrame::GetBckgndGC()
TList*TGMainFrame::GetBindList() const
static const TGGC&TGFrame::GetBlackGC()
static Pixel_tTGFrame::GetBlackPixel()
Int_tTGFrame::GetBorderWidth() const
voidTGMainFrame::GetClassHints(const char*& className, const char*& resourceName) const
TGClient*TGObject::GetClient() const
static Int_tTGWindow::GetCounter()
static Pixel_tTGFrame::GetDefaultFrameBackground()
virtual UInt_tTGCompositeFrame::GetDefaultHeight() const
static Pixel_tTGFrame::GetDefaultSelectedBackground()
virtual TGDimensionTGCompositeFrame::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*TGMainFrame::GetIconName() const
const char*TGMainFrame::GetIconPixmap() 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
voidTGMainFrame::GetMWMHints(UInt_t& value, UInt_t& funcs, UInt_t& input) 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*GetText() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
static const TGGC&TGFrame::GetWhiteGC()
static Pixel_tTGFrame::GetWhitePixel()
UInt_tTGFrame::GetWidth() const
const char*TGMainFrame::GetWindowName() const
voidTGMainFrame::GetWMPosition(Int_t& x, Int_t& y) const
voidTGMainFrame::GetWMSize(UInt_t& w, UInt_t& h) const
voidTGMainFrame::GetWMSizeHints(UInt_t& wmin, UInt_t& hmin, UInt_t& wmax, UInt_t& hmax, UInt_t& winc, UInt_t& hinc) const
EInitialStateTGMainFrame::GetWMState() const
Int_tTGFrame::GetX() const
Int_tTGFrame::GetY() const
voidGoto()
virtual Bool_tTGMainFrame::HandleButton(Event_t* event)
virtual Bool_tTGMainFrame::HandleClientMessage(Event_t* event)
virtual Bool_tTGFrame::HandleColormapChange(Event_t*)
virtual Bool_tTGFrame::HandleConfigureNotify(Event_t* event)
virtual Bool_tTGCompositeFrame::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_tTGCompositeFrame::HandleDoubleClick(Event_t*)
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_tTGWindow::HandleExpose(Event_t* event)
virtual Bool_tTGCompositeFrame::HandleFocusChange(Event_t*)
virtual Bool_tTGWindow::HandleIdleEvent(TGIdleHandler*)
virtual Bool_tHandleKey(Event_t* event)
virtual Bool_tTGMainFrame::HandleMotion(Event_t* event)
virtual Bool_tTGMainFrame::HandleSelection(Event_t* event)
virtual Bool_tTGFrame::HandleSelectionClear(Event_t*)
virtual Bool_tTGMainFrame::HandleSelectionRequest(Event_t* event)
virtual Bool_tHandleTimer(TTimer* t)
virtual Bool_tTQObject::HasConnection(const char* signal_name) 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
voidInterruptMacro()
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
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_tTObject::IsOnHeap() const
Int_tIsSaved()
virtual Bool_tTObject::IsSortable() const
Bool_tTGCompositeFrame::IsVisible(TGFrame* f) const
Bool_tTGCompositeFrame::IsVisible(TGFrameElement* ptr) const
Bool_tTObject::IsZombie() const
virtual voidTGCompositeFrame::Layout()
Bool_tLoadBuffer(const char* buf)
voidLoadFile(char* fname = 0)
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()
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
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
voidPrintText()
virtual voidTGFrame::ProcessedEvent(Event_t* event)SIGNAL
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::RemoveAll()
virtual voidTGMainFrame::RemoveBind(const TGWindow* w, Int_t keycode, Int_t modifier) const
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 voidTGObject::SaveAs(const char* filename = "", Option_t* option = "") const
voidSaveFile(const char* fname)
Bool_tSaveFileAs()
virtual voidTGMainFrame::SavePrimitive(ostream& out, Option_t* option = "")
virtual voidTGCompositeFrame::SavePrimitiveSubframes(ostream& out, Option_t* option = "")
virtual voidTGMainFrame::SaveSource(const char* filename = "Rootappl.C", Option_t* option = "")MENU
voidTGFrame::SaveUserColor(ostream& out, Option_t*)
voidSearch(Bool_t ret)
virtual voidTGMainFrame::SendCloseMessage()
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)
voidTGMainFrame::SetClassHints(const char* className, const char* resourceName)
virtual voidTGCompositeFrame::SetCleanup(Int_t mode = kLocalCleanup)
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 voidTGFrame::SetForegroundColor(Pixel_t)
voidTGFrame::SetFrameElement(TGFrameElement* fe)
virtual voidTGFrame::SetHeight(UInt_t h)
voidTGMainFrame::SetIconName(const char* name)
const TGPicture*TGMainFrame::SetIconPixmap(const char* iconName)
voidTGMainFrame::SetIconPixmap(char** xpm_array)
virtual voidTGCompositeFrame::SetLayoutBroken(Bool_t on = kTRUE)
virtual voidTGCompositeFrame::SetLayoutManager(TGLayoutManager* l)
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)
voidTGMainFrame::SetMWMHints(UInt_t value, UInt_t funcs, UInt_t input)
virtual voidTGWindow::SetName(const char* name)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTGFrame::SetSize(const TGDimension& s)
voidSetText(TGText* text)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidTGFrame::SetWidth(UInt_t w)
virtual voidTGMainFrame::SetWindowName(const char* name = 0)
voidTGMainFrame::SetWMPosition(Int_t x, Int_t y)
voidTGMainFrame::SetWMSize(UInt_t w, UInt_t h)
voidTGMainFrame::SetWMSizeHints(UInt_t wmin, UInt_t hmin, UInt_t wmax, UInt_t hmax, UInt_t winc, UInt_t hinc)
voidTGMainFrame::SetWMState(EInitialState state)
virtual voidTGFrame::SetX(Int_t x)
virtual voidTGFrame::SetY(Int_t y)
virtual voidTGCompositeFrame::ShowFrame(TGFrame* f)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
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 Bool_tTGCompositeFrame::TranslateCoordinates(TGFrame* child, Int_t x, Int_t y, Int_t& fx, Int_t& fy)
virtual voidTGFrame::UnmapWindow()
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) 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:
virtual voidBuild()
static Int_tTQObject::CheckConnectArgs(TQObject* sender, TClass* sender_class, const char* signal, TClass* receiver_class, const char* slot)
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 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)
static Time_tTGFrame::GetLastClick()
TStringTGMainFrame::GetMWMfuncString() const
TStringTGMainFrame::GetMWMinpString() const
TStringTGMainFrame::GetMWMvalueString() const
TStringTGFrame::GetOptionString() const
const TGResourcePool*TGFrame::GetResourcePool() const
virtual void*TGFrame::GetSender()
virtual const char*TQObject::GetSenderClassName() const
voidTObject::MakeZombie()
TGWindow&TGWindow::operator=(const TGWindow& tgw)
virtual voidTGFrame::StartGuiBuilding(Bool_t on = kTRUE)

Data Members

public:
enum TGMainFrame::[unnamed] { kDontCallClose
};
enum TGFrame::[unnamed] { kDeleteWindowCalled
};
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
};
protected:
Pixel_tTGFrame::fBackgroundframe background color
TList*TGMainFrame::fBindListlist with key bindings
Int_tTGFrame::fBorderWidthframe border width
TStringTGMainFrame::fClassNameWM class name
TGClient*TGObject::fClientConnection to display server
TGComboBox*fComboCmdcommands combobox
TGTextEntry*fCommandcommand text entry widget
TGTextBuffer*fCommandBufcommand text buffer
Int_tTGFrame::fDNDStateEDNDFlags
Atom_t*TGMainFrame::fDNDTypeListhandles DND types
UInt_tTGWindow::fEditDisabledflags used for "guibuilding"
UInt_tTGFrame::fEventMaskcurrenty active event mask
Bool_tfExitingtrue if editor is closing
TGFrameElement*TGFrame::fFEpointer to frame element
TStringfFilenamename of the opened file
UInt_tTGFrame::fHeightframe height
TStringTGMainFrame::fIconNameicon name
TStringTGMainFrame::fIconPixmapicon pixmap name
Handle_tTGObject::fIdX11/Win32 Window identifier
TGLabel*fLabel"command" label
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
UInt_tTGMainFrame::fMWMFuncsMWM functions
UInt_tTGMainFrame::fMWMInputMWM input modes
UInt_tTGMainFrame::fMWMValueMWM decoration hints
TMacro*fMacropointer on the opened macro
Bool_tTGCompositeFrame::fMapSubwindowskTRUE - map subwindows
UInt_tTGFrame::fMaxHeightmaximal frame height
UInt_tTGFrame::fMaxWidthmaximal frame width
TGMenuBar*fMenuBareditor's menu bar
TGLayoutHints*fMenuBarItemLayoutused for for menubar items
TGLayoutHints*fMenuBarLayoutused for the menubar
TGPopupMenu*fMenuEdit"Edit" menu entry
TGPopupMenu*fMenuFile"File" menu entry
TGPopupMenu*fMenuHelp"Help" menu entry
TGPopupMenu*fMenuSearch"Search" menu entry
TGPopupMenu*fMenuTools"Tools" menu entry
UInt_tTGFrame::fMinHeightminimal frame height
UInt_tTGFrame::fMinWidthminimal frame width
Int_tTGCompositeFrame::fMustCleanupcleanup mode (see EFrameCleanup)
TStringTGWindow::fNamename of the window used in SavePrimitive()
Bool_tTGWindow::fNeedRedrawkTRUE if window needs to be redrawn
UInt_tTGFrame::fOptionsframe options
const TGWindow*TGWindow::fParentParent window
TStringTGMainFrame::fResourceNameWM resource name
Bool_tTQObject::fSignalsBlocked! flag used for suppression of signals
TGStatusBar*fStatusBarfor file name, line and col number
Bool_tfTextChangedtrue if text has changed
TGTextEdit*fTextEdittext edit widget
TTimer*fTimerfor statusbar and toolbar update
TGToolBar*fToolBartoolbar with common tool buttons
UInt_tTGMainFrame::fWMHeightWM height
UInt_tTGMainFrame::fWMHeightIncWM height increments
EInitialStateTGMainFrame::fWMInitStateWM initial state
UInt_tTGMainFrame::fWMMaxHeightWM max height
UInt_tTGMainFrame::fWMMaxWidthWM max width
UInt_tTGMainFrame::fWMMinHeightWM min height
UInt_tTGMainFrame::fWMMinWidthWM min width
UInt_tTGMainFrame::fWMWidthWM width
UInt_tTGMainFrame::fWMWidthIncWM width increments
Int_tTGMainFrame::fWMXWM x position
Int_tTGMainFrame::fWMYWM y position
UInt_tTGFrame::fWidthframe width
TStringTGMainFrame::fWindowNamewindow name
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 Int_tTGWindow::fgCountercounter of created windows in SavePrimitive
static Window_tTGFrame::fgDbw
static Int_tTGFrame::fgDbx
static Int_tTGFrame::fgDby
static Pixel_tTGFrame::fgDefaultFrameBackground
static TGLayoutHints*TGCompositeFrame::fgDefaultHintsdefault hints used by AddFrame()
static Pixel_tTGFrame::fgDefaultSelectedBackground
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

TGTextEditor(const char *filename, const TGWindow *p, UInt_t w, UInt_t h)
 TGTextEditor constructor with file name as first argument.
TGTextEditor(TMacro *macro, const TGWindow *p, UInt_t w, UInt_t h)
 TGTextEditor constructor with pointer to a TMacro as first argument.
~TGTextEditor()
 TGTextEditor destructor.
void DeleteWindow()
 Delete TGTextEditor Window.
void Build()
 Build TGTextEditor widget.
void DataDropped(char* fname)
 Update file informations when receiving the signal
 DataDropped from TGTextEdit widget.
void LoadFile(char* fname = 0)
 Load a file into the editor. If fname is 0, a TGFileDialog will popup.
void SaveFile(const char* fname)
 Save the edited text in the file "fname".
Bool_t SaveFileAs()
 Save the edited text in a file selected with TGFileDialog.
 Shouldn't we create a backup file?
Int_t IsSaved()
 Check if file has to be saved in case of modifications.
void PrintText()
 Open the print dialog and send current buffer to printer.
void CloseWindow()
 Close TGTextEditor window.
Bool_t HandleKey(Event_t* event)
 Keyboard event handler.
void ClearText()
 Clear text edit widget.
void Search(Bool_t ret)
 Invokes search dialog, or just search previous string if again is true.
void Goto()
 Invokes goto dialog, and go to the specified line.
void CompileMacro()
 Save the edited text in a temporary macro, then compile it.
void ExecuteMacro()
 Save the edited text in a temporary macro, execute it, and then delete
 the temporary file.
void InterruptMacro()
 Interrupt execution of a macro.
void About()
 Display ROOT splash screen.
Bool_t HandleTimer(TTimer* t)
 Handle timer event.
Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
 Handle menu and other command generated by the user.
Bool_t LoadBuffer(const char* buf)
{ return fTextEdit->LoadBuffer(buf); }
void DataChanged()
{ fTextChanged = kTRUE; }
void SetText(TGText* text)
{ fTextEdit->SetText(text); }
void AddText(TGText* text)
{ fTextEdit->AddText(text); }
void AddLine(const char* string)
{ fTextEdit->AddLine(string); }
void AddLineFast(const char* string)
{ fTextEdit->AddLineFast(string); }
TGText * GetText()
{ return fTextEdit->GetText(); }

Author: Bertrand Bellenot 20/06/06
Last change: root/gui:$Id: TGTextEditor.h 23115 2008-04-10 13:35:37Z rdm $
Last generated: 2008-06-25 08:43
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *

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.