|
Last change
on this file since 1118 was 579, checked in by magicsol, 25 years ago |
|
Minnor changes due to some renaming of files.
|
|
File size:
2.2 KB
|
| Line | |
|---|
| 1 | #ifndef __MGTriggerSignal__
|
|---|
| 2 | #define __MGTriggerSignal__
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 | #include <stdlib.h>
|
|---|
| 6 | #include <iostream.h>
|
|---|
| 7 |
|
|---|
| 8 | #include <TROOT.h>
|
|---|
| 9 | #include <TApplication.h>
|
|---|
| 10 | #include <TVirtualX.h>
|
|---|
| 11 |
|
|---|
| 12 | #include <TGListBox.h>
|
|---|
| 13 | #include <TGClient.h>
|
|---|
| 14 | #include <TGFrame.h>
|
|---|
| 15 | #include <TGIcon.h>
|
|---|
| 16 | #include <TGLabel.h>
|
|---|
| 17 | #include <TGButton.h>
|
|---|
| 18 | #include <TGTextEntry.h>
|
|---|
| 19 | #include <TGMsgBox.h>
|
|---|
| 20 | #include <TGMenu.h>
|
|---|
| 21 | #include <TGCanvas.h>
|
|---|
| 22 | #include <TGComboBox.h>
|
|---|
| 23 | #include <TGTab.h>
|
|---|
| 24 | #include <TGSlider.h>
|
|---|
| 25 | #include <TGDoubleSlider.h>
|
|---|
| 26 | #include <TGFileDialog.h>
|
|---|
| 27 | #include <TRootEmbeddedCanvas.h>
|
|---|
| 28 | #include <TCanvas.h>
|
|---|
| 29 | #include <TH1.h>
|
|---|
| 30 | #include <TH2.h>
|
|---|
| 31 | #include <TRandom.h>
|
|---|
| 32 | #include <TSystem.h>
|
|---|
| 33 | #include <TEnv.h>
|
|---|
| 34 |
|
|---|
| 35 | #include "MMcEvt.hxx"
|
|---|
| 36 |
|
|---|
| 37 |
|
|---|
| 38 | enum ETestCommandIdentifiers {
|
|---|
| 39 | M_FILE_OPEN = 201,
|
|---|
| 40 | M_FILE_SAVE,
|
|---|
| 41 | M_FILE_SAVEAS,
|
|---|
| 42 | M_FILE_CLOSE,
|
|---|
| 43 | M_FILE_PRINT,
|
|---|
| 44 | M_FILE_EXIT ,
|
|---|
| 45 |
|
|---|
| 46 | M_BUTTON_CLOSE,
|
|---|
| 47 | M_BUTTON_EXIT,
|
|---|
| 48 |
|
|---|
| 49 | M_PREV_CHANNELS,
|
|---|
| 50 | M_NEXT_CHANNELS,
|
|---|
| 51 | M_ANALOG,
|
|---|
| 52 | M_DIGITAL,
|
|---|
| 53 | M_BEIDE
|
|---|
| 54 | };
|
|---|
| 55 |
|
|---|
| 56 |
|
|---|
| 57 |
|
|---|
| 58 |
|
|---|
| 59 |
|
|---|
| 60 | class MGTriggerSignal : public TGTransientFrame {
|
|---|
| 61 |
|
|---|
| 62 | private:
|
|---|
| 63 | Int_t iAnaSigs ;
|
|---|
| 64 | Int_t iDigSigs ;
|
|---|
| 65 | Int_t iPage ;
|
|---|
| 66 |
|
|---|
| 67 | TObjArray *ListeA ;
|
|---|
| 68 | TObjArray *ListeD ;
|
|---|
| 69 | TObjArray *Liste ;
|
|---|
| 70 |
|
|---|
| 71 | TGCompositeFrame *fFrame ;
|
|---|
| 72 | TGButton *fCloseButton;
|
|---|
| 73 | TGButton *fExitButton;
|
|---|
| 74 |
|
|---|
| 75 | TGCompositeFrame *fControl ;
|
|---|
| 76 | TGButton *fPrevChannels;
|
|---|
| 77 | TGLabel *lPageAll ;
|
|---|
| 78 | TGLabel *lPage ;
|
|---|
| 79 | TGButton *fNextChannels;
|
|---|
| 80 | TGButton *fAnalog;
|
|---|
| 81 | TGButton *fDigital;
|
|---|
| 82 | TGButton *fBeide;
|
|---|
| 83 |
|
|---|
| 84 | TGCompositeFrame *fMcInfo ;
|
|---|
| 85 |
|
|---|
| 86 | TRootEmbeddedCanvas *fCanvasWindow ;
|
|---|
| 87 | TGCompositeFrame *fContainer ;
|
|---|
| 88 | TCanvas *tcan ;
|
|---|
| 89 |
|
|---|
| 90 | TGMenuBar *fMenuBar;
|
|---|
| 91 | TGPopupMenu *fMenuFile;
|
|---|
| 92 |
|
|---|
| 93 |
|
|---|
| 94 | public:
|
|---|
| 95 | MGTriggerSignal(const MMcEvt *McInfo,
|
|---|
| 96 | const TObjArray *aList,
|
|---|
| 97 | const TObjArray *dList,
|
|---|
| 98 | const TGWindow *p, const TGWindow *main, UInt_t w, UInt_t h,
|
|---|
| 99 | UInt_t options = kMainFrame | kVerticalFrame);
|
|---|
| 100 | virtual ~MGTriggerSignal();
|
|---|
| 101 |
|
|---|
| 102 | virtual void CloseWindow();
|
|---|
| 103 |
|
|---|
| 104 | void DisplayChannels( TObjArray *disList ) ;
|
|---|
| 105 |
|
|---|
| 106 | virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
|
|---|
| 107 | };
|
|---|
| 108 |
|
|---|
| 109 | #endif
|
|---|
| 110 |
|
|---|
| 111 |
|
|---|
| 112 |
|
|---|
| 113 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.