2 // Author: Matevz Tadel 2007
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 **************************************************************************/
10 #ifndef AliEveMacroExecutorWindow_H
11 #define AliEveMacroExecutorWindow_H
17 class AliEveMacroExecutor;
19 class AliEveMEWEditor;
25 //______________________________________________________________________________
26 // Short description of AliEveMacroExecutorWindow
29 class AliEveMacroExecutorWindow : public TGMainFrame
32 AliEveMacroExecutorWindow(AliEveMacroExecutor* master);
33 virtual ~AliEveMacroExecutorWindow();
35 void PopulateMacros(Bool_t keep_selected=kTRUE);
37 void SetActiveStateOfShownMacros(Bool_t active);
39 void NewEventLoaded();
41 void DoEnableAll() { SetActiveStateOfShownMacros(kTRUE); }
42 void DoDisableAll() { SetActiveStateOfShownMacros(kFALSE); }
45 void DoMacroSelected(Int_t mid);
48 AliEveMacroExecutor *fM;
50 TGCompositeFrame *fMainFrame;
51 TGCompositeFrame *fCtrlFrame;
53 AliEveMEWEditor *fEditor;
55 TGTextEntry *fSelectTags;
57 std::vector<AliEveMacro*> fBoxContents;
59 TGHorizontalFrame* MkHFrame(TGCompositeFrame* p=0);
60 TGLabel* MkLabel (TGCompositeFrame* p, const char* txt, Int_t width,
61 Int_t lo=0, Int_t ro=0, Int_t to=2, Int_t bo=0);
64 AliEveMacroExecutorWindow(const AliEveMacroExecutorWindow&); // Not implemented
65 AliEveMacroExecutorWindow& operator=(const AliEveMacroExecutorWindow&); // Not implemented
67 ClassDef(AliEveMacroExecutorWindow, 0); // Short description.