Changeset 958 for trunk/MagicSoft/Mars/mdatacheck/MGDisplayAdc.h
- Timestamp:
- 09/28/01 15:52:10 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mdatacheck/MGDisplayAdc.h
r698 r958 5 5 #include <TGFrame.h> // TGTransientFrame 6 6 #endif 7 #ifndef ROOT_TGListBox8 #include <TGListBox.h> // TGListBox9 #endif10 #ifndef ROOT_TGSlider11 #include <TGSlider.h> // TGVSlider12 #endif13 7 14 #ifndef MHFADCCAM_H 15 #include "MHFadcCam.h" 16 #endif 8 class TList; 9 class TCanvas; 17 10 11 class MHFadcCam; 12 13 class TGVSlider; 14 class TGListBox; 18 15 class TGTextButton; 16 class TGRadioButton; 19 17 class TRootEmbeddedCanvas; 20 class TCanvas;21 class TGRadioButton;22 18 23 class MGDisplayAdc : public TGTransientFrame { 24 private: 25 26 MHFadcCam *fHists; // Pointer to Container with the histograms 27 28 // Create a main frame with a number of different buttons. 29 // 30 TGCompositeFrame *fFrameTop ; // top part of the main window 31 TGCompositeFrame *fFrameLow ; // low part of the main window 32 33 TGVerticalFrame *fFT1, *fFT2, *fFT3 ; 34 35 TGListBox *fHistoList ; 36 TGTextButton *fButtonPrev, *fButtonNext , *fButtonReset ; 37 38 TRootEmbeddedCanvas *fECanv , *fECanvLow; 19 class MGDisplayAdc : public TGTransientFrame 20 { 21 private: 22 MHFadcCam *fHists; // Pointer to Container with the histograms 39 23 40 TGTextButton *fButtonSave, *fButtonPrint, *fButtonPrintAll, *fButtonClose ; 41 42 TCanvas *fCanv ; 43 44 45 //for sliders 46 47 TGVSlider *fVslider1; 48 49 void DrawHi(Int_t i) { fHists->DrawHi(i); } 50 void DrawLo(Int_t i) { fHists->DrawLo(i); } 51 void DrawSelectedHi() { DrawHi( GetSelected()-1) ; } 52 void DrawSelectedLo() { DrawLo( GetSelected()-1) ; } 53 Int_t GetSelected() { return fHistoList->GetSelected(); } 54 void SelectSelected() { fHistoList->Select(GetSelected()-1, kTRUE); } 55 void SetSelectedTopEntry() { fHistoList->SetTopEntry(GetSelected()); } 56 void SetSelectedPos() { fVslider1->SetPosition( GetSelected()-1); } 57 58 public: 59 60 //for radio buttons 24 TList *fList; 25 TCanvas *fCanvas; 26 TGVSlider *fSlider; 27 TGListBox *fHistoList; 61 28 62 TGRadioButton *fRadio[3];29 Int_t fHistoType; 63 30 64 65 Int_t fHistoType; 66 Bool_t fHistoLock; 67 // 68 69 70 TGPicture *fPicture; 71 TCanvas *fCanvas; 72 73 MGDisplayAdc(MHFadcCam *fHists , 74 const TGWindow *p, const TGWindow *main, 75 UInt_t w, UInt_t h, 76 UInt_t options = kMainFrame | kVerticalFrame ) ; 77 78 ~MGDisplayAdc(); 79 80 void CloseWindow() ; 81 82 83 Bool_t BuildHistoList(Int_t type=1) ; 84 85 Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2); 86 87 } ; 31 void AddFrameTop(TGHorizontalFrame *frame); 32 void AddFrameLow(TGHorizontalFrame *frame); 33 34 // 35 // Create a main frame with a number of different buttons. 36 // 37 void UpdateHist(); 38 Bool_t BuildHistoList(); 39 40 public: 41 42 MGDisplayAdc(MHFadcCam *fHists , 43 const TGWindow *p, const TGWindow *main, 44 UInt_t w, UInt_t h, 45 UInt_t options = kMainFrame | kVerticalFrame ); 46 47 ~MGDisplayAdc(); 48 49 void CloseWindow(); 50 51 Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2); 52 }; 88 53 89 54 #endif
Note:
See TracChangeset
for help on using the changeset viewer.