// $Id$ // Category: interfaces // // Author: D. Adamova //=============================================== // //--------TG4Editor.h--------------------------// //------- A service class for GUI--------------// // //================================================== #ifndef TG4_EDITOR_H #define TG4_EDITOR_H #include class TGTextEdit; class TGTextButton; class TGLayoutHints; class TG4Editor : public TGTransientFrame { public: TG4Editor(const TGWindow* main, UInt_t w, UInt_t h); virtual ~TG4Editor(); void LoadBuffer(const char* buffer); void LoadFile(const char* file); TGTextEdit* GetEditor() const { return fEdit; } void SetTitle(); void Popup(); void CloseWindow(); Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2); private: TGTextEdit* fEdit; // text edit widget TGTextButton* fOK; // OK button TGLayoutHints* fL1; // layout of TGTextEdit TGLayoutHints* fL2; // layout of OK button TG4Editor(const TG4Editor& ge) : TGTransientFrame( (const TGTransientFrame&) ge) {;} TG4Editor& operator=(const TG4Editor& ge) {return *this;} ClassDef(TG4Editor,0) // service Editor window for GUI }; #endif