Dandan Bi a409875592 MdeModulePkg/FileExplorer: Enable functionality of creating new file/folder
https://bugzilla.tianocore.org/show_bug.cgi?id=324

Enhance the FileExplorerlib so that user can create a new file/folder
through the UI page.

Cc: Eric Dong <eric.dong@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
2017-01-19 10:14:37 +08:00

85 lines
2.7 KiB
Plaintext

///** @file
//
// File Explorer Formset
//
// Copyright (c) 2004 - 2017, 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.
//
//**/
#include "FormGuid.h"
formset
guid = EFI_FILE_EXPLORE_FORMSET_GUID,
title = STRING_TOKEN(STR_FILE_EXPLORER_TITLE),
help = STRING_TOKEN(STR_NULL_STRING),
classguid = EFI_FILE_EXPLORE_FORMSET_GUID,
form formid = FORM_FILE_EXPLORER_ID,
title = STRING_TOKEN(STR_FILE_EXPLORER_TITLE);
label FORM_FILE_EXPLORER_ID;
label LABEL_END;
endform;
form formid = FORM_ADD_NEW_FILE_ID,
title = STRING_TOKEN(STR_ADD_NEW_FILE_TITLE);
string
prompt = STRING_TOKEN(STR_NEW_FILE_NAME_PROMPT),
help = STRING_TOKEN(STR_NEW_FILE_NAME_HELP),
flags = INTERACTIVE,
key = NEW_FILE_NAME_ID,
minsize = 2,
maxsize = 20,
endstring;
subtitle text = STRING_TOKEN(STR_NULL_STRING);
text
help = STRING_TOKEN(STR_CREATE_FILE_AND_EXIT),
text = STRING_TOKEN(STR_CREATE_FILE_AND_EXIT),
flags = INTERACTIVE,
key = KEY_VALUE_CREATE_FILE_AND_EXIT;
text
help = STRING_TOKEN(STR_NO_CREATE_FILE_AND_EXIT),
text = STRING_TOKEN(STR_NO_CREATE_FILE_AND_EXIT),
flags = INTERACTIVE,
key = KEY_VALUE_NO_CREATE_FILE_AND_EXIT;
endform;
form formid = FORM_ADD_NEW_FOLDER_ID,
title = STRING_TOKEN(STR_ADD_NEW_FOLDER_TITLE);
string
prompt = STRING_TOKEN(STR_NEW_FOLDER_NAME_PROMPT),
help = STRING_TOKEN(STR_NEW_FOLDER_NAME_HELP),
flags = INTERACTIVE,
key = NEW_FOLDER_NAME_ID,
minsize = 2,
maxsize = 20,
endstring;
subtitle text = STRING_TOKEN(STR_NULL_STRING);
text
help = STRING_TOKEN(STR_CREATE_FOLDER_AND_EXIT),
text = STRING_TOKEN(STR_CREATE_FOLDER_AND_EXIT),
flags = INTERACTIVE,
key = KEY_VALUE_CREATE_FOLDER_AND_EXIT;
text
help = STRING_TOKEN(STR_NO_CREATE_FOLDER_AND_EXIT),
text = STRING_TOKEN(STR_NO_CREATE_FOLDER_AND_EXIT),
flags = INTERACTIVE,
key = KEY_VALUE_NO_CREATE_FOLDER_AND_EXIT;
endform;
endformset;