1///** @file 2// 3// Browser formset. 4// 5// Copyright (c) 2007 - 2015, Intel Corporation. All rights reserved.<BR> 6// This program and the accompanying materials 7// are licensed and made available under the terms and conditions of the BSD License 8// which accompanies this distribution. The full text of the license may be found at 9// http://opensource.org/licenses/bsd-license.php 10// 11// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 12// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 13// 14//**/ 15 16#include <Guid/BdsHii.h> 17 18#define FRONT_PAGE_CLASS 0x0000 19#define FRONT_PAGE_SUBCLASS 0x0002 20 21#define FRONT_PAGE_FORM_ID 0x1000 22 23#define FRONT_PAGE_ITEM_ONE 0x0001 24#define FRONT_PAGE_ITEM_TWO 0x0002 25#define FRONT_PAGE_ITEM_THREE 0x0003 26#define FRONT_PAGE_ITEM_FOUR 0x0004 27#define FRONT_PAGE_ITEM_FIVE 0x0005 28 29#define FRONT_PAGE_KEY_CONTINUE 0x1000 30#define FRONT_PAGE_KEY_LANGUAGE 0x1234 31#define FRONT_PAGE_KEY_BOOT_MANAGER 0x1064 32#define FRONT_PAGE_KEY_DEVICE_MANAGER 0x8567 33#define FRONT_PAGE_KEY_BOOT_MAINTAIN 0x9876 34 35#define LABEL_SELECT_LANGUAGE 0x1000 36#define LABEL_TIMEOUT 0x2000 37#define LABEL_END 0xffff 38 39formset 40 guid = FRONT_PAGE_FORMSET_GUID, 41 title = STRING_TOKEN(STR_FRONT_PAGE_TITLE), 42 help = STRING_TOKEN(STR_NULL_STRING), 43 classguid = FRONT_PAGE_FORMSET_GUID, 44 45 form formid = FRONT_PAGE_FORM_ID, 46 title = STRING_TOKEN(STR_FRONT_PAGE_TITLE); 47 48 banner 49 title = STRING_TOKEN(STR_FRONT_PAGE_COMPUTER_MODEL), 50 line 1, 51 align left; 52 53 banner 54 title = STRING_TOKEN(STR_FRONT_PAGE_CPU_MODEL), 55 line 2, 56 align left; 57 58 banner 59 title = STRING_TOKEN(STR_FRONT_PAGE_CPU_SPEED), 60 line 2, 61 align right; 62 63 banner 64 title = STRING_TOKEN(STR_FRONT_PAGE_BIOS_VERSION), 65 line 3, 66 align left; 67 68 banner 69 title = STRING_TOKEN(STR_FRONT_PAGE_MEMORY_SIZE), 70 line 3, 71 align right; 72 73// banner 74// title = STRING_TOKEN(STR_FRONT_PAGE_BANNER_0_LEFT), 75// line 0, 76// align left; 77 78// banner 79// title = STRING_TOKEN(STR_FRONT_PAGE_BANNER_0_RIGHT), 80// line 0, 81// align right; 82 83// banner 84// title = STRING_TOKEN(STR_FRONT_PAGE_BANNER_1_LEFT), 85// line 1, 86// align left; 87 88// banner 89// title = STRING_TOKEN(STR_FRONT_PAGE_BANNER_1_RIGHT), 90// line 1, 91// align right; 92 93// banner 94// title = STRING_TOKEN(STR_FRONT_PAGE_BANNER_2_LEFT), 95// line 2, 96// align left; 97 98// banner 99// title = STRING_TOKEN(STR_FRONT_PAGE_BANNER_3_LEFT), 100// line 3, 101// align left; 102 103 104 text 105 help = STRING_TOKEN(STR_CONTINUE_HELP), 106 text = STRING_TOKEN(STR_CONTINUE_PROMPT), 107 flags = INTERACTIVE, 108 key = FRONT_PAGE_KEY_CONTINUE; 109 110 label LABEL_SELECT_LANGUAGE; 111 // 112 // This is where we will dynamically add a OneOf type op-code to select 113 // Languages from the currently available choices 114 // 115 label LABEL_END; 116 117 goto FRONT_PAGE_ITEM_THREE, 118 prompt = STRING_TOKEN(STR_BOOT_MANAGER), 119 help = STRING_TOKEN(STR_BOOT_MANAGER_HELP), 120 flags = INTERACTIVE, 121 key = FRONT_PAGE_KEY_BOOT_MANAGER; 122 123 goto FRONT_PAGE_ITEM_FOUR, 124 prompt = STRING_TOKEN(STR_DEVICE_MANAGER), 125 help = STRING_TOKEN(STR_DEVICE_MANAGER_HELP), 126 flags = INTERACTIVE, 127 key = FRONT_PAGE_KEY_DEVICE_MANAGER; 128 129 goto FRONT_PAGE_ITEM_FIVE, 130 prompt = STRING_TOKEN(STR_BOOT_MAINT_MANAGER), 131 help = STRING_TOKEN(STR_BOOT_MAINT_MANAGER_HELP), 132 flags = INTERACTIVE, 133 key = FRONT_PAGE_KEY_BOOT_MAINTAIN; 134 135 endform; 136 137endformset; 138