]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MONITOR/AliMonitorControl.h
Classes for reading raw data moved to the RAW module. New on-line MONITORING module...
[u/mrichter/AliRoot.git] / MONITOR / AliMonitorControl.h
1 #ifndef ALIMONITORCONTROL_H
2 #define ALIMONITORCONTROL_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id$ */
7
8 #include <TGFrame.h>
9 #include <TGMenu.h>
10 #include <TGButton.h>
11 #include <TGLabel.h>
12 #include <TGTextEntry.h>
13 #include <RQ_OBJECT.h>
14 #include <TSysEvtHandler.h>
15 #include <TTimer.h>
16 #include "AliMonitorProcess.h"
17
18
19 class AliMonitorControl : public TObject {
20
21 RQ_OBJECT("AliMonitorControl")
22
23 public:
24   AliMonitorControl(AliMonitorProcess* process);
25   virtual ~AliMonitorControl();
26
27   void               HandleMenu(Int_t id);
28   void               DoReset();
29   void               DoStartStop();
30
31 private:
32   virtual Bool_t     HandleTimer(TTimer* timer);
33
34   void               UpdateStatus();
35
36   AliMonitorProcess* fMonitorProcess;
37
38   ULong_t            fColorStatus;
39   ULong_t            fColorStart;
40   ULong_t            fColorStop;
41
42   TGMainFrame*       fMain;
43
44   TGLayoutHints*     fMenuBarLayout;
45   TGLayoutHints*     fMenuBarItemLayout;
46   TGLayoutHints*     fMenuBarHelpLayout;
47   TGPopupMenu*       fMenuFile;
48   TGPopupMenu*       fMenuOptions;
49   TGPopupMenu*       fMenuHelp;
50   TGMenuBar*         fMenuBar;
51
52   TGLayoutHints*     fFrameLayout;
53   TGVerticalFrame*   fFrame;
54   TGLayoutHints*     fStatusLayout;
55   TGLayoutHints*     fStatusFrameLayout;
56
57   TGHorizontalFrame* fStatus1Frame;
58   TGLabel*           fRunNumberLabel;
59   TGTextEntry*       fRunNumber;
60   TGLabel*           fEventNumberLabel;
61   TGTextEntry*       fEventNumber;
62
63   TGHorizontalFrame* fStatus2Frame;
64   TGLabel*           fStatusLabel;
65   TGTextEntry*       fStatus;
66
67   TGHorizontalFrame* fStatus3Frame;
68   TGLabel*           fEventsLabel;
69   TGTextEntry*       fEvents;
70   TGLabel*           fClientsLabel;
71   TGTextEntry*       fClients;
72
73   TGLayoutHints*     fButtonFrameLayout;
74   TGHorizontalFrame* fButtonFrame;
75   TGLayoutHints*     fButtonLayout;
76   TGTextButton*      fResetButton;
77   TGTextButton*      fStartStopButton;
78   Bool_t             fStartButtonStatus;
79
80   Bool_t             fTerminating;
81
82   TTimer*            fTimer;
83
84   ClassDef(AliMonitorControl, 0)   // class for controlling the AliMonitorProcess
85 };
86  
87
88 #endif
89
90
91
92
93
94
95
96
97