#ifndef ROOT_TGTextEditor
#define ROOT_TGTextEditor
#ifndef ROOT_TGFrame
#include "TGFrame.h"
#endif
#ifndef ROOT_TGTextEdit
#include "TGTextEdit.h"
#endif
class TGComboBox;
class TGLabel;
class TGLayoutHints;
class TGMenuBar;
class TGPopupMenu;
class TGStatusBar;
class TGText;
class TGTextBuffer;
class TGTextEntry;
class TGToolBar;
class TMacro;
class TString;
class TTimer;
class TGTextEditor : public TGMainFrame {
protected:
TTimer *fTimer;
TGStatusBar *fStatusBar;
TGToolBar *fToolBar;
TGTextEdit *fTextEdit;
TGLabel *fLabel;
TGComboBox *fComboCmd;
TGTextEntry *fCommand;
TGTextBuffer *fCommandBuf;
TGLayoutHints *fMenuBarLayout;
TGLayoutHints *fMenuBarItemLayout;
TGMenuBar *fMenuBar;
TGPopupMenu *fMenuFile;
TGPopupMenu *fMenuEdit;
TGPopupMenu *fMenuSearch;
TGPopupMenu *fMenuTools;
TGPopupMenu *fMenuHelp;
Bool_t fExiting;
Bool_t fTextChanged;
TString fFilename;
TMacro *fMacro;
virtual void Build();
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();
void ClearText();
Bool_t LoadBuffer(const char *buf) { return fTextEdit->LoadBuffer(buf); }
void LoadFile(char *fname = 0);
void SaveFile(const char *fname);
Bool_t SaveFileAs();
void PrintText();
void Search(Bool_t ret);
void Goto();
void About();
void DataChanged() { fTextChanged = kTRUE; }
void DataDropped(char *fname);
Int_t IsSaved();
void CompileMacro();
void ExecuteMacro();
void InterruptMacro();
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() const { return fTextEdit->GetText(); }
virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
virtual Bool_t HandleKey(Event_t *event);
virtual Bool_t HandleTimer(TTimer *t);
virtual void CloseWindow();
virtual void DeleteWindow();
ClassDef(TGTextEditor,0)
};
#endif
Last change: Tue Nov 11 12:37:31 2008
Last generated: 2008-11-11 12:37
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.