]>
Commit | Line | Data |
---|---|---|
b8c9c0a3 | 1 | // $Id$ |
2 | // Category: interfaces | |
3 | // | |
4 | // Author: D. Adamova | |
66a8b12d | 5 | //======================================================== |
b8c9c0a3 | 6 | // |
66a8b12d | 7 | //---------------TG4Editor.cxx---------------------------// |
8 | //------- A supplementary service class for--------------// | |
9 | //-----------AG4 Geometry Browser------------------------// | |
b8c9c0a3 | 10 | // |
66a8b12d | 11 | //========================================================= |
12 | ||
b8c9c0a3 | 13 | |
14 | ||
15 | #ifndef TG4_EDITOR_H | |
16 | #define TG4_EDITOR_H | |
17 | ||
18 | #include <TGFrame.h> | |
19 | ||
20 | class TGTextEdit; | |
21 | class TGTextButton; | |
22 | class TGLayoutHints; | |
23 | ||
24 | class TG4Editor : public TGTransientFrame { | |
25 | ||
26 | public: | |
27 | TG4Editor(const TGWindow* main, UInt_t w, UInt_t h); | |
28 | virtual ~TG4Editor(); | |
29 | ||
30 | void LoadBuffer(const char* buffer); | |
b8c9c0a3 | 31 | void SetTitle(); |
32 | void Popup(); | |
33 | void CloseWindow(); | |
34 | Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2); | |
35 | ||
66a8b12d | 36 | //--->inline |
37 | TGTextEdit* GetEditor() const { return fEdit; } | |
38 | ||
39 | protected: | |
40 | TG4Editor(const TG4Editor& ge); | |
41 | TG4Editor& operator=(const TG4Editor& ge) ; | |
42 | ||
43 | ||
b8c9c0a3 | 44 | private: |
45 | TGTextEdit* fEdit; // text edit widget | |
46 | TGTextButton* fOK; // OK button | |
47 | TGLayoutHints* fL1; // layout of TGTextEdit | |
48 | TGLayoutHints* fL2; // layout of OK button | |
49 | ||
b8c9c0a3 | 50 | ClassDef(TG4Editor,0) // service Editor window for GUI |
51 | }; | |
52 | ||
53 | #endif |