Changeset 2386 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 10/15/03 19:15:13 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/BaseLinkDef.h
r2267 r2386 14 14 15 15 #pragma link C++ class MLog+; 16 #pragma link C++ class MReadSocket+; 16 17 17 18 #pragma link C++ class MIter+; -
trunk/MagicSoft/Mars/mbase/MEvtLoop.cc
r2299 r2386 168 168 { 169 169 fProgress = bar; 170 fProgress->SetBit(kMustCleanup); 170 if (fProgress) 171 fProgress->SetBit(kMustCleanup); 171 172 } 172 173 … … 187 188 MParContainer::SetDisplay(d); 188 189 if (!d) 189 {190 190 fProgress=NULL; 191 return; 192 } 193 194 d->SetBit(kMustCleanup); 191 else 192 d->SetBit(kMustCleanup); 193 195 194 if (fParList) 196 195 fParList->SetDisplay(d); … … 269 268 Bool_t MEvtLoop::ProcessGuiEvents(Int_t num, Int_t entries) 270 269 { 271 if ( !fProgress ||gROOT->IsBatch())270 if (gROOT->IsBatch()) 272 271 return kTRUE; 273 272 … … 286 285 fDisplay->ClearStatus(); 287 286 break; 287 // 288 // If the display is not on the heap (means: not created 289 // with the new operator) the object is deleted somewhere 290 // else in the code. It is the responsibility of the 291 // application which instantiated the object to make 292 // sure that the correct action is taken. This can be 293 // done by calling MStatusDisplay::CheckStatus() 294 // 295 // Because we are synchronous we can safely delete it here! 296 // 297 // Close means: Close the display but leave analysis running 298 // Exit means: Close the display and stop analysis 299 // 300 case MStatusDisplay::kFileClose: 301 case MStatusDisplay::kFileExit: 302 rc = fDisplay->CheckStatus() == MStatusDisplay::kFileClose; 303 304 if (fDisplay->IsOnHeap()) 305 delete fDisplay; 306 307 // 308 // This makes the display really disappear physically on 309 // the screen in case of MStatusDisplay::kFileClose 310 // 311 gSystem->ProcessEvents(); 312 313 return rc; 288 314 default: 289 *fLog << warn << "MEvtloop: fDisplay->Chec Status() has returned unknown status #" << fDisplay->CheckStatus() << "... cleared." << endl;315 *fLog << warn << "MEvtloop: fDisplay->CheckStatus() has returned unknown status #" << fDisplay->CheckStatus() << "... cleared." << endl; 290 316 fDisplay->ClearStatus(); 291 317 break; … … 293 319 294 320 // 295 // Check System time (don't loose too much time by updat es)296 // 297 298 // FIXME: Not thread safe 321 // Check System time (don't loose too much time by updating the GUI) 322 // 323 324 // FIXME: Not thread safe (if you have more than one eventloop running) 299 325 static Int_t start = num; 300 326 static TTime t1 = gSystem->Now(); … … 335 361 // Set new progress bar position 336 362 // 337 fProgress->SetPosition(num); 363 if (fProgress) 364 fProgress->SetPosition(num); 338 365 339 366 // … … 346 373 gSystem->ProcessEvents(); 347 374 else 348 gClient->ProcessEventsFor(fProgress); 375 if (fProgress) 376 gClient->ProcessEventsFor(fProgress); 349 377 #endif 350 378 -
trunk/MagicSoft/Mars/mbase/MFilter.cc
r1938 r2386 16 16 ! 17 17 ! 18 ! Author(s): Thomas Bretz 07/2001 <mailto:tbretz@uni-sw.gwdg.de>18 ! Author(s): Thomas Bretz, 07/2001 <mailto:tbretz@astro.uni-wuerzburg.de> 19 19 ! 20 ! Copyright: MAGIC Software Development, 2000-200 120 ! Copyright: MAGIC Software Development, 2000-2003 21 21 ! 22 22 ! -
trunk/MagicSoft/Mars/mbase/MTime.h
r2150 r2386 108 108 } 109 109 110 operator double() const //[s] 111 { 112 return fNanoSec/1e9+(fHour*24*60*60+fMin*60+fSec); 113 } 114 110 115 ClassDef(MTime, 1) //A generalized MARS time stamp 111 116 }; -
trunk/MagicSoft/Mars/mbase/Makefile
r2267 r2386 44 44 MEvtLoop.cc \ 45 45 MIter.cc \ 46 MReadSocket.cc \ 46 47 MDirIter.cc \ 47 48 MGList.cc \
Note:
See TracChangeset
for help on using the changeset viewer.