Ignore:
Timestamp:
09/26/01 12:22:51 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mmain/MEvtDisp.cc

    r860 r947  
    3939
    4040MEvtDisp::MEvtDisp(const TGWindow *main, const TGWindow *p,
    41                                  const UInt_t w, const UInt_t h)
     41                   const UInt_t w, const UInt_t h)
    4242: MBrowser(main, p, w, h)
    4343{
     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);
    4447
    45     fButFadcDispEvts = new TGTextButton(fTop1, "FADC Disp for Events", M_BUT_DISP1_EVT );
    46     fButFadcDispEvts->Associate(this) ;
    47     fTop1->AddFrame (fButFadcDispEvts, new TGLayoutHints(kLHintsTop | kLHintsLeft, 10, 10, 5, 5) );
     48    fadcevt->Associate(this);
     49    fadcped->Associate(this);
     50    fadccal->Associate(this);
    4851
    49     fButFadcDispPed  = new TGTextButton(fTop1, "FADC Disp for PedEvts", M_BUT_DISP1_PED );
    50     fButFadcDispPed->Associate(this) ;
    51     fTop1->AddFrame (fButFadcDispPed, new TGLayoutHints(kLHintsTop | kLHintsLeft, 10, 10, 5, 5) );
     52    fList->Add(fadcevt);
     53    fList->Add(fadcped);
     54    fList->Add(fadccal);
    5255
    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);
    5662
    5763    MapSubwindows();
     
    6369
    6470    MapWindow();
    65 }
    66 
    67 MEvtDisp::~MEvtDisp()
    68 {
    69     delete fButFadcDispCal;
    70     delete fButFadcDispPed;
    71     delete fButFadcDispEvts;
    7271}
    7372
     
    10099
    101100        case M_BUT_DISP1_PED:
    102             new MGFadcDisp( fInputFile , "PedEvts",
    103                             fClient->GetRoot(), this, 600, 500 ) ;
     101            new MGFadcDisp(fInputFile , "PedEvts",
     102                           fClient->GetRoot(), this, 600, 500);
    104103            return kTRUE;
    105104
    106105        case M_BUT_DISP1_CAL:
    107             new MGFadcDisp( fInputFile , "CalEvts",
    108                             fClient->GetRoot(), this, 600, 500 ) ;
     106            new MGFadcDisp(fInputFile , "CalEvts",
     107                           fClient->GetRoot(), this, 600, 500);
    109108            return kTRUE;
    110109        }
Note: See TracChangeset for help on using the changeset viewer.