newline added at end
[people/mcb30/edk2.git] / edk2 / EdkUnixPkg / Dxe / PlatformBds / Generic / BootMaint / FE.vfr
1 // *++\r
2 //\r
3 // Copyright (c) 2006, Intel Corporation                                                         \r
4 // All rights reserved. This program and the accompanying materials                          \r
5 // are licensed and made available under the terms and conditions of the BSD License         \r
6 // which accompanies this distribution.  The full text of the license may be found at        \r
7 // http://opensource.org/licenses/bsd-license.php                                            \r
8 //                                                                                           \r
9 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
10 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
11 // \r
12 // Module Name:\r
13 //\r
14 //   FE.vfr \r
15 // \r
16 // Abstract:\r
17 // \r
18 //   File Explorer Formset\r
19 // \r
20 // Revision History: \r
21 // \r
22 // --*/\r
23 \r
24 #include "BdsStrDefs.h" \r
25 #include "FormGuid.h"\r
26 \r
27 #pragma pack(1)\r
28 typedef struct {\r
29   UINT16                    DescriptionData[75];\r
30   UINT16                    OptionalData[127];\r
31   UINT8                     Active;\r
32   UINT8                     ForceReconnect;  \r
33 } FILE_EXPLORER_NV_DATA;\r
34 #pragma pack()\r
35 \r
36 #define FORM_FILE_EXPLORER_ID                 0x001E\r
37 #define FORM_BOOT_ADD_DESCRIPTION_ID          0x001F\r
38 #define FORM_DRIVER_ADD_FILE_DESCRIPTION_ID   0x0020\r
39 #define KEY_VALUE_SAVE_AND_EXIT               0x0090\r
40 #define KEY_VALUE_NO_SAVE_AND_EXIT            0x0091\r
41 \r
42 \r
43 \r
44 formset \r
45   guid = FILE_EXPLORE_FORMSET_GUID,\r
46   title = STRING_TOKEN(STR_FILE_EXPLORER_TITLE),\r
47   help = STRING_TOKEN(STR_NULL_STRING),\r
48   class = 0,\r
49   subclass = 0,\r
50 \r
51   form formid = FORM_FILE_EXPLORER_ID,\r
52        title = STRING_TOKEN(STR_FILE_EXPLORER_TITLE);\r
53 \r
54        label FORM_FILE_EXPLORER_ID;\r
55   endform;\r
56   \r
57   form formid = FORM_BOOT_ADD_DESCRIPTION_ID,\r
58        title = STRING_TOKEN(STR_FORM_BOOT_ADD_DESC_TITLE);\r
59        \r
60        label FORM_BOOT_ADD_DESCRIPTION_ID;\r
61 \r
62        subtitle  text = STRING_TOKEN(STR_NULL_STRING);\r
63        \r
64        string    varid    = FILE_EXPLORER_NV_DATA.DescriptionData,\r
65                  prompt   = STRING_TOKEN(STR_LOAD_OPTION_DESC),\r
66                  help     = STRING_TOKEN(STR_NULL_STRING),\r
67                  minsize  = 6,\r
68                  maxsize  = 75,\r
69        endstring;\r
70 \r
71        string    varid    = FILE_EXPLORER_NV_DATA.OptionalData,\r
72                 prompt   = STRING_TOKEN(STR_OPTIONAL_DATA),\r
73                 help     = STRING_TOKEN(STR_NULL_STRING),\r
74                 minsize  = 0,\r
75                 maxsize  = 120,\r
76        endstring;\r
77 \r
78        text \r
79          help   = STRING_TOKEN(STR_SAVE_AND_EXIT),  \r
80          text   = STRING_TOKEN(STR_SAVE_AND_EXIT), \r
81          text   = STRING_TOKEN(STR_NULL_STRING),\r
82          flags  = INTERACTIVE | NV_ACCESS,\r
83          key    = KEY_VALUE_SAVE_AND_EXIT;\r
84              \r
85        text \r
86          help   = STRING_TOKEN(STR_NO_SAVE_AND_EXIT),  \r
87          text   = STRING_TOKEN(STR_NO_SAVE_AND_EXIT), \r
88          text   = STRING_TOKEN(STR_NULL_STRING),\r
89          flags  = INTERACTIVE | NV_ACCESS,\r
90          key    = KEY_VALUE_NO_SAVE_AND_EXIT;\r
91     \r
92   endform;\r
93 \r
94   form formid = FORM_DRIVER_ADD_FILE_DESCRIPTION_ID,\r
95        title = STRING_TOKEN(STR_FORM_DRV_ADD_DESC_TITLE);\r
96        \r
97        label FORM_DRIVER_ADD_FILE_DESCRIPTION_ID;\r
98        \r
99        subtitle  text = STRING_TOKEN(STR_NULL_STRING);\r
100 \r
101        string    varid    = FILE_EXPLORER_NV_DATA.DescriptionData,\r
102                  prompt   = STRING_TOKEN(STR_LOAD_OPTION_DESC),\r
103                  help     = STRING_TOKEN(STR_NULL_STRING),\r
104                  minsize  = 6,\r
105                  maxsize  = 75,\r
106        endstring;\r
107 \r
108        string    varid    = FILE_EXPLORER_NV_DATA.OptionalData,\r
109                  prompt   = STRING_TOKEN(STR_OPTIONAL_DATA),\r
110                  help     = STRING_TOKEN(STR_NULL_STRING),\r
111                  minsize  = 0,\r
112                  maxsize  = 120,\r
113        endstring; \r
114        \r
115        checkbox varid    = FILE_EXPLORER_NV_DATA.ForceReconnect,\r
116                prompt   = STRING_TOKEN(STR_LOAD_OPTION_FORCE_RECON),\r
117                help     = STRING_TOKEN(STR_LOAD_OPTION_FORCE_RECON),  \r
118                flags    = 1,\r
119                key      = 0,\r
120        endcheckbox;\r
121 \r
122        text \r
123          help   = STRING_TOKEN(STR_SAVE_AND_EXIT),  \r
124          text   = STRING_TOKEN(STR_SAVE_AND_EXIT), \r
125          text   = STRING_TOKEN(STR_NULL_STRING),\r
126          flags  = INTERACTIVE | NV_ACCESS,\r
127          key    = KEY_VALUE_SAVE_AND_EXIT;\r
128       \r
129        text \r
130          help   = STRING_TOKEN(STR_NO_SAVE_AND_EXIT),  \r
131          text   = STRING_TOKEN(STR_NO_SAVE_AND_EXIT), \r
132          text   = STRING_TOKEN(STR_NULL_STRING),\r
133          flags  = INTERACTIVE | NV_ACCESS,\r
134          key    = KEY_VALUE_NO_SAVE_AND_EXIT;\r
135                \r
136   endform;\r
137   \r
138 endformset;