Changeset 9067 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 08/01/08 14:41:58 (16 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MStatusDisplay.cc
r9043 r9067 2550 2550 } 2551 2551 2552 if (name.Index("%%%%title%%%%")) 2553 { 2554 name.ReplaceAll("%%title%%", c->GetTitle()); 2555 found = kTRUE; 2556 } 2557 2552 2558 if (name.Index("%%%%tab%%%%")) 2553 2559 { … … 2706 2712 // 2707 2713 const Double_t height = 0.015; // Text height 2708 const Double_t off = 0.005; // Line offset from Text2714 const Double_t off = 0.005; // Line offset from text 2709 2715 2710 2716 const Double_t bot = height+off; … … 2990 2996 } 2991 2997 2998 /* 2999 Bool_t MStatusDisplay::SaveAsCSV(Int_t num, TString name) 3000 { 3001 num = InitWriteDisplay(num, name, "csv"); 3002 if (num==0) 3003 return kFALSE; 3004 3005 gSystem->ExpandPathName(name); 3006 3007 ofstream fout(name); 3008 if (!fout) 3009 { 3010 *fLog << err << "Cannot open file " << name << ": " << strerror(errno) << endl; 3011 return kFALSE; 3012 } 3013 3014 fout << "<?xml version=\"1.0\"?>" << endl; 3015 fout << "<display name='" << GetName() << "'>" << endl; 3016 fout << " <file>" << name << "</file>" << endl; 3017 fout << " <status>" << endl; 3018 fout << " <name>" << GetName() << "</name>" << endl; 3019 fout << " <title>" << GetTitle() << "</title>" << endl; 3020 fout << " </status>" << endl; 3021 fout << " <tabs>" << endl; 3022 3023 fout << 0 << delim << GetName() << delim << GetTitle() << endl; 3024 3025 Int_t from, to; 3026 GetCanvasRange(from, to, num); 3027 3028 for (int i=from; i<to; i++) 3029 { 3030 TCanvas *c; 3031 if (!(c = GetCanvas(i))) 3032 { 3033 if (num<0) 3034 *fLog << inf << " - "; 3035 *fLog << "Tab #" << i << " doesn't contain an embedded Canvas... skipped." << endl; 3036 continue; 3037 } 3038 3039 fout << " <tab index='" << i << "'>" << endl; 3040 fout << " <index>" << i << "</index>" << endl; 3041 fout << " <name>" << c->GetName() << "</name>" << endl; 3042 fout << " <title>" << c->GetName() << "</title>" << endl; 3043 fout << " </tab>" << endl; 3044 } 3045 3046 fout << " </tabs>" << endl; 3047 fout << "</display>" << endl; 3048 3049 SetStatusLine2("Done."); 3050 3051 return kTRUE; 3052 } 3053 */ 3054 2992 3055 // -------------------------------------------------------------------------- 2993 3056 // -
trunk/MagicSoft/Mars/mbase/MStatusDisplay.h
r9038 r9067 269 269 270 270 Bool_t SaveAsCSV(Int_t num, TString name="", Char_t delim='\t'); 271 //Bool_t SaveAsXML(Int_t num, TString name="",); 271 272 Int_t PrintPS(Int_t num, const char *p=0, const char *cmd=0, const char *tmp=0); 272 273 Bool_t PrintLog(const char *p=0, const char *c=0);
Note:
See TracChangeset
for help on using the changeset viewer.