]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Based on the feature PCD value, browser will decide whether to gray out the read...
authorydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 29 Jan 2013 06:52:38 +0000 (06:52 +0000)
committerydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 29 Jan 2013 06:52:38 +0000 (06:52 +0000)
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14112 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/MdeModulePkg.dec
MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
MdeModulePkg/Universal/SetupBrowserDxe/Ui.c

index 710e3e6a04ce4cfccbb59845f1a4b552a44db2bc..ba80b809dc003397364262bd0ef62dcdd85086ea 100644 (file)
@@ -4,7 +4,7 @@
 # It also provides the defintions(including PPIs/PROTOCOLs/GUIDs and library classes)\r
 # and libraries instances, which are used for those modules.\r
 #\r
-# Copyright (c) 2007 - 2012, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2007 - 2013, Intel Corporation. All rights reserved.<BR>\r
 # This program and the accompanying materials are licensed and made available under \r
 # the terms and conditions of the BSD License that accompanies this distribution.  \r
 # The full text of the license may be found at\r
   #  If FALSE, TEXT statement will be set to GrayOut only when GrayOut condition is TRUE.\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdBrowserGrayOutTextStatement|FALSE|BOOLEAN|0x0001004f\r
   \r
+  ## This PCD specifies whether unselectable menu should be gray out in HII Form Browser.\r
+  # If TRUE, the unselectable menu will be set to GrayOut.\r
+  # If FALSE, the menu will be show as normal menu entry even if it is not selectable.\r
+  gEfiMdeModulePkgTokenSpaceGuid.PcdBrowerGrayOutReadOnlyMenu|FALSE|BOOLEAN|0x00010070\r
+\r
   ## If TRUE, recovery from IDE disk will be supported.\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdRecoveryOnIdeDisk|TRUE|BOOLEAN|0x00010060\r
 \r
index 2a4cda41e3aa998d447bc8e8f10f687603b8c85c..7e740bc0990548c0041afafa1c623dc5d8432587 100644 (file)
@@ -80,6 +80,7 @@
 [FeaturePcd]\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdFrameworkCompatibilitySupport          ## CONSUMES\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdBrowserGrayOutTextStatement            ## CONSUMES\r
+  gEfiMdeModulePkgTokenSpaceGuid.PcdBrowerGrayOutReadOnlyMenu              ## CONSUMES\r
 \r
 [Pcd]\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdBrowserSubtitleTextColor               ## CONSUMES\r
index 8ff90e144069102bcaf3966517ada72ce827e5e0..e9f9f70edac4063a9871a7a9b4c22af6943cd851 100644 (file)
@@ -778,6 +778,9 @@ UiAddMenuOption (
     if ((Statement->ValueExpression != NULL) ||\r
         ((Statement->QuestionFlags & EFI_IFR_FLAG_READ_ONLY) != 0)) {\r
       MenuOption->ReadOnly = TRUE;\r
+      if (FeaturePcdGet (PcdBrowerGrayOutReadOnlyMenu)) {\r
+        MenuOption->GrayOut = TRUE;\r
+      }\r
     }\r
 \r
     InsertTailList (&gMenuOption, &MenuOption->Link);\r