Changeset 5912 for trunk/MagicSoft


Ignore:
Timestamp:
01/20/05 16:18:16 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r5911 r5912  
    4040   * mfbase/MFilterList.cc:
    4141     - added a comment
     42
     43   * mbase/MStatusDisplay.[h,cc]:
     44     - fixed Write to be compatible with root 4.02/00
     45     - worked around a problem with reading the DrawOption correctly
     46       from a stored status display
    4247
    4348
  • trunk/MagicSoft/Mars/mbase/MStatusDisplay.cc

    r5713 r5912  
    16101610    TVirtualPad *padsav = gPad;
    16111611    oldc.cd();
     1612    gPad = &oldc; // FIXME: Why is this necessary to make GetDrawOption work?
    16121613
    16131614    //copy primitives
     
    17051706// Writes the contents of a MStatusDisplay to a file.
    17061707//
    1707 Int_t MStatusDisplay::Write(Int_t num, const char *name, Int_t option, Int_t bufsize)
     1708Int_t MStatusDisplay::Write(Int_t num, const char *name, Int_t option, Int_t bufsize) const
    17081709{
    17091710    if (!gFile)
  • trunk/MagicSoft/Mars/mbase/MStatusDisplay.h

    r5713 r5912  
    161161     TCanvas *GetCanvas(const TString &name) const;
    162162     TVirtualPad *GetFullPad(const Int_t canvas, const Int_t pad);
    163      
     163
     164     Int_t Write(Int_t num, const char *name="MStatusDisplay", Int_t option=0, Int_t bufsize=0) const;
     165
    164166     Int_t Read(const char *name="MStatusDisplay");
    165167     Int_t Write(const char *name="MStatusDisplay", Int_t option=0, Int_t bufsize=0)
     
    167169         return Write(-1, name, option, bufsize);
    168170     }
    169      Int_t Write(Int_t num, const char *name="MStatusDisplay", Int_t option=0, Int_t bufsize=0);
     171     Int_t Write(const char *name="MStatusDisplay", Int_t option=0, Int_t bufsize=0) const
     172     {
     173         return Write(-1, name, option, bufsize);
     174     }
    170175
    171176     Bool_t CdCanvas(const TString &name);
Note: See TracChangeset for help on using the changeset viewer.