Change file arrangement to let user easy customize the front page UI. After this change: 1. UiCustomizeFrontPage function in FrontPageCustomizedUi.c use to let user customize front page menus. UiFrontPageCallbackHandler function use to handle the callback for the added menus. 2. FrontPageCustomizedUiSupport.c file used to add support functions used by FrontPageCustomizedUi.c file. 3. After this change, only above two files need to be updated if front page menus needed to be changed. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
		
			
				
	
	
		
			87 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			87 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| ///** @file
 | |
| //  
 | |
| //  Front page formset.
 | |
| //  
 | |
| //  Copyright (c) 2007 - 2015, Intel Corporation. All rights reserved.<BR>
 | |
| //  This program and the accompanying materials
 | |
| //  are licensed and made available under the terms and conditions of the BSD License
 | |
| //  which accompanies this distribution.  The full text of the license may be found at
 | |
| //  http://opensource.org/licenses/bsd-license.php
 | |
| //  
 | |
| //  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
 | |
| //  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 | |
| //  
 | |
| //**/
 | |
| 
 | |
| #define FORMSET_GUID  { 0x9e0c30bc, 0x3f06, 0x4ba6, 0x82, 0x88, 0x9, 0x17, 0x9b, 0x85, 0x5d, 0xbe }
 | |
| 
 | |
| #define FRONT_PAGE_FORM_ID             0x1000
 | |
| 
 | |
| #define LABEL_FRANTPAGE_INFORMATION    0x1000
 | |
| #define LABEL_END                      0xffff
 | |
| 
 | |
| formset
 | |
|   guid     = FORMSET_GUID,
 | |
|   title    = STRING_TOKEN(STR_FRONT_PAGE_TITLE),
 | |
|   help     = STRING_TOKEN(STR_EMPTY_STRING ),
 | |
|   classguid = FORMSET_GUID,
 | |
| 
 | |
|   form formid = FRONT_PAGE_FORM_ID,
 | |
|        title  = STRING_TOKEN(STR_FRONT_PAGE_TITLE);
 | |
| 
 | |
|     banner
 | |
|       title = STRING_TOKEN(STR_FRONT_PAGE_COMPUTER_MODEL),
 | |
|       line  1,
 | |
|       align left;
 | |
| 
 | |
|     banner
 | |
|       title = STRING_TOKEN(STR_FRONT_PAGE_CPU_MODEL),
 | |
|       line  2,
 | |
|       align left;
 | |
| 
 | |
|     banner
 | |
|       title = STRING_TOKEN(STR_FRONT_PAGE_CPU_SPEED),
 | |
|       line  2,
 | |
|       align right;
 | |
| 
 | |
|     banner
 | |
|       title = STRING_TOKEN(STR_FRONT_PAGE_BIOS_VERSION),
 | |
|       line  3,
 | |
|       align left;
 | |
| 
 | |
|     banner
 | |
|       title = STRING_TOKEN(STR_FRONT_PAGE_MEMORY_SIZE),
 | |
|       line  3,
 | |
|       align right;
 | |
| 
 | |
|     banner
 | |
|       title = STRING_TOKEN(STR_CUSTOMIZE_BANNER_LINE4_LEFT),
 | |
|       line  4,
 | |
|       align left;
 | |
| 
 | |
|     banner
 | |
|       title = STRING_TOKEN(STR_CUSTOMIZE_BANNER_LINE4_RIGHT),
 | |
|       line  4,
 | |
|       align right;
 | |
| 
 | |
|     banner
 | |
|       title = STRING_TOKEN(STR_CUSTOMIZE_BANNER_LINE5_LEFT),
 | |
|       line  5,
 | |
|       align left;
 | |
| 
 | |
|     banner
 | |
|       title = STRING_TOKEN(STR_CUSTOMIZE_BANNER_LINE5_RIGHT),
 | |
|       line  5,
 | |
|       align right;
 | |
| 
 | |
|     label LABEL_FRANTPAGE_INFORMATION;
 | |
|     //
 | |
|     // This is where we will dynamically add a Action type op-code to show 
 | |
|     // the platform information.
 | |
|     //
 | |
|     label LABEL_END;
 | |
| 
 | |
|   endform;
 | |
| 
 | |
| endformset;
 |