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

Last change on this file since 1091 was 1030, checked in by tbretz, 23 years ago
*** empty log message ***
File size: 1.6 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 TGTextEntry *fTxtEvtNr;
30
31 void AddMenuBar();
32 void AddTopFramePart1(TGVerticalFrame *frame,
33 const char *filename,
34 const char *treename);
35 void AddTopFramePart2(TGVerticalFrame *frame);
36 void AddMidFrame(TGHorizontalFrame *frame);
37 void AddLowFrame(TGHorizontalFrame *frame);
38
39 void AddFrames(const char *filename, const char *treename);
40
41 void SaveAsDialog() const;
42 void ReadinEvent();
43
44 Bool_t fInitOk;
45
46protected:
47 TList *fList;
48 MEvtLoop *fEvtLoop;
49
50 TCanvas *fCanvas;
51
52 TGCompositeFrame *fTab1;
53 TGCompositeFrame *fTab2;
54
55 TGVerticalFrame *fMidFrame;
56
57 MParList *GetParList() const;
58 MTaskList *GetTaskList() const;
59 MReadTree *GetReader() const;
60
61 void ReadFirstEvent();
62 Bool_t IsInitOk() { return fInitOk; }
63
64 virtual void UpdateDisplay() = 0;
65
66public:
67 MGEvtDisplay(const char *fname, const char *tname,
68 const TGWindow *p, const TGWindow *main,
69 UInt_t w, UInt_t h);
70
71 ~MGEvtDisplay();
72
73 void CloseWindow();
74
75 virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
76
77 ClassDef(MGEvtDisplay, 0) // base class to display something event by event
78};
79
80#endif
81
82
Note: See TracBrowser for help on using the repository browser.