Line | |
---|
1 | #ifndef MGDISPLAYADC_H
|
---|
2 | #define MGDISPLAYADC_H
|
---|
3 |
|
---|
4 | #ifndef ROOT_TFrame
|
---|
5 | #include <TGFrame.h> // TGTransientFrame
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class MHistosAdc;
|
---|
9 | class TGListBox;
|
---|
10 | class TGTextButton;
|
---|
11 | class TRootEmbeddedCanvas;
|
---|
12 | class TCanvas;
|
---|
13 | class TGVSlider;
|
---|
14 | class TGRadioButton;
|
---|
15 |
|
---|
16 | class MGDisplayAdc : public TGTransientFrame {
|
---|
17 | private:
|
---|
18 |
|
---|
19 | MHistosAdc *fHists; // Pointer to Container with the histograms
|
---|
20 |
|
---|
21 | // Create a main frame with a number of different buttons.
|
---|
22 | //
|
---|
23 | TGCompositeFrame *fFrameTop ; // top part of the main window
|
---|
24 | TGCompositeFrame *fFrameLow ; // low part of the main window
|
---|
25 |
|
---|
26 | TGVerticalFrame *fFT1, *fFT2, *fFT3 ;
|
---|
27 |
|
---|
28 | TGListBox *fHistoList ;
|
---|
29 | TGTextButton *fButtonPrev, *fButtonNext , *fButtonReset ;
|
---|
30 |
|
---|
31 | TRootEmbeddedCanvas *fECanv , *fECanvLow;
|
---|
32 |
|
---|
33 | TGTextButton *fButtonSave, *fButtonPrint, *fButtonPrintAll, *fButtonClose ;
|
---|
34 |
|
---|
35 | TCanvas *fCanv ;
|
---|
36 |
|
---|
37 |
|
---|
38 | //for sliders
|
---|
39 |
|
---|
40 | TGVSlider *fVslider1;
|
---|
41 |
|
---|
42 |
|
---|
43 |
|
---|
44 |
|
---|
45 | public:
|
---|
46 |
|
---|
47 | //for radio buttons
|
---|
48 |
|
---|
49 | TGRadioButton *fRadio[3];
|
---|
50 |
|
---|
51 |
|
---|
52 | Int_t fHistoType;
|
---|
53 | Bool_t fHistoLock;
|
---|
54 | //
|
---|
55 |
|
---|
56 |
|
---|
57 | TGPicture *fPicture;
|
---|
58 | TCanvas *fCanvas;
|
---|
59 |
|
---|
60 | MGDisplayAdc(MHistosAdc *fHists ,
|
---|
61 | const TGWindow *p, const TGWindow *main,
|
---|
62 | UInt_t w, UInt_t h,
|
---|
63 | UInt_t options = kMainFrame | kVerticalFrame ) ;
|
---|
64 |
|
---|
65 | ~MGDisplayAdc();
|
---|
66 |
|
---|
67 | void CloseWindow() ;
|
---|
68 |
|
---|
69 |
|
---|
70 | Bool_t BuildHistoList(Int_t type=1) ;
|
---|
71 |
|
---|
72 | Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
|
---|
73 |
|
---|
74 | } ;
|
---|
75 |
|
---|
76 | #endif
|
---|
77 |
|
---|
78 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.