Revision: 15373
http://sourceforge.net/p/edk2/code/15373
Author: jljusten
Date: 2014-03-22 07:13:57 +0000 (Sat, 22 Mar 2014)
Log Message:
-----------
OvmfPkg: PlatformDxe: add save and discard buttons to the form
The RouteConfig() function is also called now as expected.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <[email protected]>
Reviewed-by: Jordan Justen <[email protected]>
Modified Paths:
--------------
trunk/edk2/OvmfPkg/PlatformDxe/Platform.c
trunk/edk2/OvmfPkg/PlatformDxe/Platform.h
trunk/edk2/OvmfPkg/PlatformDxe/Platform.uni
trunk/edk2/OvmfPkg/PlatformDxe/PlatformForms.vfr
Modified: trunk/edk2/OvmfPkg/PlatformDxe/Platform.c
===================================================================
--- trunk/edk2/OvmfPkg/PlatformDxe/Platform.c 2014-03-22 07:13:50 UTC (rev
15372)
+++ trunk/edk2/OvmfPkg/PlatformDxe/Platform.c 2014-03-22 07:13:57 UTC (rev
15373)
@@ -185,6 +185,8 @@
OUT EFI_STRING *Progress
)
{
+ DEBUG ((EFI_D_VERBOSE, "%a: Configuration=\"%s\"\n", __FUNCTION__,
+ Configuration));
return EFI_SUCCESS;
}
@@ -201,6 +203,26 @@
OUT EFI_BROWSER_ACTION_REQUEST *ActionRequest
)
{
+ DEBUG ((EFI_D_VERBOSE, "%a: Action=0x%Lx QuestionId=%d Type=%d\n",
+ __FUNCTION__, (UINT64) Action, QuestionId, Type));
+
+ if (Action != EFI_BROWSER_ACTION_CHANGED) {
+ return EFI_UNSUPPORTED;
+ }
+
+ switch (QuestionId) {
+ case QUESTION_SAVE_EXIT:
+ *ActionRequest = EFI_BROWSER_ACTION_REQUEST_FORM_SUBMIT_EXIT;
+ break;
+
+ case QUESTION_DISCARD_EXIT:
+ *ActionRequest = EFI_BROWSER_ACTION_REQUEST_FORM_DISCARD_EXIT;
+ break;
+
+ default:
+ break;
+ }
+
return EFI_SUCCESS;
}
Modified: trunk/edk2/OvmfPkg/PlatformDxe/Platform.h
===================================================================
--- trunk/edk2/OvmfPkg/PlatformDxe/Platform.h 2014-03-22 07:13:50 UTC (rev
15372)
+++ trunk/edk2/OvmfPkg/PlatformDxe/Platform.h 2014-03-22 07:13:57 UTC (rev
15373)
@@ -28,6 +28,9 @@
#define LABEL_RES_NEXT 1
#define QUESTION_RES_NEXT 2
+#define QUESTION_SAVE_EXIT 3
+#define QUESTION_DISCARD_EXIT 4
+
//
// This structure describes the form state. Its fields relate strictly to the
// visual widgets on the form.
Modified: trunk/edk2/OvmfPkg/PlatformDxe/Platform.uni
===================================================================
--- trunk/edk2/OvmfPkg/PlatformDxe/Platform.uni 2014-03-22 07:13:50 UTC (rev
15372)
+++ trunk/edk2/OvmfPkg/PlatformDxe/Platform.uni 2014-03-22 07:13:57 UTC (rev
15373)
@@ -68,6 +68,10 @@
++ \ No newline at end of file
Modified: trunk/edk2/OvmfPkg/PlatformDxe/PlatformForms.vfr
===================================================================
--- trunk/edk2/OvmfPkg/PlatformDxe/PlatformForms.vfr 2014-03-22 07:13:50 UTC
(rev 15372)
+++ trunk/edk2/OvmfPkg/PlatformDxe/PlatformForms.vfr 2014-03-22 07:13:57 UTC
(rev 15373)
@@ -56,6 +56,19 @@
// We'll dynamically generate a one-of-many selection at this label.
//
label LABEL_RES_NEXT;
+
+ text
+ help = STRING_TOKEN(STR_SAVE_EXIT),
+ text = STRING_TOKEN(STR_SAVE_EXIT),
+ flags = INTERACTIVE,
+ key = QUESTION_SAVE_EXIT;
+
+ text
+ help = STRING_TOKEN(STR_DISCARD_EXIT),
+ text = STRING_TOKEN(STR_DISCARD_EXIT),
+ flags = INTERACTIVE,
+ key = QUESTION_DISCARD_EXIT;
+
endform;
endformset;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits