source: branches/start/MagicSoft/Mars/mdatacheck/MGDisplayAdc.h@ 4308

Last change on this file since 4308 was 462, checked in by harald, 24 years ago
Import the files for the datacheck section in this subdir.
File size: 2.1 KB
Line 
1#ifndef MGDISPLAYADC_H
2#define MGDISPLAYADC_H
3
4#include <iostream.h>
5#include <TROOT.h>
6#include <TApplication.h>
7#include <TSystem.h>
8#include <TGClient.h>
9#include <TGButton.h>
10#include <TGMenu.h>
11#include <TGTab.h>
12#include <TGListBox.h>
13#include <TGPicture.h>
14#include <TRootEmbeddedCanvas.h>
15#include <TCanvas.h>
16#include <TGFSContainer.h>
17#include <TGMsgBox.h>
18#include <TVirtualX.h>
19#include <TGFrame.h>
20#include <TGTextEntry.h>
21#include <TGSlider.h>
22#include <TGDoubleSlider.h>
23#include <TGScrollBar.h>
24#include <TSlider.h>
25
26
27#include <TVirtualX.h>
28#include <TGClient.h>
29
30#include "MHistosAdc.h"
31
32 class MHistosAdc;
33
34
35
36enum ComIdentDisplayAdc {
37 M_BUTTON_SAVE,
38 M_BUTTON_PRINT,
39 M_BUTTON_PRINTALL,
40 M_BUTTON_CLOSE ,
41
42 M_BUTTON_PREV,
43 M_BUTTON_NEXT,
44
45 M_LIST_HISTO,
46 M_RADIO_HIGH,
47 M_RADIO_LOW,
48 M_RADIO_LH,
49 M_BUTTON_RESET,
50 M_VSId1
51} ;
52
53class MGDisplayAdc : public TGTransientFrame {
54 private:
55
56 MHistosAdc *fHists; // Pointer to Container with the histograms
57
58 // Create a main frame with a number of different buttons.
59 //
60 TGCompositeFrame *fFrameTop ; // top part of the main window
61 TGCompositeFrame *fFrameLow ; // low part of the main window
62
63 TGVerticalFrame *fFT1, *fFT2, *fFT3 ;
64
65 TGListBox *fHistoList ;
66 TGTextButton *fButtonPrev, *fButtonNext , *fButtonReset ;
67
68 TRootEmbeddedCanvas *fECanv , *fECanvLow;
69
70 TGTextButton *fButtonSave, *fButtonPrint, *fButtonPrintAll, *fButtonClose ;
71
72 TCanvas *fCanv ;
73
74
75 //for sliders
76
77 TGVSlider *fVslider1;
78
79
80
81
82 public:
83
84 //for radio buttons
85
86 TGRadioButton *fRadio[3];
87
88
89 Int_t fHistoType;
90 Bool_t fHistoLock;
91 //
92
93
94 TGPicture *fPicture;
95 TCanvas *fCanvas;
96
97 MGDisplayAdc(MHistosAdc *fHists ,
98 const TGWindow *p, const TGWindow *main,
99 UInt_t w, UInt_t h,
100 UInt_t options = kMainFrame | kVerticalFrame ) ;
101
102 ~MGDisplayAdc();
103
104 void CloseWindow() ;
105
106
107 Bool_t BuildHistoList(Int_t type=1) ;
108
109 Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
110
111} ;
112
113#endif
114
115
Note: See TracBrowser for help on using the repository browser.