]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TPC/TPCutil/AliTPCCalibViewerGUIAlarms.h
ATO-98 addopt include path to the new /home/miranov/AliRoot/TPCdev structure
[u/mrichter/AliRoot.git] / TPC / TPCutil / AliTPCCalibViewerGUIAlarms.h
CommitLineData
949d8707 1
2
3#ifndef AliTPCCalibViewerGUIAlarms_H
4#define AliTPCCalibViewerGUIAlarms_H
5
6/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
7 * See cxx source for full Copyright notice */
8
9/* $Id: AliTPCCalibViewerGUIAlarms.h,v */
10
11///////////////////////////////////////////////////////////////////////////////
12// //
13// GUI for displaying Alarms of type AliTPCCalibQAChecker //
14// //
15///////////////////////////////////////////////////////////////////////////////
16
17#include <TGFrame.h>
18
19class TGListTree;
20class TGListTreeItem;
21class TCanvas;
cc65e4f5 22class TGCanvas;
949d8707 23class TGLabel;
24
25class AliTPCCalibQAChecker;
26class AliTPCCalibViewerGUI;
27class AliTPCCalibViewerGUItime;
28
29class AliTPCCalibViewerGUIAlarms : public TGCompositeFrame {
30public:
31 AliTPCCalibViewerGUIAlarms(const TGWindow *p, UInt_t w, UInt_t h);
32
33 virtual ~AliTPCCalibViewerGUIAlarms();
34
35 void SetCalibChecker(AliTPCCalibQAChecker *checker) {fCalibChecker=checker;}
36 void SetCalibViewerGUI(AliTPCCalibViewerGUI *gui) {fCalibViewerGUI=gui;}
37 void SetCalibViewerGUItime(AliTPCCalibViewerGUItime *gui) {fCalibViewerGUItime=gui;}
38
39 void InitBrowser();
949d8707 40 void UpdateBrowser();
cc65e4f5 41 void ResetBrowser();
42 void OpenAllItems();
949d8707 43
44 static AliTPCCalibViewerGUIAlarms* Show();
45
46 void OnDoubleClick(TGListTreeItem* item, Int_t id);
47 void OnClick(TGListTreeItem* item, Int_t id);
48
37f2177e 49protected:
949d8707 50 AliTPCCalibQAChecker *fCalibChecker; //Calibration checker
51 TGListTree *fAlarmTree; //tree representation of alarms
52 TCanvas *fMainCanvas; //canvas for alarm histogram displaying
53 TGCanvas *fTreeCanvas; //tree canvas
54 TGLabel *fAlarmText; //alarm information
55 //
56 AliTPCCalibViewerGUI *fCalibViewerGUI; //! pointer to gui
57 AliTPCCalibViewerGUItime *fCalibViewerGUItime; //! pointer to gui time
58 //
59 void DrawGUI(const TGWindow */*p*/, UInt_t w, UInt_t h);
60 void AddSubItems(AliTPCCalibQAChecker *fChecker, TGListTreeItem *item);
61 void UpdateSubItem(TGListTreeItem *item);
cc65e4f5 62 void OpenSubItems(TGListTreeItem *item);
949d8707 63
64private:
65 AliTPCCalibViewerGUIAlarms(const AliTPCCalibViewerGUIAlarms &v);
66 AliTPCCalibViewerGUIAlarms &operator = (const AliTPCCalibViewerGUIAlarms &v); // assignment operator
67
68
69 ClassDef(AliTPCCalibViewerGUIAlarms,0);
70};
71
72#endif
73
74