104 |
cvar = &var; |
cvar = &var; |
105 |
thefigure = &figure; |
thefigure = &figure; |
106 |
// |
// |
107 |
cframe1 = new TGCompositeFrame(this, 280, 40, kVerticalFrame); |
cframe1 = new TGCompositeFrame(this, 280, 60, kVerticalFrame); |
108 |
TGCompositeFrame *cframe2 = new TGCompositeFrame(this, 280, 60, kVerticalFrame); |
TGCompositeFrame *cframe2 = new TGCompositeFrame(this, 280, 60, kVerticalFrame); |
109 |
TGCompositeFrame *cframe3 = new TGCompositeFrame(this, 280, 60, kVerticalFrame); |
TGCompositeFrame *cframe3 = new TGCompositeFrame(this, 280, 60, kVerticalFrame); |
110 |
TGCompositeFrame *cframe4 = new TGCompositeFrame(this, 280, 60, kVerticalFrame); |
TGCompositeFrame *cframe4 = new TGCompositeFrame(this, 280, 60, kVerticalFrame); |
123 |
TGHorizontalFrame *htext4 = new TGHorizontalFrame(jumpf,400,80); |
TGHorizontalFrame *htext4 = new TGHorizontalFrame(jumpf,400,80); |
124 |
TGHorizontalFrame *hframe = new TGHorizontalFrame(this,400,800); |
TGHorizontalFrame *hframe = new TGHorizontalFrame(this,400,800); |
125 |
for (Int_t fr=0; fr<12; fr++) hframedec[fr] = new TGHorizontalFrame(gf, 7, 7); |
for (Int_t fr=0; fr<12; fr++) hframedec[fr] = new TGHorizontalFrame(gf, 7, 7); |
126 |
TGHorizontalFrame *hframe3 = new TGHorizontalFrame(gf2, 280, 40); |
TGHorizontalFrame *hframe3 = new TGHorizontalFrame(gf2, 280, 60); |
127 |
TGHorizontalFrame *hframe4 = new TGHorizontalFrame(gf2,280,10); |
TGHorizontalFrame *hframe4 = new TGHorizontalFrame(gf2,280,10); |
128 |
TGVerticalFrame *hframe5 = new TGVerticalFrame(hframe4, 280, 40); |
TGVerticalFrame *hframe5 = new TGVerticalFrame(hframe4, 280, 60); |
129 |
TGHorizontalFrame *hfrprog = new TGHorizontalFrame(this,400,800); |
TGHorizontalFrame *hfrprog = new TGHorizontalFrame(this,400,800); |
130 |
// |
// |
131 |
TGTextEntry *fText = new TGTextEntry(htext, new TGTextBuffer(20),-1); |
TGTextEntry *fText = new TGTextEntry(htext, new TGTextBuffer(20),-1); |
288 |
fchkinfo = new TGCheckButton(hframe3, "Infos"); |
fchkinfo = new TGCheckButton(hframe3, "Infos"); |
289 |
fchkinfo->Connect("Clicked()","PAMevcontrol",this,"chkinfo()"); |
fchkinfo->Connect("Clicked()","PAMevcontrol",this,"chkinfo()"); |
290 |
if ( cvar->INFOS ) fchkinfo->SetState(kButtonDown); |
if ( cvar->INFOS ) fchkinfo->SetState(kButtonDown); |
291 |
hframe3->AddFrame(fchkinfo, new TGLayoutHints(kLHintsTop | kLHintsLeft | kLHintsCenterY|kLHintsExpandX,0,5,5,5)); |
hframe3->AddFrame(fchkinfo, new TGLayoutHints(kLHintsTop | kLHintsLeft | kLHintsCenterY|kLHintsExpandX,0,1,5,5)); |
292 |
// |
// |
293 |
fchknames = new TGCheckButton(hframe3, "Names"); |
fchknames = new TGCheckButton(hframe3, "Names"); |
294 |
fchknames->Connect("Clicked()","PAMevcontrol",this,"chknames()"); |
fchknames->Connect("Clicked()","PAMevcontrol",this,"chknames()"); |
295 |
if ( cvar->VINFOS ) fchknames->SetState(kButtonDown); |
if ( cvar->VINFOS ) fchknames->SetState(kButtonDown); |
296 |
hframe3->AddFrame(fchknames, new TGLayoutHints(kLHintsTop | kLHintsLeft | kLHintsCenterY|kLHintsExpandX,5,5,5,5)); |
hframe3->AddFrame(fchknames, new TGLayoutHints(kLHintsTop | kLHintsLeft | kLHintsCenterY|kLHintsExpandX,0,1,5,5)); |
297 |
|
|
298 |
fchkpalette = new TGCheckButton(hframe3, "Palette"); |
fchkpalette = new TGCheckButton(hframe3, "Palette"); |
299 |
fchkpalette->Connect("Clicked()","PAMevcontrol",this,"chkpalette()"); |
fchkpalette->Connect("Clicked()","PAMevcontrol",this,"chkpalette()"); |
300 |
if ( cvar->PALETTE) fchkpalette->SetState(kButtonDown); |
if ( cvar->PALETTE) fchkpalette->SetState(kButtonDown); |
301 |
hframe3->AddFrame(fchkpalette, new TGLayoutHints(kLHintsTop | kLHintsLeft | kLHintsCenterY|kLHintsExpandX,10,5,5,5)); |
hframe3->AddFrame(fchkpalette, new TGLayoutHints(kLHintsTop | kLHintsLeft | kLHintsCenterY|kLHintsExpandX,0,2,5,5)); |
302 |
|
|
303 |
|
fchktrigger = new TGCheckButton(hframe3, "Trigger"); |
304 |
|
fchktrigger->Connect("Clicked()","PAMevcontrol",this,"chktrigger()"); |
305 |
|
if ( cvar->PATTRIG) fchktrigger->SetState(kButtonDown); |
306 |
|
hframe3->AddFrame(fchktrigger, new TGLayoutHints(kLHintsTop | kLHintsLeft | kLHintsCenterY|kLHintsExpandX,1,2,5,5)); |
307 |
|
|
308 |
gf2->AddFrame(hframe3, new TGLayoutHints(kLHintsExpandX)); |
gf2->AddFrame(hframe3, new TGLayoutHints(kLHintsExpandX)); |
309 |
// |
// |
310 |
TGVButtonGroup *group = new TGVButtonGroup(hframe4); |
TGVButtonGroup *group = new TGVButtonGroup(hframe4); |
890 |
bwc0->SetState(kButtonDown); |
bwc0->SetState(kButtonDown); |
891 |
bwc1->SetState(kButtonUp); |
bwc1->SetState(kButtonUp); |
892 |
}; |
}; |
893 |
|
if ( cvar->PATTRIG) fchktrigger->SetState(kButtonDown); else fchktrigger->SetState(kButtonUp); |
894 |
if ( cvar->PALETTE) fchkpalette->SetState(kButtonDown); else fchkpalette->SetState(kButtonUp); |
if ( cvar->PALETTE) fchkpalette->SetState(kButtonDown); else fchkpalette->SetState(kButtonUp); |
895 |
if ( cvar->VINFOS ) fchknames->SetState(kButtonDown); else fchknames->SetState(kButtonUp); |
if ( cvar->VINFOS ) fchknames->SetState(kButtonDown); else fchknames->SetState(kButtonUp); |
896 |
if ( cvar->INFOS ) fchkinfo->SetState(kButtonDown); else fchkinfo->SetState(kButtonUp); |
if ( cvar->INFOS ) fchkinfo->SetState(kButtonDown); else fchkinfo->SetState(kButtonUp); |
1343 |
cvar->goon = true; |
cvar->goon = true; |
1344 |
} |
} |
1345 |
|
|
1346 |
|
void PAMevcontrol::chktrigger() { |
1347 |
|
if ( cvar->PATTRIG ) { |
1348 |
|
cvar->PATTRIG = 0; |
1349 |
|
} else { |
1350 |
|
cvar->PATTRIG = 1; |
1351 |
|
}; |
1352 |
|
cvar->i--; |
1353 |
|
cvar->goon = true; |
1354 |
|
} |
1355 |
|
|
1356 |
void PAMevcontrol::next() { |
void PAMevcontrol::next() { |
1357 |
SetSearching(); |
SetSearching(); |
1358 |
if ( cvar->i == cvar->nevents-1 ) { |
if ( cvar->i == cvar->nevents-1 ) { |