Changeset 2215 for trunk/MagicSoft/Mars/mmain
- Timestamp:
- 06/23/03 13:59:48 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/mmain
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mmain/MStatusDisplay.cc
r2214 r2215 504 504 fFont = gVirtualX->LoadQueryFont("7x13bold"); 505 505 506 fBatch.SetOwner(); 506 fBatch = new TList; 507 fBatch->SetOwner(); 507 508 508 509 // … … 563 564 564 565 delete fList; 566 delete fBatch; 565 567 566 568 if (fFont) … … 605 607 { 606 608 if (gROOT->IsBatch()) 607 return (TCanvas*)fBatch .At(i-1);609 return (TCanvas*)fBatch->At(i-1); 608 610 609 611 if (i<0 || i>=fTab->GetNumberOfTabs()) … … 672 674 { 673 675 TCanvas *c = new TCanvas(name, name); 674 fBatch .Add(c);676 fBatch->Add(c); 675 677 return *c; 676 678 } … … 832 834 { 833 835 if (gROOT->IsBatch()) 834 return (Bool_t)fBatch .FindObject(c);836 return (Bool_t)fBatch->FindObject(c); 835 837 836 838 for (int i=1; i<fTab->GetNumberOfTabs(); i++) … … 1341 1343 return 0; 1342 1344 } 1343 if (gROOT->IsBatch() && num>fBatch .GetSize())1345 if (gROOT->IsBatch() && num>fBatch->GetSize()) 1344 1346 { 1345 1347 *fLog << warn << "MStatusDisplay::Write: Tab doesn't exist... skipped." << endl; … … 1349 1351 TObjArray list; 1350 1352 1351 const Int_t max = gROOT->IsBatch() ? fBatch .GetSize()+1 : fTab->GetNumberOfTabs();1353 const Int_t max = gROOT->IsBatch() ? fBatch->GetSize()+1 : fTab->GetNumberOfTabs(); 1352 1354 const Int_t from = num<0 ? 1 : num; 1353 1355 const Int_t to = num<0 ? max : num+1; … … 1447 1449 { 1448 1450 if (gROOT->IsBatch()) 1449 return num>0 && num<=fBatch .GetSize() || num<0;1451 return num>0 && num<=fBatch->GetSize() || num<0; 1450 1452 1451 1453 if (num>=fTab->GetNumberOfTabs()) … … 1573 1575 // Maintain tab numbers 1574 1576 // 1575 const Int_t max = gROOT->IsBatch() ? fBatch .GetSize()+1 : fTab->GetNumberOfTabs();1577 const Int_t max = gROOT->IsBatch() ? fBatch->GetSize()+1 : fTab->GetNumberOfTabs(); 1576 1578 const Int_t from = num<0 ? 1 : num; 1577 1579 const Int_t to = num<0 ? max : num+1; -
trunk/MagicSoft/Mars/mmain/MStatusDisplay.h
r2207 r2215 75 75 UInt_t fIsLocked; 76 76 77 TList fBatch;77 TList *fBatch; //! 78 78 79 79 void AddMenuBar();
Note:
See TracChangeset
for help on using the changeset viewer.