]>
Commit | Line | Data |
---|---|---|
5655e9ce | 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 AliEveEventManagerEditor_H | |
11 | #define AliEveEventManagerEditor_H | |
12 | ||
13 | #include "TGedFrame.h" | |
ecb84424 | 14 | #include "TGComboBox.h" |
15 | #include <TObjString.h> | |
5655e9ce | 16 | |
f76c9e9b | 17 | class AliEveEventManager; |
319f3084 | 18 | class TEveGValuator; |
80547f2d | 19 | class TGButton; |
f76c9e9b | 20 | class TGCheckButton; |
80547f2d | 21 | class TGTextButton; |
319f3084 | 22 | class TGTextView; |
f76c9e9b | 23 | class TGNumberEntry; |
24 | class TGLabel; | |
5655e9ce | 25 | |
80547f2d | 26 | //============================================================================== |
27 | // AliEveEventManagerEditor | |
28 | //============================================================================== | |
29 | ||
5655e9ce | 30 | //______________________________________________________________________________ |
31 | // Short description of AliEveEventManagerEditor | |
32 | // | |
33 | ||
34 | class AliEveEventManagerEditor : public TGedFrame | |
35 | { | |
36 | public: | |
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() {} | |
40 | ||
41 | virtual void SetModel(TObject* obj); | |
42 | ||
fa6aa785 | 43 | void DumpEventInfo(); |
5655e9ce | 44 | |
45 | protected: | |
fa6aa785 | 46 | AliEveEventManager *fM; // Model object. |
fa6aa785 | 47 | TGTextButton *fDumpEventInfo; // Button that dumps event-info into a file. |
48 | TGTextView *fEventInfo; // Text box with event info. | |
5655e9ce | 49 | |
50 | private: | |
51 | AliEveEventManagerEditor(const AliEveEventManagerEditor&); // Not implemented | |
52 | AliEveEventManagerEditor& operator=(const AliEveEventManagerEditor&); // Not implemented | |
53 | ||
54 | ClassDef(AliEveEventManagerEditor, 0); // GUI editor for AliEveEventManager. | |
55 | }; | |
56 | ||
f76c9e9b | 57 | |
80547f2d | 58 | //============================================================================== |
59 | // AliEveEventManagerWindow | |
60 | //============================================================================== | |
61 | ||
62 | //______________________________________________________________________________ | |
63 | // Short description of AliEveEventManagerWindow | |
64 | // | |
65 | ||
f76c9e9b | 66 | class AliEveEventManagerWindow : public TGMainFrame |
67 | { | |
68 | public: | |
4d62585e | 69 | AliEveEventManagerWindow(AliEveEventManager* mgr); |
80547f2d | 70 | virtual ~AliEveEventManagerWindow(); |
f76c9e9b | 71 | |
80547f2d | 72 | void DoFirstEvent(); |
73 | void DoPrevEvent(); | |
74 | void DoNextEvent(); | |
75 | void DoLastEvent(); | |
164d3d29 | 76 | void DoMarkEvent(); |
80547f2d | 77 | |
78 | void DoSetEvent(); | |
f76c9e9b | 79 | |
80547f2d | 80 | void DoRefresh(); |
81 | void DoSetAutoLoad(); | |
82 | void DoSetAutoLoadTime(); | |
969d3431 | 83 | void DoSetTrigSel(); |
f76c9e9b | 84 | |
80547f2d | 85 | void Update(); |
f76c9e9b | 86 | |
87 | protected: | |
4d62585e | 88 | AliEveEventManager *fM; // Model object. |
89 | ||
80547f2d | 90 | TGTextButton *fFirstEvent; // Go to first event |
91 | TGTextButton *fPrevEvent; // Go to prev event | |
92 | TGTextButton *fNextEvent; // Go to next event | |
93 | TGTextButton *fLastEvent; // Go to last event | |
94 | TGTextButton *fRefresh; // Refresh event-file state | |
164d3d29 | 95 | TGTextButton *fMarkEvent; // Mark current event |
80547f2d | 96 | |
97 | TGNumberEntry *fEventId; // Display/edit current event id | |
98 | TGLabel *fInfoLabel; // Display last available event id | |
99 | ||
100 | TGCheckButton *fAutoLoad; // Check-box for automatic loading of events | |
101 | TEveGValuator *fAutoLoadTime; // Time for automatic loading of events | |
f76c9e9b | 102 | |
969d3431 | 103 | TGComboBox *fTrigSel; // Trigger selection combo box |
104 | ||
80547f2d | 105 | TGTextView *fEventInfo; // Text box with event info |
f76c9e9b | 106 | |
80547f2d | 107 | TGTextButton* MkTxtButton(TGCompositeFrame* p, const char* txt, Int_t width=0, |
108 | Int_t lo=0, Int_t ro=0, Int_t to=0, Int_t bo=0); | |
109 | TGLabel* MkLabel(TGCompositeFrame* p, const char* txt, Int_t width, | |
110 | Int_t lo=0, Int_t ro=0, Int_t to=2, Int_t bo=0); | |
12365217 | 111 | |
f76c9e9b | 112 | private: |
80547f2d | 113 | AliEveEventManagerWindow(const AliEveEventManagerWindow&); // Not implemented |
114 | AliEveEventManagerWindow& operator=(const AliEveEventManagerWindow&); // Not implemented | |
f76c9e9b | 115 | |
80547f2d | 116 | ClassDef(AliEveEventManagerWindow, 0); // GUI window for AliEveEventManager. |
f76c9e9b | 117 | }; |
118 | ||
5655e9ce | 119 | #endif |