Changeset 6978 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 04/25/05 15:37:35 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MStatusDisplay.cc
r6954 r6978 178 178 // -------------------------------------------------------------------------- 179 179 180 TGCompositeFrame *MStatusDisplay::GetTabContainer(const char *name) const 181 { 182 #if ROOT_VERSION_CODE < ROOT_VERSION(4,03,05) 183 if (!fTab) 184 return 0; 185 186 TGFrameElement *el; 187 TGTabElement *tab = 0; 188 TGCompositeFrame *comp = 0; 189 190 TIter next(fTab->GetList()); 191 next(); // skip first container 192 193 while ((el = (TGFrameElement *) next())) { 194 el = (TGFrameElement *) next(); 195 comp = (TGCompositeFrame *) el->fFrame; 196 next(); 197 tab = (TGTabElement *)el->fFrame; 198 if (name == tab->GetText()->GetString()) { 199 return comp; 200 } 201 } 202 203 return 0; 204 #else 205 return fTab ? fTab->GetTabContainer(name) : 0; 206 #endif 207 } 208 209 TGTabElement *MStatusDisplay::GetTabTab(const char *name) const 210 { 211 #if ROOT_VERSION_CODE < ROOT_VERSION(4,03,05) 212 if (!fTab) 213 return 0; 214 215 TGFrameElement *el; 216 TGTabElement *tab = 0; 217 218 TIter next(fTab->GetList()); 219 next(); // skip first container 220 221 while ((el = (TGFrameElement *) next())) { 222 next(); 223 tab = (TGTabElement *)el->fFrame; 224 if (name == tab->GetText()->GetString()) { 225 return tab; 226 } 227 } 228 229 return 0; 230 #else 231 return fTab ? fTab->GetTabTab(name) : 0; 232 #endif 233 } 234 // -------------------------------------------------------------------------- 235 236 180 237 // -------------------------------------------------------------------------- 181 238 // … … 1341 1398 1342 1399 case kLogAppend: 1343 SetStatusLine1("Appending log g...");1400 SetStatusLine1("Appending log..."); 1344 1401 SetStatusLine2(""); 1345 1402 *fLog << inf << "Appending log... " << flush; -
trunk/MagicSoft/Mars/mbase/MStatusDisplay.h
r6938 r6978 30 30 class TGTextView; 31 31 class TGStatusBar; 32 class TGTabElement; 32 33 class TGProgressBar; 33 34 class TGHProgressBar; … … 122 123 Bool_t HandleEvent(Event_t *event); 123 124 125 TGCompositeFrame *GetTabContainer(const char *name) const; 126 TGTabElement *GetTabTab(const char *name) const; 127 124 128 Bool_t HandleTimer(TTimer *timer=NULL); 125 129 void UpdateTab(TGCompositeFrame *f);
Note:
See TracChangeset
for help on using the changeset viewer.