Ignore:
Timestamp:
11/16/01 15:59:05 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r1082 r1086  
    2828#include <TGButton.h>       // TGTextButton
    2929
     30#include "MGList.h"
    3031#include "MGFadcDisp.h"
    3132
     
    3334
    3435enum {
    35   M_BUT_DISP1_EVT,
    36   M_BUT_DISP1_PED,
    37   M_BUT_DISP1_CAL
     36  kButDispEvt          = 0x100,
     37  kButDispPedestal     = 0x101,
     38  kButDispCalibration  = 0x102
    3839};
    3940
     
    4243: MBrowser(main, p, w, h)
    4344{
    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);
     45    TGTextButton *fadcevt = new TGTextButton(fTop1, "FADC Disp for Events",  kButDispEvt);
     46    TGTextButton *fadcped = new TGTextButton(fTop1, "FADC Disp for PedEvts", kButDispPedestal);
     47    TGTextButton *fadccal = new TGTextButton(fTop1, "FADC Disp for CalEvts", kButDispCalibration);
    4748
    4849    fadcevt->Associate(this);
     
    8283    switch (parm1)
    8384    {
    84     case M_BUT_DISP1_EVT:
    85     case M_BUT_DISP1_PED:
    86     case M_BUT_DISP1_CAL:
     85    case kButDispEvt:
     86    case kButDispPedestal:
     87    case kButDispCalibration:
    8788        if (!InputFileSelected())
    8889        {       
     
    9394        switch (parm1)
    9495        {
    95         case M_BUT_DISP1_EVT:
     96        case kButDispEvt:
    9697            new MGFadcDisp(fInputFile, "Events",
    9798                           fClient->GetRoot(), this, 600, 500);
    9899            return kTRUE;
    99100
    100         case M_BUT_DISP1_PED:
     101        case kButDispPedestal:
    101102            new MGFadcDisp(fInputFile , "PedEvts",
    102103                           fClient->GetRoot(), this, 600, 500);
    103104            return kTRUE;
    104105
    105         case M_BUT_DISP1_CAL:
     106        case kButDispCalibration:
    106107            new MGFadcDisp(fInputFile , "CalEvts",
    107108                           fClient->GetRoot(), this, 600, 500);
Note: See TracChangeset for help on using the changeset viewer.