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 AliEveEventManagerEditor_H
11 #define AliEveEventManagerEditor_H
13 #include "TGedFrame.h"
14 #include "TGComboBox.h"
15 #include <TObjString.h>
17 class AliEveEventManager;
26 //==============================================================================
27 // AliEveEventManagerEditor
28 //==============================================================================
30 //______________________________________________________________________________
31 // Short description of AliEveEventManagerEditor
34 class AliEveEventManagerEditor : public TGedFrame
37 AliEveEventManagerEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30,
38 UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
39 virtual ~AliEveEventManagerEditor() {}
41 virtual void SetModel(TObject* obj);
46 AliEveEventManager *fM; // Model object.
47 TGTextButton *fDumpEventInfo; // Button that dumps event-info into a file.
48 TGTextView *fEventInfo; // Text box with event info.
51 AliEveEventManagerEditor(const AliEveEventManagerEditor&); // Not implemented
52 AliEveEventManagerEditor& operator=(const AliEveEventManagerEditor&); // Not implemented
54 ClassDef(AliEveEventManagerEditor, 0); // GUI editor for AliEveEventManager.
58 //==============================================================================
59 // AliEveEventManagerWindow
60 //==============================================================================
62 //______________________________________________________________________________
63 // Short description of AliEveEventManagerWindow
66 class AliEveEventManagerWindow : public TGMainFrame
69 AliEveEventManagerWindow(AliEveEventManager* mgr);
70 virtual ~AliEveEventManagerWindow();
82 void DoSetAutoLoadTime();
87 void StorageManagerChangedState(int state);
90 AliEveEventManager *fM; // Model object.
92 TGTextButton *fFirstEvent; // Go to first event
93 TGTextButton *fPrevEvent; // Go to prev event
94 TGTextButton *fNextEvent; // Go to next event
95 TGTextButton *fLastEvent; // Go to last event
96 TGTextButton *fRefresh; // Refresh event-file state
97 TGTextButton *fMarkEvent; // Mark current event
99 TGNumberEntry *fEventId; // Display/edit current event id
100 TGLabel *fInfoLabel; // Display last available event id
102 TGCheckButton *fAutoLoad; // Check-box for automatic loading of events
103 TEveGValuator *fAutoLoadTime; // Time for automatic loading of events
105 TGComboBox *fTrigSel; // Trigger selection combo box
106 TGLabel *fStorageStatus; // Display status of Storage Manager
108 TGTextView *fEventInfo; // Text box with event info
110 TGTextButton* MkTxtButton(TGCompositeFrame* p, const char* txt, Int_t width=0,
111 Int_t lo=0, Int_t ro=0, Int_t to=0, Int_t bo=0);
112 TGLabel* MkLabel(TGCompositeFrame* p, const char* txt, Int_t width,
113 Int_t lo=0, Int_t ro=0, Int_t to=2, Int_t bo=0);
116 AliEveEventManagerWindow(const AliEveEventManagerWindow&); // Not implemented
117 AliEveEventManagerWindow& operator=(const AliEveEventManagerWindow&); // Not implemented
119 ClassDef(AliEveEventManagerWindow, 0); // GUI window for AliEveEventManager.