Changeset 947 for trunk/MagicSoft/Mars/mmain/MEvtDisp.cc
- Timestamp:
- 09/26/01 12:22:51 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mmain/MEvtDisp.cc
r860 r947 39 39 40 40 MEvtDisp::MEvtDisp(const TGWindow *main, const TGWindow *p, 41 41 const UInt_t w, const UInt_t h) 42 42 : MBrowser(main, p, w, h) 43 43 { 44 TGTextButton *fadcevt = new TGTextButton(fTop1, "FADC Disp for Events", M_BUT_DISP1_EVT); 45 TGTextButton *fadcped = new TGTextButton(fTop1, "FADC Disp for PedEvts", M_BUT_DISP1_PED); 46 TGTextButton *fadccal = new TGTextButton(fTop1, "FADC Disp for CalEvts", M_BUT_DISP1_CAL); 44 47 45 f ButFadcDispEvts = new TGTextButton(fTop1, "FADC Disp for Events", M_BUT_DISP1_EVT);46 f ButFadcDispEvts->Associate(this);47 f Top1->AddFrame (fButFadcDispEvts, new TGLayoutHints(kLHintsTop | kLHintsLeft, 10, 10, 5, 5));48 fadcevt->Associate(this); 49 fadcped->Associate(this); 50 fadccal->Associate(this); 48 51 49 f ButFadcDispPed = new TGTextButton(fTop1, "FADC Disp for PedEvts", M_BUT_DISP1_PED);50 f ButFadcDispPed->Associate(this);51 f Top1->AddFrame (fButFadcDispPed, new TGLayoutHints(kLHintsTop | kLHintsLeft, 10, 10, 5, 5));52 fList->Add(fadcevt); 53 fList->Add(fadcped); 54 fList->Add(fadccal); 52 55 53 fButFadcDispCal = new TGTextButton(fTop1, "FADC Disp for CalEvts", M_BUT_DISP1_CAL ); 54 fButFadcDispCal->Associate(this) ; 55 fTop1->AddFrame (fButFadcDispCal, new TGLayoutHints(kLHintsTop | kLHintsLeft, 10, 10, 5, 5) ); 56 TGLayoutHints *laybut = new TGLayoutHints(kLHintsTop|kLHintsLeft, 10, 10, 5, 5); 57 fList->Add(laybut); 58 59 fTop1->AddFrame(fadcevt, laybut); 60 fTop1->AddFrame(fadcped, laybut); 61 fTop1->AddFrame(fadccal, laybut); 56 62 57 63 MapSubwindows(); … … 63 69 64 70 MapWindow(); 65 }66 67 MEvtDisp::~MEvtDisp()68 {69 delete fButFadcDispCal;70 delete fButFadcDispPed;71 delete fButFadcDispEvts;72 71 } 73 72 … … 100 99 101 100 case M_BUT_DISP1_PED: 102 new MGFadcDisp( 103 fClient->GetRoot(), this, 600, 500 );101 new MGFadcDisp(fInputFile , "PedEvts", 102 fClient->GetRoot(), this, 600, 500); 104 103 return kTRUE; 105 104 106 105 case M_BUT_DISP1_CAL: 107 new MGFadcDisp( 108 fClient->GetRoot(), this, 600, 500 );106 new MGFadcDisp(fInputFile , "CalEvts", 107 fClient->GetRoot(), this, 600, 500); 109 108 return kTRUE; 110 109 }
Note:
See TracChangeset
for help on using the changeset viewer.