Changeset 2015 for trunk/MagicSoft/Mars/mmain
- Timestamp:
- 04/28/03 09:52:57 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/mmain
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mmain/MStatusDisplay.cc
r1976 r2015 226 226 // To disable redirction call SetLogStream(NULL) 227 227 // 228 void MStatusDisplay::SetLogStream(MLog *log) 228 // if enable==kFALSE the stdout is disabled/enabled. Otherwise stdout 229 // is ignored. 230 // 231 void MStatusDisplay::SetLogStream(MLog *log, Bool_t enable) 229 232 { 230 233 if (log && fLogBox==NULL) … … 256 259 257 260 log->SetOutputGui(fLogBox, kTRUE); 258 log->DisableOutputDevice(MLog::eStdout);259 261 log->EnableOutputDevice(MLog::eGui); 262 if (!enable) 263 log->DisableOutputDevice(MLog::eStdout); 260 264 261 265 fLogTimer.Start(); … … 266 270 267 271 fLog->DisableOutputDevice(MLog::eGui); 268 fLog->EnableOutputDevice(MLog::eStdout);269 272 fLog->SetOutputGui(NULL); 273 if (!enable) 274 fLog->EnableOutputDevice(MLog::eStdout); 270 275 271 276 fLog = &gLog; … … 1134 1139 if (num<0) 1135 1140 *fLog << inf << " - "; 1136 *fLog << "Writing Tab #" << i << ": " << c->GetName() << " (" << n << ") ";1141 *fLog << inf << "Writing Tab #" << i << ": " << c->GetName() << " (" << n << ") "; 1137 1142 if (num>0) 1138 1143 *fLog << "to " << name; -
trunk/MagicSoft/Mars/mmain/MStatusDisplay.h
r1965 r2015 105 105 virtual ~MStatusDisplay(); 106 106 107 void SetLogStream(MLog *log );107 void SetLogStream(MLog *log, Bool_t enable=kFALSE); 108 108 109 109 void StartUpdate(Int_t millisec=-1);
Note:
See TracChangeset
for help on using the changeset viewer.