~simone.busoli/nunitv2/1071164

« back to all changes in this revision

Viewing changes to src/GuiComponents/UiKit/ResultTabs.cs

  • Committer: Charlie Poole
  • Date: 2012-01-10 23:03:38 UTC
  • Revision ID: charlie@nunit.org-20120110230338-ygaoy7iqi9wxtvxn
Remove special settings from config file; rewrite handling of log and  trace capture; revise TestRunner interface to remove multiple Run and BeginRun overloads for clarity

Show diffs side-by-side

added added

removed removed

Lines of Context:
191
191
 
192
192
                }
193
193
                #endregion
 
194
 
 
195
        public bool IsTracingEnabled
 
196
        {
 
197
            get { return displayController.IsTracingEnabled; }
 
198
        }
 
199
 
 
200
        public LoggingThreshold MaximumLogLevel
 
201
        {
 
202
            get { return displayController.MaximumLogLevel; }
 
203
        }
194
204
        
195
205
                public void Clear()
196
206
                {
351
361
                                Services.UserSettings.Changed += new SettingsEventHandler(UserSettings_Changed);
352
362
                        }
353
363
 
354
 
                        public void Clear()
 
364
            public bool IsTracingEnabled
 
365
            {
 
366
                get
 
367
                {
 
368
                    foreach (TextDisplayTabPage page in tabPages)
 
369
                        if (page.Display.Content.Trace)
 
370
                            return true;
 
371
 
 
372
                    return false;
 
373
                }
 
374
            }
 
375
 
 
376
            public LoggingThreshold MaximumLogLevel
 
377
            {
 
378
                get
 
379
                {
 
380
                    LoggingThreshold logLevel = LoggingThreshold.Off;
 
381
 
 
382
                    foreach (TextDisplayTabPage page in tabPages)
 
383
                    {
 
384
                        LoggingThreshold level = page.Display.Content.LogLevel;
 
385
                        if (level > logLevel)
 
386
                            logLevel = level;
 
387
                    }
 
388
 
 
389
                    return logLevel;
 
390
                }
 
391
            }
 
392
 
 
393
            public void Clear()
355
394
                        {
356
395
                                foreach( TextDisplayTabPage page in tabPages )
357
396
                                        page.Display.Clear();
416
455
                                                                        case "Title":
417
456
                                                                                page.Text = (string)Services.UserSettings.GetSetting( settingName );
418
457
                                                                                break;
419
 
                                                                        case "Content":
420
 
                                                                                page.Display.Content = 
421
 
                                                                                        (TextDisplayContent)Services.UserSettings.GetSetting( settingName );
422
 
                                                                                break;
423
 
                                                                }
 
458
                                    case "Content":
 
459
                                        page.Display.Content.LoadSettings(tabName);
 
460
                                        break;
 
461
                                }
424
462
                                                        }
425
463
                                        }
426
464
                                }