Changeset 9038 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 07/23/08 11:11:13 (17 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MStatusDisplay.cc
r8965 r9038 780 780 MStatusDisplay::~MStatusDisplay() 781 781 { 782 fTimer.Stop(); 783 782 784 #if ROOT_VERSION_CODE < ROOT_VERSION(3,10,01) 783 785 fTab = NULL; // See HandleEvent … … 959 961 c->cd(); 960 962 return kTRUE; 963 } 964 965 // -------------------------------------------------------------------------- 966 // 967 // Return the number of user added tabs (not that in batch mode this 968 // exclude tabs without a canvas) 969 // 970 Int_t MStatusDisplay::GetNumTabs() const 971 { 972 return gROOT->IsBatch() ? fBatch->GetEntries() : fTab->GetNumberOfTabs()-1; 961 973 } 962 974 … … 2249 2261 2250 2262 2251 cout << "Display done." << endl;2252 2253 2263 if (n==0) 2254 2264 return list.GetEntries(); … … 2683 2693 // deletion 2684 2694 // 2685 const Bool_t store = c->IsBatch(); 2686 2687 c->SetBatch(kTRUE); 2695 //const Bool_t store = c->IsBatch(); 2696 //c->SetBatch(kTRUE); 2688 2697 c->Paint(); 2689 c->SetBatch(store);2698 //c->SetBatch(store); 2690 2699 2691 2700 // 2692 2701 // Use the canvas as coordinate system for the overlaying text 2693 2702 // 2694 gPad = c;2695 //n->cd();2696 2697 2703 const Double_t height = 0.015; 2698 2704 -
trunk/MagicSoft/Mars/mbase/MStatusDisplay.h
r8988 r9038 196 196 TObject *FindObject(const TObject *) const { return 0; } 197 197 198 Int_t GetNumTabs() const; 199 198 200 void PrintContent(Option_t *o="") const; 199 201
Note:
See TracChangeset
for help on using the changeset viewer.