UBrowser
Class UBrowserIRCWindow

source: e:\games\UnrealTournament\UBrowser\Classes\UBrowserIRCWindow.uc
Core.Object
   |
   +--UWindow.UWindowBase
      |
      +--UWindow.UWindowWindow
         |
         +--UWindow.UWindowClientWindow
            |
            +--UWindow.UWindowDialogClientWindow
               |
               +--UWindow.UWindowPageWindow
                  |
                  +--UBrowser.UBrowserIRCWindow
Direct Known Subclasses:None

class UBrowserIRCWindow
extends UWindow.UWindowPageWindow


Variables
 UWindowPageControl PageControl
 string SystemName
 UBrowserIRCSystemPage SystemPage


Function Summary
 void BeforePaint(Canvas C, float X, float Y)
 void Close(optional bool)
 void Created()
 void Resized()
 void WindowHidden()



Source Code


00001	class UBrowserIRCWindow expands UWindowPageWindow;
00002	
00003	var UWindowPageControl		PageControl;
00004	var UBrowserIRCSystemPage	SystemPage;
00005	
00006	var localized string SystemName;
00007	
00008	function Created()
00009	{
00010		Super.Created();
00011	
00012		PageControl = UWindowPageControl(CreateWindow(class'UWindowPageControl', 0, 0, WinWidth, WinHeight));
00013		PageControl.SetMultiLine(True);
00014		PageControl.bSelectNearestTabOnRemove = True;
00015		SystemPage = UBrowserIRCSystemPage(PageControl.AddPage(SystemName, class'UBrowserIRCSystemPage').Page);
00016		SystemPage.PageParent = PageControl;
00017	}
00018	
00019	function Resized()
00020	{
00021		PageControl.SetSize(WinWidth, WinHeight);
00022	}
00023	
00024	function BeforePaint(Canvas C, float X, float Y)
00025	{
00026		local UBrowserMainWindow W;
00027		Super.BeforePaint(C, X, Y);
00028	
00029		W = UBrowserMainWindow(GetParent(class'UBrowserMainWindow'));
00030		W.DefaultStatusBarText("");
00031		SystemPage.IRCVisible();
00032	}
00033	
00034	function WindowHidden()
00035	{
00036		Super.WindowHidden();
00037		SystemPage.IRCClosed();
00038	}
00039	
00040	function Close(optional bool bByParent)
00041	{
00042		Super.Close(bByParent);
00043		if(bByParent)
00044			SystemPage.IRCClosed();
00045	}
00046	
00047	defaultproperties
00048	{
00049	     SystemName="System"
00050	}

End Source Code