]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TGeant4/TG4Editor.h
TG4GUI renamed to TG4MainFrame; major update of geometry browser classes by D.Adamova...
[u/mrichter/AliRoot.git] / TGeant4 / TG4Editor.h
CommitLineData
b8c9c0a3 1// $Id$
2// Category: interfaces
3//
4// Author: D. Adamova
5//===============================================
6//
7//--------TG4Editor.h--------------------------//
8//------- A service class for GUI--------------//
9//
10//==================================================
11
12
13#ifndef TG4_EDITOR_H
14#define TG4_EDITOR_H
15
16#include <TGFrame.h>
17
18class TGTextEdit;
19class TGTextButton;
20class TGLayoutHints;
21
22class TG4Editor : public TGTransientFrame {
23
24public:
25 TG4Editor(const TGWindow* main, UInt_t w, UInt_t h);
26 virtual ~TG4Editor();
27
28 void LoadBuffer(const char* buffer);
29 void LoadFile(const char* file);
30
31 TGTextEdit* GetEditor() const { return fEdit; }
32
33 void SetTitle();
34 void Popup();
35 void CloseWindow();
36 Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
37
38private:
39 TGTextEdit* fEdit; // text edit widget
40 TGTextButton* fOK; // OK button
41 TGLayoutHints* fL1; // layout of TGTextEdit
42 TGLayoutHints* fL2; // layout of OK button
43
44 TG4Editor(const TG4Editor& ge)
45 : TGTransientFrame( (const TGTransientFrame&) ge) {;}
46 TG4Editor& operator=(const TG4Editor& ge)
47 {return *this;}
48
49 ClassDef(TG4Editor,0) // service Editor window for GUI
50};
51
52#endif