Changeset 13364 for trunk/Mars/mbase
- Timestamp:
- 04/17/12 14:51:20 (13 years ago)
- Location:
- trunk/Mars/mbase
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mbase/MEvtLoop.cc
r9497 r13364 283 283 } 284 284 285 Bool_t MEvtLoop::ProcessGuiEvents(Int_t num )285 Bool_t MEvtLoop::ProcessGuiEvents(Int_t num, Int_t looprc) 286 286 { 287 287 if (gROOT->IsBatch()) … … 305 305 // FALLTHROUGH 306 306 case MStatusDisplay::kLoopStep: 307 if (fDisplay && fDisplay->CheckStatus()==MStatusDisplay::kLoopStep) 307 if (fDisplay && fDisplay->CheckStatus()==MStatusDisplay::kLoopStep && looprc!=kCONTINUE) 308 { 309 //fDisplay->ClearStatus(); 308 310 fDisplay->SetPause(); 311 } 309 312 // FALLTHROUGH 310 313 case MStatusDisplay::kLoopNone: … … 501 504 502 505 numcnts++; 503 if (!ProcessGuiEvents(++dummy ))506 if (!ProcessGuiEvents(++dummy, rc)) 504 507 break; 505 508 } … … 513 516 514 517 numcnts++; 515 if (!ProcessGuiEvents(maxcnt - dummy ))518 if (!ProcessGuiEvents(maxcnt - dummy, rc)) 516 519 break; 517 520 } -
trunk/Mars/mbase/MEvtLoop.h
r12864 r13364 39 39 void StreamPrimitive(ostream &out) const; 40 40 41 Bool_t ProcessGuiEvents(Int_t num );41 Bool_t ProcessGuiEvents(Int_t num, Int_t rc); 42 42 43 43 public: -
trunk/Mars/mbase/MStatusDisplay.h
r9581 r13364 298 298 // Eventloop interface 299 299 Status_t CheckStatus() const { return fStatus; } 300 void ClearStatus() { fStatus = kLoopNone; } 301 void SetPause() { fStatus = kLoopPause; } 300 void ClearStatus() { fStatus=kLoopPause; ProcessMessageCommandMenu(kLoopPause); } 301 void SetPause() { fStatus=kLoopNone; ProcessMessageCommandMenu(kLoopPause); } 302 void SetLoopStep() { SetPause(); fStatus = kLoopStep; } 302 303 303 304 void Lock() { fIsLocked++; }
Note:
See TracChangeset
for help on using the changeset viewer.