Changeset 6932 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 04/12/05 17:05:49 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MStatusArray.cc
r4981 r6932 61 61 delete d; 62 62 return 0; 63 } 64 65 void MStatusArray::DisplayIn(MStatusDisplay &d, const char *tab) const 66 { 67 d.Display(*this, tab); 63 68 } 64 69 … … 149 154 { 150 155 if (!c) 156 { 157 gLog << warn << "Canvas '" << canvas << "' not found..." << endl; 151 158 return 0; 159 } 152 160 153 161 TObject *o = FindObjectInPad(c, object, cls); 154 162 if (!o) 163 { 164 gLog << warn << "Object '" << object << "' [" << base << "] not found in canvas '" << canvas << "'..." << endl; 155 165 return 0; 166 } 156 167 157 return o ->InheritsFrom(cls) ? o : 0;168 return o; //o->InheritsFrom(cls) ? o : 0; 158 169 } 159 170 … … 169 180 } 170 181 182 gLog << warn << "Object '" << object << "' [" << base << "] not found in canvas '" << canvas << "'..." << endl; 171 183 return NULL; 172 184 } -
trunk/MagicSoft/Mars/mbase/MStatusArray.h
r4966 r6932 10 10 class TVirtualPad; 11 11 12 class MStatusDisplay; 13 12 14 class MStatusArray : public TObjArray 13 15 { … … 18 20 public: 19 21 TObject *DisplayIn(Option_t *o=0) const; // *MENU* 22 void DisplayIn(MStatusDisplay &d, const char *tab=0) const; 20 23 TObject *Display() const { return DisplayIn(); } // *MENU* 21 24 -
trunk/MagicSoft/Mars/mbase/MStatusDisplay.cc
r6890 r6932 1686 1686 } 1687 1687 1688 Bool_t MStatusDisplay::Display(const TObjArray &list )1688 Bool_t MStatusDisplay::Display(const TObjArray &list, const char *tab) 1689 1689 { 1690 1690 TIter Next(&list); … … 1702 1702 while ((c=(TCanvas*)Next())) 1703 1703 //if (!GetCanvas(c->GetName())) 1704 if (!tab || c->GetName()==(TString)tab) 1704 1705 DrawClonePad(AddTab(c->GetName()), *c); 1705 1706 … … 1711 1712 // Reads the contents of a saved MStatusDisplay from a file. 1712 1713 // 1713 Int_t MStatusDisplay::Read(const char *name )1714 Int_t MStatusDisplay::Read(const char *name, const char *tab) 1714 1715 { 1715 1716 if (!gFile) … … 1734 1735 } 1735 1736 1736 if (!Display(list ))1737 if (!Display(list, tab)) 1737 1738 { 1738 1739 *fLog << err << "MStatusDisplay::Display: No entry in " << name << "." << endl; -
trunk/MagicSoft/Mars/mbase/MStatusDisplay.h
r6890 r6932 122 122 void DrawClonePad(TCanvas &newc, TCanvas &oldc) const; 123 123 void CanvasSetFillColor(TPad &c, Int_t col) const; 124 Bool_t Display(const TObjArray &list );124 Bool_t Display(const TObjArray &list, const char *tab=0); 125 125 126 126 void AddExtension(TString &name, const TString &ext, Int_t num) const; … … 167 167 Int_t Write(Int_t num, const char *name="MStatusDisplay", Int_t option=0, Int_t bufsize=0) const; 168 168 169 Int_t Read(const char *name="MStatusDisplay"); 169 Int_t Read(const char *name, const char *tab); 170 Int_t Read(const char *name="MStatusDisplay") 171 { 172 return Read(name, 0); 173 } 170 174 Int_t Write(const char *name="MStatusDisplay", Int_t option=0, Int_t bufsize=0) 171 175 {
Note:
See TracChangeset
for help on using the changeset viewer.