/[PAMELA software]/eventviewer/flight/src/FEVpamevcontrol.cpp
ViewVC logotype

Diff of /eventviewer/flight/src/FEVpamevcontrol.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by mocchiut, Fri Mar 30 11:16:43 2007 UTC revision 1.5 by mocchiut, Thu Nov 8 11:05:35 2007 UTC
# Line 267  PAMevcontrol::PAMevcontrol(const TGWindo Line 267  PAMevcontrol::PAMevcontrol(const TGWindo
267    // Software infos    // Software infos
268    //    //
269    fshowsi = new TGTextButton(hframedec[9], "Show Data");      fshowsi = new TGTextButton(hframedec[9], "Show Data");  
270    fshowsi->Connect("Clicked()","PAMevcontrol", this,"showorbdata()");    fshowsi->Connect("Clicked()","PAMevcontrol", this,"showsidata()");
271    if ( !cvar->RUN ) fshoworb->SetState(kButtonDisabled);    if ( !cvar->RUN ) fshoworb->SetState(kButtonDisabled);
272    hframedec[9]->AddFrame(fshoworb, new TGLayoutHints(kLHintsTop | kLHintsLeft | kLHintsCenterY|kLHintsExpandX,5,2,5,5));    hframedec[9]->AddFrame(fshoworb, new TGLayoutHints(kLHintsTop | kLHintsLeft | kLHintsCenterY|kLHintsExpandX,5,2,5,5));
273    //    //
274    // All data    // All data
275    //    //
276    fshowall = new TGTextButton(hframedec[10], "Show Data");      fshowall = new TGTextButton(hframedec[10], "Show Data");  
277    fshowall->Connect("Clicked()","PAMevcontrol", this,"showorbdata()");    fshowall->Connect("Clicked()","PAMevcontrol", this,"showalldata()");
278    hframedec[10]->AddFrame(fshowall, new TGLayoutHints(kLHintsTop | kLHintsLeft | kLHintsCenterY|kLHintsExpandX,5,5,5,5));    hframedec[10]->AddFrame(fshowall, new TGLayoutHints(kLHintsTop | kLHintsLeft | kLHintsCenterY|kLHintsExpandX,5,5,5,5));
279    //    //
280    //  for (Int_t fr=0; fr<11; fr++) gf->AddFrame(hframedec[fr], new TGLayoutHints(kLHintsTop | kLHintsLeft | kLHintsCenterY|kLHintsExpandX,1,1,1,1));    //  for (Int_t fr=0; fr<11; fr++) gf->AddFrame(hframedec[fr], new TGLayoutHints(kLHintsTop | kLHintsLeft | kLHintsCenterY|kLHintsExpandX,1,1,1,1));
# Line 476  void PAMevcontrol::refreshdec(Int_t n){ Line 476  void PAMevcontrol::refreshdec(Int_t n){
476    
477    
478  void PAMevcontrol::showorbdata(){  void PAMevcontrol::showorbdata(){
479    printf("orb \n");    cvar->showorb = !cvar->showorb;
480      if ( !cvar->showorb ) fshoworb->SetText("Show Data");
481      if ( cvar->showorb ) fshoworb->SetText("Hide Data");
482      //  printf("orb \n");
483  };  };
484    
485  void PAMevcontrol::showtrgdata(){  void PAMevcontrol::showtrgdata(){
486    printf("trg \n");    cvar->showtrg = !cvar->showtrg;
487      if ( !cvar->showtrg ) fshowtrg->SetText("Show Data");
488      if ( cvar->showtrg ) fshowtrg->SetText("Hide Data");
489      //  printf("trg \n");
490  };  };
491    
492  void PAMevcontrol::showrundata(){  void PAMevcontrol::showrundata(){
493    printf("run \n");    cvar->showrun = !cvar->showrun;
494      if ( !cvar->showrun ) fshowrun->SetText("Show Data");
495      if ( cvar->showrun ) fshowrun->SetText("Hide Data");
496      //  printf("run \n");
497  };  };
498    
499  void PAMevcontrol::showcaldata(){  void PAMevcontrol::showcaldata(){
500    printf("cal \n");    cvar->showcal = !cvar->showcal;
501      if ( !cvar->showcal ) fshowcal->SetText("Show Data");
502      if ( cvar->showcal ) fshowcal->SetText("Hide Data");
503      //  printf("cal \n");
504  };  };
505    
506  void PAMevcontrol::chkcalost(){  void PAMevcontrol::chkcalost(){
# Line 505  void PAMevcontrol::chkcalost(){ Line 517  void PAMevcontrol::chkcalost(){
517  };  };
518    
519  void PAMevcontrol::showtrkdata(){  void PAMevcontrol::showtrkdata(){
520    printf("trk \n");    cvar->showtrk = !cvar->showtrk;
521      if ( !cvar->showtrk ) fshowtrk->SetText("Show Data");
522      if ( cvar->showtrk ) fshowtrk->SetText("Hide Data");
523      //  printf("trk \n");
524  };  };
525    
526  void PAMevcontrol::showtofdata(){  void PAMevcontrol::showtofdata(){
527    printf("tof \n");    cvar->showtof = !cvar->showtof;
528      if ( !cvar->showtof ) fshowtof->SetText("Show Data");
529      if ( cvar->showtof ) fshowtof->SetText("Hide Data");
530      //  printf("tof \n");
531  };  };
532    
533  void PAMevcontrol::showacdata(){  void PAMevcontrol::showacdata(){
534    printf("ac \n");    cvar->showac = !cvar->showac;
535      if ( !cvar->showac ) fshowac->SetText("Show Data");
536      if ( cvar->showac ) fshowac->SetText("Hide Data");
537      //  printf("ac \n");
538  };  };
539    
540  void PAMevcontrol::shownddata(){  void PAMevcontrol::shownddata(){
541    printf("nd \n");    cvar->shownd = !cvar->shownd;
542      if ( !cvar->shownd ) fshownd->SetText("Show Data");
543      if ( cvar->shownd ) fshownd->SetText("Hide Data");
544      //  printf("nd \n");
545  };  };
546    
547  void PAMevcontrol::shows4data(){  void PAMevcontrol::shows4data(){
548    printf("s4 \n");    cvar->shows4 = !cvar->shows4;
549      if ( !cvar->shows4 ) fshows4->SetText("Show Data");
550      if ( cvar->shows4 ) fshows4->SetText("Hide Data");
551      //  printf("s4 \n");
552  };  };
553    
554  void PAMevcontrol::showsidata(){  void PAMevcontrol::showsidata(){
555    printf("si \n");    cvar->showsi = !cvar->showsi;
556      if ( !cvar->showsi ) fshowsi->SetText("Show Data");
557      if ( cvar->showsi ) fshowsi->SetText("Hide Data");
558      //  printf("si \n");
559  };  };
560    
561  void PAMevcontrol::showalldata(){  void PAMevcontrol::showalldata(){
562    printf("all \n");    cvar->showall = !cvar->showall;
563      if ( !cvar->showall ) fshowall->SetText("Show Data");
564      if ( cvar->showall ) fshowall->SetText("Hide Data");
565      //  printf("all \n");
566  };  };
567    
568  void PAMevcontrol::SetFilename() {  void PAMevcontrol::SetFilename() {
# Line 636  void PAMevcontrol::CheckLevel() { Line 669  void PAMevcontrol::CheckLevel() {
669        ffl0->SetState(kButtonDown);            ffl0->SetState(kButtonDown);    
670      };      };
671    };    };
672      if ( clev->file == 2 ){
673        fgetl0->SetText("Get L0 file");
674      } else {
675        fgetl0->SetText("Get L2 file");
676      };
677  }  }
678    
679  void PAMevcontrol::SetSearching() {  void PAMevcontrol::SetSearching() {
# Line 901  void PAMevcontrol::increment(float val) Line 939  void PAMevcontrol::increment(float val)
939  }  }
940    
941  void PAMevcontrol::forcel0() {  void PAMevcontrol::forcel0() {
942      if ( cvar->fl0 ) {    cvar->fl0 = !cvar->fl0;
943          cvar->fl0 = false;    cvar->alrforc = false;
944      } else {    cvar->i--;
945          cvar->fl0 = true;    cvar->nevents = 0;
946      };    cvar->firstevno = 0;
947      cvar->alrforc = false;    cvar->lastevno = 0;
948      cvar->i--;    cvar->refresh = true;
     cvar->nevents = 0;  
     cvar->firstevno = 0;  
     cvar->lastevno = 0;  
     cvar->refresh = true;  
949  }  }
950    
951  void PAMevcontrol::clearselfi(){  void PAMevcontrol::clearselfi(){

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.23