Home | History | Annotate | Download | only in BootMaint
      1 ///** @file
      2 //  
      3 //    File Explorer Formset
      4 //  
      5 //  Copyright (c) 2004 - 2014, 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 "FormGuid.h"
     17 
     18 formset
     19   guid = FILE_EXPLORE_FORMSET_GUID,
     20   title = STRING_TOKEN(STR_FILE_EXPLORER_TITLE),
     21   help = STRING_TOKEN(STR_NULL_STRING),
     22   classguid = FILE_EXPLORE_FORMSET_GUID,
     23 
     24   varstore FILE_EXPLORER_NV_DATA,
     25     varid = VARSTORE_ID_BOOT_MAINT,
     26     name = FeData,
     27     guid = FILE_EXPLORE_FORMSET_GUID;
     28 
     29   form formid = FORM_FILE_EXPLORER_ID,
     30        title = STRING_TOKEN(STR_FILE_EXPLORER_TITLE);
     31 
     32        label FORM_FILE_EXPLORER_ID;
     33        label LABEL_END;
     34   endform;
     35 
     36   form formid = FORM_BOOT_ADD_DESCRIPTION_ID,
     37        title = STRING_TOKEN(STR_FORM_BOOT_ADD_DESC_TITLE);
     38 
     39        label FORM_BOOT_ADD_DESCRIPTION_ID;
     40        label LABEL_END;
     41 
     42        subtitle text = STRING_TOKEN(STR_NULL_STRING);
     43 
     44        string    varid    = FeData.BootDescriptionData,
     45                  questionid = KEY_VALUE_BOOT_DESCRIPTION,
     46                  prompt   = STRING_TOKEN(STR_LOAD_OPTION_DESC),
     47                  help     = STRING_TOKEN(STR_NULL_STRING),
     48                  flags    = INTERACTIVE,
     49                  minsize  = 6,
     50                  maxsize  = 75,
     51        endstring;
     52 
     53        string    varid    = FeData.BootOptionalData,
     54                  questionid = KEY_VALUE_BOOT_OPTION,
     55                  prompt   = STRING_TOKEN(STR_OPTIONAL_DATA),
     56                  help     = STRING_TOKEN(STR_NULL_STRING),
     57                  flags    = INTERACTIVE,
     58                  minsize  = 0,
     59                  maxsize  = 120,
     60        endstring;
     61 
     62        subtitle text = STRING_TOKEN(STR_NULL_STRING);
     63 
     64        text
     65          help   = STRING_TOKEN(STR_SAVE_AND_EXIT),
     66          text   = STRING_TOKEN(STR_SAVE_AND_EXIT),
     67          flags  = INTERACTIVE,
     68          key    = KEY_VALUE_SAVE_AND_EXIT_BOOT;
     69 
     70        text
     71          help   = STRING_TOKEN(STR_NO_SAVE_AND_EXIT),
     72          text   = STRING_TOKEN(STR_NO_SAVE_AND_EXIT),
     73          flags  = INTERACTIVE,
     74          key    = KEY_VALUE_NO_SAVE_AND_EXIT_BOOT;
     75 
     76   endform;
     77 
     78   form formid = FORM_DRIVER_ADD_FILE_DESCRIPTION_ID,
     79        title = STRING_TOKEN(STR_FORM_DRV_ADD_DESC_TITLE);
     80 
     81        label FORM_DRIVER_ADD_FILE_DESCRIPTION_ID;
     82        label LABEL_END;
     83 
     84        subtitle text = STRING_TOKEN(STR_NULL_STRING);
     85 
     86        string    varid    = FeData.DriverDescriptionData,
     87                  questionid = KEY_VALUE_DRIVER_DESCRIPTION,
     88                  prompt   = STRING_TOKEN(STR_LOAD_OPTION_DESC),
     89                  help     = STRING_TOKEN(STR_NULL_STRING),
     90                  flags    = INTERACTIVE,
     91                  minsize  = 6,
     92                  maxsize  = 75,
     93        endstring;
     94 
     95        string    varid    = FeData.DriverOptionalData,
     96                  questionid = KEY_VALUE_DRIVER_OPTION,
     97                  prompt   = STRING_TOKEN(STR_OPTIONAL_DATA),
     98                  help     = STRING_TOKEN(STR_NULL_STRING),
     99                  flags    = INTERACTIVE,
    100                  minsize  = 0,
    101                  maxsize  = 120,
    102        endstring;
    103 
    104        checkbox varid    = FeData.ForceReconnect,
    105                prompt   = STRING_TOKEN(STR_LOAD_OPTION_FORCE_RECON),
    106                help     = STRING_TOKEN(STR_LOAD_OPTION_FORCE_RECON),
    107                flags    = CHECKBOX_DEFAULT,
    108                key      = 0,
    109        endcheckbox;
    110 
    111        subtitle text = STRING_TOKEN(STR_NULL_STRING);
    112 
    113        text
    114          help   = STRING_TOKEN(STR_SAVE_AND_EXIT),
    115          text   = STRING_TOKEN(STR_SAVE_AND_EXIT),
    116          flags  = INTERACTIVE,
    117          key    = KEY_VALUE_SAVE_AND_EXIT_DRIVER;  //BUGBUB: allow duplicate key in one formset???
    118 
    119        text
    120          help   = STRING_TOKEN(STR_NO_SAVE_AND_EXIT),
    121          text   = STRING_TOKEN(STR_NO_SAVE_AND_EXIT),
    122          flags  = INTERACTIVE,
    123          key    = KEY_VALUE_NO_SAVE_AND_EXIT_DRIVER;
    124 
    125   endform;
    126 
    127 endformset;