Subversion Repositories f9daq

Rev

Rev 180 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 180 Rev 208
Line 223... Line 223...
223
        TGComboBox *fTrgch;
223
        TGComboBox *fTrgch;
224
        TGVerticalFrame   *fHframe0;
224
        TGVerticalFrame   *fHframe0;
225
        TGTextButton *fStart;
225
        TGTextButton *fStart;
226
        TGTextButton *fSelect;
226
        TGTextButton *fSelect;
227
        TGTextEntry *fFile;
227
        TGTextEntry *fFile;
-
 
228
        TGNumberEntry *fFirst;
228
        TGNumberEntry *fNeve;
229
        TGNumberEntry *fNeve;
229
        TGNumberEntry *fUpdFrq;
230
        TGNumberEntry *fUpdFrq;
230
        TGTextBuffer        *fFileText;
231
        TGTextBuffer        *fFileText;
231
 
232
 
232
        TChannel * fChannel[4];
233
        TChannel * fChannel[4];
Line 274... Line 275...
274
 
275
 
275
 
276
 
276
 
277
 
277
 
278
 
278
        int nev=fNeve->GetIntNumber();
279
        int nev=fNeve->GetIntNumber();
-
 
280
                int first=fFirst->GetIntNumber();
279
        int updfrq=fUpdFrq->GetIntNumber();;
281
        int updfrq=fUpdFrq->GetIntNumber();;
280
 
282
 
281
        int trgch=fTrgch->GetSelected();
283
        int trgch=fTrgch->GetSelected();
282
        drs * d = new drs(fFileText->GetString(), nch, c, trgch, nev, updfrq  );
284
        drs * d = new drs(fFileText->GetString(), nch, c, trgch,first, nev, updfrq  );
283
 
285
 
284
 
286
 
285
}
287
}
286
void TDrsGui::LoadIni(){
288
void TDrsGui::LoadIni(){
287
        static TString dir(".");
289
        static TString dir(".");
Line 380... Line 382...
380
                sprintf(tmp, "Ch %i", i);
382
                sprintf(tmp, "Ch %i", i);
381
                fTrgch->AddEntry(tmp, i);
383
                fTrgch->AddEntry(tmp, i);
382
        }
384
        }
383
        fTrgch->Resize(50, 20);
385
        fTrgch->Resize(50, 20);
384
        fTrgch->Select(0);
386
        fTrgch->Select(0);
385
        TGLabel *fLTrgch = new TGLabel(fStartFrame, "Trg Channel:");
387
        TGLabel *fLTrgch = new TGLabel(fStartFrame, "Trg Chan:");
386
        fNeve = new TGNumberEntry(fStartFrame,  5000, 5,999, TGNumberFormat::kNESInteger, TGNumberFormat::kNEANonNegative );
388
        fNeve = new TGNumberEntry(fStartFrame,  5000, 5,999, TGNumberFormat::kNESInteger, TGNumberFormat::kNEANonNegative );
387
        TGLabel *fLNeve = new TGLabel(fStartFrame, "Number of events:");
389
        TGLabel *fLNeve = new TGLabel(fStartFrame, "Number of ev.:");
-
 
390
               
-
 
391
                fFirst = new TGNumberEntry(fStartFrame,  0, 5,999, TGNumberFormat::kNESInteger, TGNumberFormat::kNEANonNegative );
-
 
392
        TGLabel *fLFirst = new TGLabel(fStartFrame, "First ev.:");
388
 
393
 
389
        fUpdFrq = new TGNumberEntry(fStartFrame,  50, 5,999, TGNumberFormat::kNESInteger, TGNumberFormat::kNEANonNegative );
394
        fUpdFrq = new TGNumberEntry(fStartFrame,  50, 5,999, TGNumberFormat::kNESInteger, TGNumberFormat::kNEANonNegative );
390
        TGLabel *fLUpdFrq = new TGLabel(fStartFrame, "Update Frequency:");
395
        TGLabel *fLUpdFrq = new TGLabel(fStartFrame, "Update Freq.:");
391
 
396
 
392
        fStartFrame->AddFrame(fLTrgch, fBly);
397
        fStartFrame->AddFrame(fLTrgch, fBly);
393
        fStartFrame->AddFrame(fTrgch, fBly);
398
        fStartFrame->AddFrame(fTrgch, fBly);
394
        fStartFrame->AddFrame(fLNeve, fBly);
399
        fStartFrame->AddFrame(fLNeve, fBly);
395
        fStartFrame->AddFrame(fNeve, fBly);
400
        fStartFrame->AddFrame(fNeve, fBly);
-
 
401
                fStartFrame->AddFrame(fLFirst, fBly);
-
 
402
        fStartFrame->AddFrame(fFirst, fBly);
396
        fStartFrame->AddFrame(fLUpdFrq, fBly);
403
        fStartFrame->AddFrame(fLUpdFrq, fBly);
397
        fStartFrame->AddFrame(fUpdFrq, fBly);
404
        fStartFrame->AddFrame(fUpdFrq, fBly);
398
 
405
 
399
        fHframe0->AddFrame(fStartFrame, fBly);
406
        fHframe0->AddFrame(fStartFrame, fBly);
400
 
407