mirror of https://github.com/acidanthera/audk.git
Based on the feature PCD value, browser will decide whether to gray out the read only menu.
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
This commit is contained in:
parent
0c504abf90
commit
0777cea600
|
@ -4,7 +4,7 @@
|
||||||
# It also provides the defintions(including PPIs/PROTOCOLs/GUIDs and library classes)
|
# It also provides the defintions(including PPIs/PROTOCOLs/GUIDs and library classes)
|
||||||
# and libraries instances, which are used for those modules.
|
# and libraries instances, which are used for those modules.
|
||||||
#
|
#
|
||||||
# Copyright (c) 2007 - 2012, Intel Corporation. All rights reserved.<BR>
|
# Copyright (c) 2007 - 2013, Intel Corporation. All rights reserved.<BR>
|
||||||
# This program and the accompanying materials are licensed and made available under
|
# This program and the accompanying materials are licensed and made available under
|
||||||
# the terms and conditions of the BSD License that accompanies this distribution.
|
# the terms and conditions of the BSD License that accompanies this distribution.
|
||||||
# The full text of the license may be found at
|
# The full text of the license may be found at
|
||||||
|
@ -453,6 +453,11 @@
|
||||||
# If FALSE, TEXT statement will be set to GrayOut only when GrayOut condition is TRUE.
|
# If FALSE, TEXT statement will be set to GrayOut only when GrayOut condition is TRUE.
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdBrowserGrayOutTextStatement|FALSE|BOOLEAN|0x0001004f
|
gEfiMdeModulePkgTokenSpaceGuid.PcdBrowserGrayOutTextStatement|FALSE|BOOLEAN|0x0001004f
|
||||||
|
|
||||||
|
## This PCD specifies whether unselectable menu should be gray out in HII Form Browser.
|
||||||
|
# If TRUE, the unselectable menu will be set to GrayOut.
|
||||||
|
# If FALSE, the menu will be show as normal menu entry even if it is not selectable.
|
||||||
|
gEfiMdeModulePkgTokenSpaceGuid.PcdBrowerGrayOutReadOnlyMenu|FALSE|BOOLEAN|0x00010070
|
||||||
|
|
||||||
## If TRUE, recovery from IDE disk will be supported.
|
## If TRUE, recovery from IDE disk will be supported.
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdRecoveryOnIdeDisk|TRUE|BOOLEAN|0x00010060
|
gEfiMdeModulePkgTokenSpaceGuid.PcdRecoveryOnIdeDisk|TRUE|BOOLEAN|0x00010060
|
||||||
|
|
||||||
|
|
|
@ -80,6 +80,7 @@
|
||||||
[FeaturePcd]
|
[FeaturePcd]
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdFrameworkCompatibilitySupport ## CONSUMES
|
gEfiMdeModulePkgTokenSpaceGuid.PcdFrameworkCompatibilitySupport ## CONSUMES
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdBrowserGrayOutTextStatement ## CONSUMES
|
gEfiMdeModulePkgTokenSpaceGuid.PcdBrowserGrayOutTextStatement ## CONSUMES
|
||||||
|
gEfiMdeModulePkgTokenSpaceGuid.PcdBrowerGrayOutReadOnlyMenu ## CONSUMES
|
||||||
|
|
||||||
[Pcd]
|
[Pcd]
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdBrowserSubtitleTextColor ## CONSUMES
|
gEfiMdeModulePkgTokenSpaceGuid.PcdBrowserSubtitleTextColor ## CONSUMES
|
||||||
|
|
|
@ -778,6 +778,9 @@ UiAddMenuOption (
|
||||||
if ((Statement->ValueExpression != NULL) ||
|
if ((Statement->ValueExpression != NULL) ||
|
||||||
((Statement->QuestionFlags & EFI_IFR_FLAG_READ_ONLY) != 0)) {
|
((Statement->QuestionFlags & EFI_IFR_FLAG_READ_ONLY) != 0)) {
|
||||||
MenuOption->ReadOnly = TRUE;
|
MenuOption->ReadOnly = TRUE;
|
||||||
|
if (FeaturePcdGet (PcdBrowerGrayOutReadOnlyMenu)) {
|
||||||
|
MenuOption->GrayOut = TRUE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
InsertTailList (&gMenuOption, &MenuOption->Link);
|
InsertTailList (&gMenuOption, &MenuOption->Link);
|
||||||
|
|
Loading…
Reference in New Issue