--- eventviewer/ground/macros/EventViewer.c 2006/03/09 15:50:53 1.3 +++ eventviewer/ground/macros/EventViewer.c 2006/03/13 08:53:18 1.4 @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------------------------------------------------------------------------------- // -// EventViewer.c version 9.02 (2006-03-09) +// EventViewer.c version 9.03 (2006-03-10) // // Shows PAMELA events - Emiliano Mocchiutti // @@ -24,6 +24,8 @@ // // Changelog: // +// 9.02 - 9.03 (2006-03-10): Figure still editable during searching, fixed. Fixed CPU consuming. +// // 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.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!). @@ -286,7 +288,6 @@ // class PAMevcontrol : public TGMainFrame { - //RQ_OBJECT("PAMevcontrol"); private: TGHProgressBar *fHProg1; @@ -687,6 +688,7 @@ charmac = k; }; }; + gVirtualX->Bell(0); }; if ( !charmac ) { gVirtualX->Bell(0); @@ -6486,6 +6488,7 @@ gApplication->Terminate(0); }; gSystem->ProcessEvents(); + gSystem->Sleep(10); }; if ( var.restart ){ filename = var.thefilename.Data(); @@ -7106,6 +7109,9 @@ if ( isOK && !jumpto ) { if ( var.doflag == 3 ) selection = 1; printf("\n"); + // + figure->SetEditable(kTRUE); + // figure->Clear(); figure->SetFillColor(10); figure->cd(); @@ -7726,6 +7732,7 @@ figure->Modified(); figure->Update(); figure->cd(); + figure->SetEditable(kFALSE); // // print infos on terminal // @@ -7793,7 +7800,6 @@ var.jumpen = false; // njumpen = 0; Int_t ifout = 0; - figure->SetEditable(kFALSE); while( !var.goon && !var.refresh && !var.restart ) { if ( !gROOT->GetListOfCanvases()->FindObject(figure) ) { pamgui->Close(); @@ -7801,8 +7807,8 @@ gApplication->Terminate(0); }; gSystem->ProcessEvents(); + gSystem->Sleep(10); }; - figure->SetEditable(kTRUE); var.goon = false; if ( var.refresh || var.restart ){ headerFile->Close();