// 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 //************************************************* class NoAddReport extends GUIPage; var string EN_Message, NL_Message, EN_Title, NL_Title; var bool dutch; var float VGap; 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(); } 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; } 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; } } defaultproperties { Begin Object Class=GUIButton name=Background WinWidth=1 WinHeight=0.5 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.2 bMultiLine=true End Object Controls(3)=GUILabel'Message' bRequire640x480=false VGap=0.025 EN_Title="Adding a new report is not possible" NL_Title="Een nieuw rapport maken is niet mogelijk" EN_Message="No new reports can be made for the observation of this signal, because the characteristics of this signal do not change in time. ||In case the situation has become worse, it suffices to call the Action Center. ||In case the characteristics of the situation have changed, you are supposed to make a new observation for it." NL_Message="Voor de observatie van dit signaal kan geen nieuw rapport gemaakt worden, omdat de kenmerken van dit signaal niet veranderen in de tijd. ||Als de situatie veranderd is, dan is het afdoende om dit door te bellen naar het Actiecentrum. ||Als de kenmerken van de situatie veranderd zijn, is het de bedoeling dat u daarvan een nieuwe observatie maakt." }