12 #ifndef ROOT_TGTextEditor 13 #define ROOT_TGTextEditor 25 #ifndef ROOT_TGTextEdit 78 void LoadFile(
const char *fname = 0);
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.
virtual Bool_t LoadBuffer(const char *txtbuf)
Load text from a text buffer. Return false in case of failure.
void ClearText()
Clear text edit widget.
virtual void CloseWindow()
Close TGTextEditor window.
virtual Bool_t HandleTimer(TTimer *t)
Handle timer event.
virtual Bool_t HandleKey(Event_t *event)
Keyboard event handler.
void AddLine(const char *string)
virtual void AddLineFast(const char *string)
Add a line of text to the view widget.
void AddText(TGText *text)
TGTextBuffer * fCommandBuf
Class supporting a collection of lines with C++ code.
virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
Handle menu and other command generated by the user.
void DataChanged()
Slot setting the fTextChanged flag to true when the text has been modified in fTextEdit.
TGLayoutHints * fMenuBarLayout
Bool_t LoadBuffer(const char *buf)
TGPopupMenu * fMenuSearch
void SetText(TGText *text)
#define ClassDef(name, id)
virtual void AddLine(const char *string)
Add a line of text to the view widget.
void ExecuteMacro()
Save the edited text in a temporary macro, execute it, and then delete the temporary file...
void AddLineFast(const char *string)
void About()
Display ROOT splash screen.
virtual void Build()
Build TGTextEditor widget.
void LoadFile(const char *fname=0)
Load a file into the editor. If fname is 0, a TGFileDialog will popup.
Handles synchronous and a-synchronous timer events.
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.
virtual void AddText(TGText *text)
Add text to the view widget.
TGLayoutHints * fMenuBarItemLayout
void PrintText()
Open the print dialog and send current buffer to printer.
virtual void SetText(TGText *text)
Adopt a new text buffer. The text will be deleted by this object.
TGTextEditor(const char *filename=0, const TGWindow *p=0, UInt_t w=900, UInt_t h=600)
TGTextEditor constructor with file name as first argument.
Int_t IsSaved()
Check if file has to be saved in case of modifications.
void InterruptMacro()
Interrupt execution of a macro.
virtual void DeleteWindow()
Delete TGTextEditor Window.
virtual ~TGTextEditor()
TGTextEditor destructor.
void DataDropped(char *fname)
Update file information when receiving the signal DataDropped from TGTextEdit widget.