source: trunk/MagicSoft/Mars/meventdisp/MGEvtDisplay.h@ 1386

Last change on this file since 1386 was 1385, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 1.7 KB
Line 
1#ifndef MARS_MGEvtDisplay
2#define MARS_MGEvtDisplay
3
4#ifndef MARS_MAGIC
5#include "MAGIC.h"
6#endif
7
8#ifndef ROOT_TGFrame
9#include <TGFrame.h>
10#endif
11
12class TList;
13class TCanvas;
14class TGLabel;
15class TGTextEntry;
16
17class MEvtLoop;
18class MParList;
19class MTaskList;
20class MReadTree;
21
22class MGEvtDisplay : public TGTransientFrame
23{
24private:
25 //
26 // GUI stuff
27 //
28 TGLabel *fNumOfEvts;
29 TGLabel *fEvtInfo;
30 TGTextEntry *fTxtEvtNr;
31
32 void AddMenuBar();
33 void AddTopFramePart1(TGVerticalFrame *frame,
34 const char *filename,
35 const char *treename);
36 void AddTopFramePart2(TGVerticalFrame *frame);
37 void AddMidFrame(TGHorizontalFrame *frame);
38 void AddLowFrame(TGHorizontalFrame *frame);
39
40 void AddFrames(const char *filename, const char *treename);
41
42 void SaveAsDialog() const;
43 void ReadinEvent();
44
45 Bool_t fInitOk;
46
47protected:
48 TList *fList;
49 MEvtLoop *fEvtLoop;
50
51 TCanvas *fCanvas;
52
53 TGCompositeFrame *fTab1;
54 TGCompositeFrame *fTab2;
55
56 TGVerticalFrame *fMidFrame;
57
58 MParList *GetParList() const;
59 MTaskList *GetTaskList() const;
60 MReadTree *GetReader() const;
61
62 void ReadFirstEvent();
63 Bool_t IsInitOk() { return fInitOk; }
64
65 void UpdateMcLabel();
66
67 virtual void UpdateDisplay() = 0;
68
69public:
70 MGEvtDisplay(const char *fname, const char *tname,
71 const TGWindow *p, const TGWindow *main,
72 UInt_t w, UInt_t h);
73
74 ~MGEvtDisplay();
75
76 void CloseWindow();
77
78 virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
79
80 ClassDef(MGEvtDisplay, 0) // base class to display something event by event
81};
82
83#endif
84
85
Note: See TracBrowser for help on using the repository browser.