/[PAMELA software]/eventviewer/ground/macros/EventViewer.c
ViewVC logotype

Diff of /eventviewer/ground/macros/EventViewer.c

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

revision 1.3 by mocchiut, Thu Mar 9 15:50:53 2006 UTC revision 1.4 by mocchiut, Mon Mar 13 08:53:18 2006 UTC
# Line 1  Line 1 
1  //-------------------------------------------------------------------------------------------------------------------------------------------------------  //-------------------------------------------------------------------------------------------------------------------------------------------------------
2  //  //
3  //   EventViewer.c      version 9.02  (2006-03-09)  //   EventViewer.c      version 9.03  (2006-03-10)
4  //  //
5  //   Shows PAMELA events - Emiliano Mocchiutti  //   Shows PAMELA events - Emiliano Mocchiutti
6  //  //
# Line 24  Line 24 
24  //  //
25  //   Changelog:  //   Changelog:
26  //  //
27    //   9.02 - 9.03 (2006-03-10): Figure still editable during searching, fixed. Fixed CPU consuming.
28    //
29  //   9.01 - 9.02 (2006-03-09): Now reads tracker software output from v3r02. Small bugs fixed (figure not editable now and complete text inside the GUI if there are only files with the same name).  //   9.01 - 9.02 (2006-03-09): Now reads tracker software output from v3r02. Small bugs fixed (figure not editable now and complete text inside the GUI if there are only files with the same name).
30  //  //
31  //   9.00 - 9.01 (2006-03-03): Many bugs fixed and some correction in the behaviour in some cases (many thanks to Silvio for help in developing and debugging!).  //   9.00 - 9.01 (2006-03-03): Many bugs fixed and some correction in the behaviour in some cases (many thanks to Silvio for help in developing and debugging!).
# Line 286  void unload2(){ Line 288  void unload2(){
288  //  //
289    
290  class PAMevcontrol : public TGMainFrame {  class PAMevcontrol : public TGMainFrame {
     //RQ_OBJECT("PAMevcontrol");  
291    
292   private:   private:
293    TGHProgressBar *fHProg1;    TGHProgressBar *fHProg1;
# Line 687  void PAMevcontrol::CompleteText() { Line 688  void PAMevcontrol::CompleteText() {
688            charmac = k;                      charmac = k;          
689          };          };
690        };        };
691          gVirtualX->Bell(0);
692      };      };
693      if ( !charmac ) {      if ( !charmac ) {
694          gVirtualX->Bell(0);          gVirtualX->Bell(0);
# Line 6486  void ShowEvent(TString filename="help", Line 6488  void ShowEvent(TString filename="help",
6488              gApplication->Terminate(0);              gApplication->Terminate(0);
6489          };          };
6490          gSystem->ProcessEvents();          gSystem->ProcessEvents();
6491            gSystem->Sleep(10);
6492      };      };
6493      if ( var.restart ){      if ( var.restart ){
6494          filename = var.thefilename.Data();          filename = var.thefilename.Data();
# Line 7106  void ShowEvent(TString filename="help", Line 7109  void ShowEvent(TString filename="help",
7109          if ( isOK && !jumpto ) {          if ( isOK && !jumpto ) {
7110              if ( var.doflag == 3 ) selection = 1;              if ( var.doflag == 3 ) selection = 1;
7111              printf("\n");              printf("\n");
7112                //
7113                figure->SetEditable(kTRUE);
7114                //
7115              figure->Clear();              figure->Clear();
7116              figure->SetFillColor(10);              figure->SetFillColor(10);
7117              figure->cd();              figure->cd();
# Line 7726  void ShowEvent(TString filename="help", Line 7732  void ShowEvent(TString filename="help",
7732              figure->Modified();              figure->Modified();
7733              figure->Update();              figure->Update();
7734              figure->cd();              figure->cd();
7735                figure->SetEditable(kFALSE);
7736              //              //
7737              // print infos on terminal              // print infos on terminal
7738              //              //
# Line 7793  void ShowEvent(TString filename="help", Line 7800  void ShowEvent(TString filename="help",
7800              var.jumpen = false;              var.jumpen = false;
7801              //      njumpen = 0;              //      njumpen = 0;
7802              Int_t ifout = 0;              Int_t ifout = 0;
             figure->SetEditable(kFALSE);  
7803              while( !var.goon && !var.refresh && !var.restart ) {              while( !var.goon && !var.refresh && !var.restart ) {
7804                  if ( !gROOT->GetListOfCanvases()->FindObject(figure)  ) {                  if ( !gROOT->GetListOfCanvases()->FindObject(figure)  ) {
7805                      pamgui->Close();                      pamgui->Close();
# Line 7801  void ShowEvent(TString filename="help", Line 7807  void ShowEvent(TString filename="help",
7807                      gApplication->Terminate(0);                      gApplication->Terminate(0);
7808                  };                  };
7809                  gSystem->ProcessEvents();                  gSystem->ProcessEvents();
7810                    gSystem->Sleep(10);
7811              };              };
             figure->SetEditable(kTRUE);  
7812              var.goon = false;              var.goon = false;
7813              if ( var.refresh || var.restart ){              if ( var.refresh || var.restart ){
7814                  headerFile->Close();                  headerFile->Close();

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

  ViewVC Help
Powered by ViewVC 1.1.23