Changeset 2772 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 01/12/04 17:46:01 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MLog.cc
r2519 r2772 16 16 ! 17 17 ! 18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@uni-sw.gwdg.de>19 ! 20 ! Copyright: MAGIC Software Development, 2000-200 118 ! Author(s): Thomas Bretz, 12/2000 <mailto:tbretz@astro.uni-wuerzburg.de> 19 ! 20 ! Copyright: MAGIC Software Development, 2000-2004 21 21 ! 22 22 ! -
trunk/MagicSoft/Mars/mbase/MParContainer.h
r2744 r2772 110 110 virtual Bool_t AsciiWrite(ostream &out) const; 111 111 112 Int_t Read(const char *name=NULL) { return TObject::Read(name?name:(const char*)fName); } 113 112 114 virtual void GetNames(TObjArray &arr) const; 113 115 virtual void SetNames(TObjArray &arr); -
trunk/MagicSoft/Mars/mbase/MStatusDisplay.cc
r2578 r2772 1763 1763 // To write all tabs you can also use SaveAsPS(name) 1764 1764 // 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 // 1768 Int_t MStatusDisplay::SaveAsPS(Int_t num, TString name, const TString addon) 1766 1769 { 1767 1770 SetStatusLine1("Writing Postscript file..."); … … 1830 1833 1831 1834 // 1832 // 2 6 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, 1833 1836 // such that the page title can be set above the canvas... 1834 1837 // 1835 Float_t psw = 2 6; //29.7; // A4 - width1836 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) 1837 1840 1838 1841 const Float_t cw = c->GetWw(); … … 1853 1856 CanvasSetFillColor(*n, kWhite); 1854 1857 l.Add(n); 1858 1855 1859 // 1856 1860 // Paint canvas into root file … … 1878 1882 ps.SetTextFont(22); 1879 1883 ps.SetTextAlign(11); // left top 1880 ps.TextNDC(0, 1.0 2, TString(" ")+n->GetName());1884 ps.TextNDC(0, 1.015, TString(" ")+n->GetName()); 1881 1885 ps.SetTextAlign(21); // cent top 1882 ps.TextNDC(0.5, 1.0 2, 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()); 1883 1887 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 } 1886 1897 1887 1898 // -
trunk/MagicSoft/Mars/mbase/MStatusDisplay.h
r2563 r2772 162 162 void SetNoContextMenu(Bool_t flag=kTRUE); 163 163 164 Int_t SaveAsPS(TString name="" ) { return SaveAsPS(-1, name); }164 Int_t SaveAsPS(TString name="", const TString addon="") { return SaveAsPS(-1, name, addon); } 165 165 Bool_t SaveAsGIF(TString name="") { return SaveAsGIF(-1, name); } 166 166 Bool_t SaveAsC(TString name="") { return SaveAsC(-1, name); } … … 168 168 Int_t PrintToLpr() { return PrintToLpr(-1); } 169 169 170 Int_t SaveAsPS(Int_t num, TString name="" );170 Int_t SaveAsPS(Int_t num, TString name="", const TString addon=""); 171 171 Bool_t SaveAsGIF(Int_t num, TString name=""); 172 172 Bool_t SaveAsC(Int_t num, TString name="");
Note:
See TracChangeset
for help on using the changeset viewer.