]>
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" | |
14 | ||
f76c9e9b | 15 | class AliEveEventManager; |
319f3084 | 16 | class TEveGValuator; |
f76c9e9b | 17 | class TGCheckButton; |
319f3084 | 18 | class TGTextView; |
f76c9e9b | 19 | class TGNumberEntry; |
20 | class TGLabel; | |
5655e9ce | 21 | |
22 | //______________________________________________________________________________ | |
23 | // Short description of AliEveEventManagerEditor | |
24 | // | |
25 | ||
26 | class AliEveEventManagerEditor : public TGedFrame | |
27 | { | |
28 | public: | |
29 | AliEveEventManagerEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30, | |
30 | UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground()); | |
31 | virtual ~AliEveEventManagerEditor() {} | |
32 | ||
33 | virtual void SetModel(TObject* obj); | |
34 | ||
35 | // Declare callback/slot methods | |
319f3084 | 36 | void DoSetAutoLoad(); |
37 | void DoSetAutoLoadTime(); | |
38 | void DoPrevEvent(); | |
39 | void DoNextEvent(); | |
ca49b003 | 40 | void DoLastEvent(); |
41 | void DoRefresh(); | |
5655e9ce | 42 | |
43 | protected: | |
44 | AliEveEventManager *fM; // Model object. | |
45 | ||
46 | // Declare widgets | |
319f3084 | 47 | TGCheckButton *fAutoLoad; // Check-box for automatic loading of events |
48 | TEveGValuator *fAutoLoadTime; // Time for automatic loading of events | |
49 | ||
50 | TGTextButton *fNextEvent; // Load next event | |
51 | TGTextButton *fPrevEvent; // Load previous event | |
ca49b003 | 52 | TGTextButton *fLastEvent; // Load last event |
53 | TGTextButton *fRefresh; // Refresh opened data-files (reopen) | |
319f3084 | 54 | |
55 | TGTextView *fEventInfo; // Text box with event info | |
5655e9ce | 56 | |
57 | private: | |
58 | AliEveEventManagerEditor(const AliEveEventManagerEditor&); // Not implemented | |
59 | AliEveEventManagerEditor& operator=(const AliEveEventManagerEditor&); // Not implemented | |
60 | ||
61 | ClassDef(AliEveEventManagerEditor, 0); // GUI editor for AliEveEventManager. | |
62 | }; | |
63 | ||
f76c9e9b | 64 | |
65 | class AliEveEventManagerWindow : public TGMainFrame | |
66 | { | |
67 | public: | |
68 | AliEveEventManagerWindow(); | |
69 | virtual ~AliEveEventManagerWindow(); | |
70 | ||
71 | void DoFirstEvent(); | |
72 | void DoPrevEvent(); | |
73 | void DoNextEvent(); | |
74 | void DoLastEvent(); | |
75 | ||
76 | void DoSetEvent(); | |
77 | ||
78 | void Update(); | |
79 | ||
80 | protected: | |
81 | TGTextButton *fFirstEvent; | |
82 | TGTextButton *fPrevEvent; | |
83 | TGTextButton *fNextEvent; | |
84 | TGTextButton *fLastEvent; | |
85 | ||
86 | TGNumberEntry *fEventId; | |
87 | TGLabel *fInfoLabel; | |
88 | ||
12365217 | 89 | TGTextView *fEventInfo; // Text box with event info |
90 | ||
f76c9e9b | 91 | private: |
92 | AliEveEventManagerWindow(const AliEveEventManagerWindow&); // Not implemented | |
93 | AliEveEventManagerWindow& operator=(const AliEveEventManagerWindow&); // Not implemented | |
94 | ||
95 | ClassDef(AliEveEventManagerWindow, 0); // GUI window for AliEveEventManager. | |
96 | }; | |
97 | ||
5655e9ce | 98 | #endif |