]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/SetupBrowserDxe/Ui.h
1. When get value from AltCfg data, check the varstore type first.
[mirror_edk2.git] / MdeModulePkg / Universal / SetupBrowserDxe / Ui.h
index cdd661ca9913c0a25690d31fe99c0414d341f9a4..321bdaceab287b5c550f17f13dacf70dbf0de41d 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
 Private structure, MACRO and function definitions for User Interface related functionalities.\r
 \r
-Copyright (c) 2004 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2011, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -76,6 +76,8 @@ typedef enum {
 #define UI_ACTION_REFRESH_FORMSET    2\r
 #define UI_ACTION_EXIT               3\r
 \r
+typedef struct _UI_MENU_LIST UI_MENU_LIST;\r
+\r
 typedef struct {\r
   EFI_HII_HANDLE  Handle;\r
 \r
@@ -111,6 +113,8 @@ typedef struct {
   // Whether the Form is editable\r
   //\r
   BOOLEAN                 FormEditable;\r
+\r
+  UI_MENU_LIST            *CurrentMenu;\r
 } UI_MENU_SELECTION;\r
 \r
 #define UI_MENU_OPTION_SIGNATURE  SIGNATURE_32 ('u', 'i', 'm', 'm')\r
@@ -152,8 +156,6 @@ typedef struct {
 \r
 #define MENU_OPTION_FROM_LINK(a)  CR (a, UI_MENU_OPTION, Link, UI_MENU_OPTION_SIGNATURE)\r
 \r
-typedef struct _UI_MENU_LIST UI_MENU_LIST;\r
-\r
 struct _UI_MENU_LIST {\r
   UINTN           Signature;\r
   LIST_ENTRY      Link;\r
@@ -176,6 +178,7 @@ struct _MENU_REFRESH_ENTRY {
   UINTN                       CurrentColumn;\r
   UINTN                       CurrentRow;\r
   UINTN                       CurrentAttribute;\r
+  EFI_EVENT                   Event;\r
 };\r
 \r
 typedef struct {\r
@@ -389,6 +392,7 @@ UiWaitForSingleEvent (
 \r
 **/\r
 VOID\r
+EFIAPI\r
 CreateMultiStringPopUp (\r
   IN  UINTN                       ScreenWidth,\r
   IN  UINTN                       NumberOfLines,\r
@@ -448,6 +452,7 @@ GetNumericInput (
 /**\r
   Update status bar on the bottom of menu.\r
 \r
+  @param  Selection              Current selection info.\r
   @param  MessageType            The type of message to be shown.\r
   @param  Flags                  The flags in Question header.\r
   @param  State                  Set or clear.\r
@@ -455,6 +460,7 @@ GetNumericInput (
 **/\r
 VOID\r
 UpdateStatusBar (\r
+  IN  UI_MENU_SELECTION           *Selection,\r
   IN  UINTN                       MessageType,\r
   IN  UINT8                       Flags,\r
   IN  BOOLEAN                     State\r