- Instances of the other objects of the editor\r
- Main Interfaces\r
\r
- Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved. <BR>\r
+ Copyright (c) 2005 - 2012, Intel Corporation. All rights reserved. <BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
HEFI_EDITOR_GLOBAL_EDITOR HMainEditorConst = {\r
&HBufferImage,\r
{\r
- 0,\r
- 0\r
+ {0, 0}\r
},\r
{\r
0,\r
VOID\r
)\r
{\r
- INTN CurrentLine=0;\r
+ INT32 CurrentLine;\r
CHAR16 * InfoString;\r
EFI_INPUT_KEY Key;\r
- \r
+\r
+ CurrentLine = 0;\r
// print helpInfo \r
for (CurrentLine = 0; 0 != HexMainMenuHelpInfo[CurrentLine]; CurrentLine++) {\r
InfoString = HiiGetString(gShellDebug1HiiHandle, HexMainMenuHelpInfo[CurrentLine]\r
// the file won't be saved\r
//\r
return EFI_SUCCESS;\r
- break;\r
\r
case L'c':\r
case L'C':\r
)\r
{\r
UINTN Index;\r
- HEFI_EDITOR_LINE *Line;\r
LIST_ENTRY *Link;\r
UINT8 *Buffer;\r
UINTN Count;\r
Link = Link->ForwardLink;\r
}\r
\r
- Line = CR (Link, HEFI_EDITOR_LINE, Link, EFI_EDITOR_LINE_LIST);\r
-\r
Count = HMainEditor.SelectEnd - HMainEditor.SelectStart + 1;\r
Buffer = AllocateZeroPool (Count);\r
if (Buffer == NULL) {\r
NULL, /* Ctrl - A */\r
NULL, /* Ctrl - B */\r
NULL, /* Ctrl - C */\r
- NULL, /* Ctrl - D */\r
+ HMainCommandSelectEnd, /* Ctrl - D */\r
HMainCommandDisplayHelp, /* Ctrl - E */\r
NULL, /* Ctrl - F */\r
- NULL, /* Ctrl - G */\r
+ HMainCommandGoToOffset, /* Ctrl - G */\r
NULL, /* Ctrl - H */\r
- NULL, /* Ctrl - I */\r
+ HMainCommandOpenDisk, /* Ctrl - I */\r
NULL, /* Ctrl - J */\r
NULL, /* Ctrl - K */\r
NULL, /* Ctrl - L */\r
- NULL, /* Ctrl - M */\r
+ HMainCommandOpenMemory, /* Ctrl - M */\r
NULL, /* Ctrl - N */\r
- NULL, /* Ctrl - O */\r
+ HMainCommandOpenFile, /* Ctrl - O */\r
NULL, /* Ctrl - P */\r
- NULL, /* Ctrl - Q */\r
+ HMainCommandExit, /* Ctrl - Q */\r
NULL, /* Ctrl - R */\r
- NULL, /* Ctrl - S */\r
- NULL, /* Ctrl - T */\r
+ HMainCommandSaveBuffer, /* Ctrl - S */\r
+ HMainCommandSelectStart, /* Ctrl - T */\r
NULL, /* Ctrl - U */\r
- NULL, /* Ctrl - V */\r
+ HMainCommandPaste, /* Ctrl - V */\r
NULL, /* Ctrl - W */\r
- NULL, /* Ctrl - X */\r
+ HMainCommandCut, /* Ctrl - X */\r
NULL, /* Ctrl - Y */\r
NULL, /* Ctrl - Z */\r
};\r
//\r
// below will call the five components' init function\r
//\r
- Status = MainTitleBarInit (NULL);\r
+ Status = MainTitleBarInit (L"UEFI HEXEDIT");\r
if (EFI_ERROR (Status)) {\r
ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_HEXEDIT_LIBEDITOR_MAINEDITOR_TITLE), gShellDebug1HiiHandle);\r
return EFI_LOAD_ERROR;\r
Backup function for MainEditor.\r
**/\r
VOID\r
-EFIAPI\r
HMainEditorBackup (\r
VOID\r
)\r