]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EVE/EveBase/AliEveMacroEditor.h
- synchronized the overlay macro to the changes of the drawing one
[u/mrichter/AliRoot.git] / EVE / EveBase / AliEveMacroEditor.h
CommitLineData
f6afd0e1 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
15class AliEveMacro;
16
17class TGCheckButton;
18class TGTextEntry;
19class TGComboBox;
20
21//______________________________________________________________________________
22// Short description of AliEveMacroEditor
23//
24
25class AliEveMacroEditor : public TGedFrame
26{
27public:
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);
7b2d546e 35 void DoTags();
f6afd0e1 36 void DoMacro();
37 void DoFunc();
38 void DoArgs();
39 void DoActive();
40
41protected:
42 AliEveMacro *fM; // Model object.
43
44 TGComboBox *fSources;
7b2d546e 45 TGTextEntry *fTags;
f6afd0e1 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
55private:
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