]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/EveBase/AliEveMacroEditor.h
Improved quitting Event Display with close button.
[u/mrichter/AliRoot.git] / EVE / EveBase / AliEveMacroEditor.h
1 // @(#)root/eve:$Id$
2 // Author: Matevz Tadel 2007
3
4 /**************************************************************************
5  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
6  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
7  * full copyright notice.                                                 *
8  **************************************************************************/
9
10 #ifndef AliEveMacroEditor_H
11 #define AliEveMacroEditor_H
12
13 #include "TGedFrame.h"
14
15 class AliEveMacro;
16
17 class TGCheckButton;
18 class TGTextEntry;
19 class TGComboBox;
20
21 //______________________________________________________________________________
22 // Short description of AliEveMacroEditor
23 //
24
25 class AliEveMacroEditor : public TGedFrame
26 {
27 public:
28   AliEveMacroEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30,
29                     UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
30   virtual ~AliEveMacroEditor() {}
31
32   virtual void SetModel(TObject* obj);
33
34   void DoSources(Int_t v);
35   void DoTags();
36   void DoMacro();
37   void DoFunc();
38   void DoArgs();
39   void DoActive();
40
41 protected:
42   AliEveMacro           *fM; // Model object.
43
44   TGComboBox            *fSources;
45   TGTextEntry           *fTags;
46   TGTextEntry           *fMacro;
47   TGTextEntry           *fFunc;
48   TGTextEntry           *fArgs;
49   TGCheckButton         *fActive;
50
51   TGHorizontalFrame* MkHFrame(TGCompositeFrame* p=0);
52   TGLabel*           MkLabel (TGCompositeFrame* p, const char* txt, Int_t width,
53                               Int_t lo=0, Int_t ro=0, Int_t to=2, Int_t bo=0);
54
55 private:
56   AliEveMacroEditor(const AliEveMacroEditor&);            // Not implemented
57   AliEveMacroEditor& operator=(const AliEveMacroEditor&); // Not implemented
58
59   ClassDef(AliEveMacroEditor, 0); // GUI editor for AliEveMacro.
60 };
61
62 #endif