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 <lersek@redhat.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15373 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
da07afaf59
commit
1df57ba3e6
@ -185,6 +185,8 @@ RouteConfig (
|
|||||||
OUT EFI_STRING *Progress
|
OUT EFI_STRING *Progress
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
DEBUG ((EFI_D_VERBOSE, "%a: Configuration=\"%s\"\n", __FUNCTION__,
|
||||||
|
Configuration));
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -201,6 +203,26 @@ Callback (
|
|||||||
OUT EFI_BROWSER_ACTION_REQUEST *ActionRequest
|
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;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,6 +28,9 @@
|
|||||||
#define LABEL_RES_NEXT 1
|
#define LABEL_RES_NEXT 1
|
||||||
#define QUESTION_RES_NEXT 2
|
#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
|
// This structure describes the form state. Its fields relate strictly to the
|
||||||
// visual widgets on the form.
|
// visual widgets on the form.
|
||||||
|
Binary file not shown.
@ -56,6 +56,19 @@ formset
|
|||||||
// We'll dynamically generate a one-of-many selection at this label.
|
// We'll dynamically generate a one-of-many selection at this label.
|
||||||
//
|
//
|
||||||
label LABEL_RES_NEXT;
|
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;
|
endform;
|
||||||
|
|
||||||
endformset;
|
endformset;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user