Ignore:
Timestamp:
01/12/04 17:46:01 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mbase
Files:
4 edited

Legend:

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

    r2519 r2772  
    1616!
    1717!
    18 !   Author(s): Thomas Bretz  12/2000 <mailto:tbretz@uni-sw.gwdg.de>
    19 !
    20 !   Copyright: MAGIC Software Development, 2000-2001
     18!   Author(s): Thomas Bretz, 12/2000 <mailto:tbretz@astro.uni-wuerzburg.de>
     19!
     20!   Copyright: MAGIC Software Development, 2000-2004
    2121!
    2222!
  • trunk/MagicSoft/Mars/mbase/MParContainer.h

    r2744 r2772  
    110110    virtual Bool_t AsciiWrite(ostream &out) const;
    111111
     112    Int_t Read(const char *name=NULL) { return TObject::Read(name?name:(const char*)fName); }
     113
    112114    virtual void GetNames(TObjArray &arr) const;
    113115    virtual void SetNames(TObjArray &arr);
  • trunk/MagicSoft/Mars/mbase/MStatusDisplay.cc

    r2578 r2772  
    17631763// To write all tabs you can also use SaveAsPS(name)
    17641764//
    1765 Int_t MStatusDisplay::SaveAsPS(Int_t num, TString name)
     1765// If the third argument is given a bottom line is drawn with the text
     1766// under it.
     1767//
     1768Int_t MStatusDisplay::SaveAsPS(Int_t num, TString name, const TString addon)
    17661769{
    17671770    SetStatusLine1("Writing Postscript file...");
     
    18301833
    18311834        //
    1832         // 26 is used here to scale the canvas into a height of 26,
     1835        // 28 is used here to scale the canvas into a height of 28,
    18331836        // such that the page title can be set above the canvas...
    18341837        //
    1835         Float_t psw = 26; //29.7; // A4 - width
    1836         Float_t psh = 21.0; // A4 - height
     1838        Float_t psw = 28.0; // A4 - width (29.7)
     1839        Float_t psh = 21.0; // A4 - height (21.0)
    18371840
    18381841        const Float_t cw = c->GetWw();
     
    18531856        CanvasSetFillColor(*n, kWhite);
    18541857        l.Add(n);
     1858
    18551859        //
    18561860        // Paint canvas into root file
     
    18781882        ps.SetTextFont(22);
    18791883        ps.SetTextAlign(11); // left top
    1880         ps.TextNDC(0, 1.02, TString("  ")+n->GetName());
     1884        ps.TextNDC(0, 1.015, TString("  ")+n->GetName());
    18811885        ps.SetTextAlign(21); // cent top
    1882         ps.TextNDC(0.5, 1.02, TString("MARS - Magic Analysis and Reconstruction Software - ")+d.AsString());
     1886        ps.TextNDC(0.5, 1.015, TString("MARS - Magic Analysis and Reconstruction Software - ")+d.AsString());
    18831887        ps.SetTextAlign(31); // right top
    1884         ps.TextNDC(1, 1.02, Form("Page No.%i (%i)  ", page++, i));
    1885         line.PaintLineNDC(0, 1.015, 1, 1.015);
     1888        ps.TextNDC(1, 1.015, Form("Page No.%i (%i)  ", page++, i));
     1889        line.PaintLineNDC(0, 1.01, 1, 1.01);
     1890
     1891        if (!addon.IsNull())
     1892        {
     1893            line.PaintLineNDC(0, -0.00, 1, -0.00);
     1894            ps.SetTextAlign(23); // cent bottom
     1895            ps.TextNDC(0.5, -0.005, addon);
     1896        }
    18861897
    18871898        //
  • trunk/MagicSoft/Mars/mbase/MStatusDisplay.h

    r2563 r2772  
    162162     void SetNoContextMenu(Bool_t flag=kTRUE);
    163163
    164      Int_t  SaveAsPS(TString name="") { return SaveAsPS(-1, name); }
     164     Int_t  SaveAsPS(TString name="", const TString addon="") { return SaveAsPS(-1, name, addon); }
    165165     Bool_t SaveAsGIF(TString name="") { return SaveAsGIF(-1, name); }
    166166     Bool_t SaveAsC(TString name="") { return SaveAsC(-1, name); }
     
    168168     Int_t  PrintToLpr() { return PrintToLpr(-1); }
    169169
    170      Int_t  SaveAsPS(Int_t num, TString name="");
     170     Int_t  SaveAsPS(Int_t num, TString name="", const TString addon="");
    171171     Bool_t SaveAsGIF(Int_t num, TString name="");
    172172     Bool_t SaveAsC(Int_t num, TString name="");
Note: See TracChangeset for help on using the changeset viewer.