// September 2015 // Levee Patroller / Dijk Patrouille // This source file is (c) by Deltares. This source file is open source but only available to select users. Do not redistribute without written permission of Stichting Deltares, Delft, The Netherlands. // This header has been automatically generated. //============================================================================= // Class for warning of Deletion not possible // Called from the delete button in MenuObservationMain. // ------------------------------------------------------------ // Created by Maarten Wesselius // © 2006, Geodelft // // Date Id Modification // 2006-10-26 The Created this header // 2006-10-26 The Formatted // 2006-10-27 The Resized and rearranged controls // 2008-02-12 wsl Corrected English texts //============================================================================= class NoDelete extends GUIPage; var string EN_Message, NL_Message, EN_Title, NL_Title; var bool dutch; var float VGap; //============================================================================= // Date Id Modification // 2006-10-26 The Created this header //============================================================================= function InitComponent(GUIController MyController, GUIComponent MyOwner) { Super.Initcomponent(MyController, MyOwner); // Menu Background Controls[0].WinLeft = (1 - Controls[0].WinWidth) / 2; Controls[0].WinTop = (1 - Controls[0].WinHeight) / 2; // Title Controls[2].WinLeft = (1 - Controls[2].WinWidth) / 2; Controls[2].WinTop = Controls[0].WinTop + VGap; // Message Controls[3].WinLeft = (1 - Controls[3].WinWidth) / 2; Controls[3].WinTop = Controls[2].WinTop + Controls[2].WinHeight + VGap; // OK Button Controls[1].WinLeft = (1 - Controls[1].WinWidth) / 2; Controls[1].WinTop = Controls[3].WinTop + Controls[3].WinHeight + VGap; dutch = GeoPlayerController(PlayerOwner()).Dutch; UpdateLanguage(); } //============================================================================= // Date Id Modification // 2006-10-26 The Created this header //============================================================================= function bool InternalOnClick(GUIComponent Sender) { local int SizeArray; if (Sender == Controls[1]) { // close this menu and make sure that the menu from which it was called can be clicked again SizeArray = Controller.MenuStack.Length; if (SizeArray > 1) MenuObservationMain(Controller.MenuStack[(SizeArray-2)]).ChangeAllow(true); Controller.CloseMenu(false); } return true; } //============================================================================= // Date Id Modification // 2006-10-26 The Created this header //============================================================================= function UpdateLanguage() { if(Dutch) { GUILabel(Controls[2]).Caption = NL_Title; GUILabel(Controls[3]).Caption = NL_Message; } else { GUILabel(Controls[2]).Caption = EN_Title; GUILabel(Controls[3]).Caption = EN_Message; } } //============================================================================= // Date Id Modification // 2006-10-26 The Created this header //============================================================================= defaultproperties { Begin Object Class=GUIButton name=Background WinLeft=0.05 WinWidth=0.9 WinHeight=0.37 bAcceptsInput=false bNeverFocus=true StyleName="SquareBar" End Object Controls(0)=GUIButton'Background' Begin Object Class=GUIButton Name=OkButton Caption="OK" WinWidth=0.12 WinHeight=0.04 OnClick=InternalOnClick bNeverFocus=true End Object Controls(1)=GUIButton'OkButton' Begin Object class=GUILabel Name=Title Caption="***" TextALign=TXTA_Center TextColor=(R=220,G=180,B=0,A=255) TextFont="HeaderFont" WinWidth=1 WinHeight=0.1 End Object Controls(2)=GUILabel'Title' Begin Object class=GUILabel Name=Message Caption="***" TextALign=TXTA_Center TextFont="MenuFont" WinWidth=0.5 WinHeight=0.1 bMultiLine=true End Object Controls(3)=GUILabel'Message' bRequire640x480=false VGap=0.025 EN_Title="Deleting is not possible" NL_Title="Verwijderen is niet mogelijk" EN_Message="This observation cannot be removed anymore. Only those observations that have not yet been called through to the Action Center can be removed." NL_Message="Deze observatie kan niet meer verwijderd worden. Alleen observaties die nog niet zijn doorgebeld naar het Actiecentrum kunnen verwijderd worden." }