UBrowser
Class UBrowserIRCSystemMenu

source: e:\games\UnrealTournament\UBrowser\Classes\UBrowserIRCSystemMenu.uc
Core.Object
   |
   +--UWindow.UWindowBase
      |
      +--UWindow.UWindowWindow
         |
         +--UWindow.UWindowDialogControl
            |
            +--UWindow.UWindowListControl
               |
               +--UWindow.UWindowPulldownMenu
                  |
                  +--UWindow.UWindowRightClickMenu
                     |
                     +--UBrowser.UBrowserIRCSystemMenu
Direct Known Subclasses:None

class UBrowserIRCSystemMenu
extends UWindow.UWindowRightClickMenu


Variables
 UWindowPulldownMenuItem Connect
 string ConnectText
 UWindowPulldownMenuItem Disconnect
 string DisconnectText
 UWindowPulldownMenuItem Join
 string JoinText


Function Summary
 void Created()
 void ExecuteItem(UWindowPulldownMenuItem I)
 void ShowWindow()



Source Code


00001	class UBrowserIRCSystemMenu expands UWindowRightClickMenu;
00002	
00003	var UWindowPulldownMenuItem Connect;
00004	var UWindowPulldownMenuItem Disconnect;
00005	var UWindowPulldownMenuItem Join;
00006	var localized string ConnectText;
00007	var localized string DisconnectText;
00008	var localized string JoinText;
00009	
00010	function Created()
00011	{
00012		Super.Created();
00013		
00014		Connect = AddMenuItem(ConnectText, None);
00015		Disconnect = AddMenuItem(DisconnectText, None);
00016		AddMenuItem("-", None);
00017		Join = AddMenuItem(JoinText, None);
00018		Join.CreateSubMenu(class'UBrowserIRCJoinMenu', OwnerWindow);
00019	}
00020	
00021	function ExecuteItem(UWindowPulldownMenuItem I) 
00022	{
00023		local UBrowserIRCSystemPage S;
00024	
00025		S = UBrowserIRCSystemPage(OwnerWindow);
00026	
00027		switch(I)
00028		{
00029		case Connect:
00030			S.SetupClient.DoJoin();
00031			break;
00032		case Disconnect:
00033			S.Disconnect();
00034			break;
00035		}
00036	
00037		Super.ExecuteItem(I);
00038	}
00039	
00040	function ShowWindow()
00041	{
00042		local UBrowserIRCSystemPage S;
00043		S = UBrowserIRCSystemPage(OwnerWindow);
00044		Super.ShowWindow();
00045		Connect.bDisabled = S.bConnected;
00046		Disconnect.bDisabled = !S.bConnected;
00047		Join.bDisabled = !S.bConnected;
00048	}
00049	
00050	defaultproperties
00051	{
00052	     ConnectText="&Connect"
00053	     DisconnectText="&Disconnect"
00054	     JoinText="&Join"
00055	}

End Source Code