Ignore:
Timestamp:
07/23/08 11:11:13 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mbase
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/MStatusDisplay.cc

    r8965 r9038  
    780780MStatusDisplay::~MStatusDisplay()
    781781{
     782    fTimer.Stop();
     783
    782784#if ROOT_VERSION_CODE < ROOT_VERSION(3,10,01)
    783785    fTab = NULL; // See HandleEvent
     
    959961    c->cd();
    960962    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//
     970Int_t MStatusDisplay::GetNumTabs() const
     971{
     972    return gROOT->IsBatch() ? fBatch->GetEntries() : fTab->GetNumberOfTabs()-1;
    961973}
    962974
     
    22492261
    22502262
    2251     cout << "Display done." << endl;
    2252 
    22532263    if (n==0)
    22542264        return list.GetEntries();
     
    26832693        // deletion
    26842694        //
    2685         const Bool_t store = c->IsBatch();
    2686 
    2687         c->SetBatch(kTRUE);
     2695        //const Bool_t store = c->IsBatch();
     2696        //c->SetBatch(kTRUE);
    26882697        c->Paint();
    2689         c->SetBatch(store);
     2698        //c->SetBatch(store);
    26902699
    26912700        //
    26922701        // Use the canvas as coordinate system for the overlaying text
    26932702        //
    2694         gPad = c;
    2695         //n->cd();
    2696 
    26972703        const Double_t height = 0.015;
    26982704
  • trunk/MagicSoft/Mars/mbase/MStatusDisplay.h

    r8988 r9038  
    196196     TObject *FindObject(const TObject *) const { return 0;  }
    197197
     198     Int_t GetNumTabs() const;
     199
    198200     void PrintContent(Option_t *o="") const;
    199201
Note: See TracChangeset for help on using the changeset viewer.