TianoCore EDK2 master
|
#include "TextEditor.h"
#include "EditStatusBar.h"
#include "EditInputBar.h"
#include "EditMenuBar.h"
Go to the source code of this file.
Functions | |
EFI_STATUS | MainCommandOpenFile (VOID) |
EFI_STATUS | MainCommandSwitchFileType (VOID) |
EFI_STATUS | MainCommandGotoLine (VOID) |
EFI_STATUS | MainCommandSaveFile (VOID) |
EFI_STATUS | MainCommandDisplayHelp (VOID) |
EFI_STATUS | MainCommandExit (VOID) |
EFI_STATUS | MainCommandSearch (VOID) |
EFI_STATUS | MainCommandSearchReplace (VOID) |
EFI_STATUS | MainCommandCutLine (VOID) |
EFI_STATUS | MainCommandPasteLine (VOID) |
EFI_STATUS | MainEditorInit (VOID) |
EFI_STATUS | MainEditorCleanup (VOID) |
VOID | MainEditorRefresh (VOID) |
INT32 | GetTextX (IN INT32 GuidX) |
INT32 | GetTextY (IN INT32 GuidY) |
EFI_STATUS | MainEditorHandleMouseInput (IN EFI_SIMPLE_POINTER_STATE MouseState) |
EFI_STATUS | MainEditorKeyInput (VOID) |
EFI_STATUS | MainEditorSetCutLine (EFI_EDITOR_LINE *Line) |
EFI_STATUS | MainEditorBackup (VOID) |
Variables | |
BOOLEAN | EditorFirst |
BOOLEAN | EditorExit |
BOOLEAN | EditorMouseAction |
EFI_EDITOR_FILE_BUFFER | FileBuffer |
BOOLEAN | FileBufferNeedRefresh |
BOOLEAN | FileBufferOnlyLineNeedRefresh |
BOOLEAN | FileBufferMouseNeedRefresh |
EFI_EDITOR_FILE_BUFFER | FileBufferBackupVar |
EFI_EDITOR_GLOBAL_EDITOR | MainEditor |
EFI_STRING_ID | MainMenuHelpInfo [] |
MENU_ITEM_FUNCTION | MainControlBasedMenuFunctions [] |
EDITOR_MENU_ITEM | MainMenuItems [] |
EFI_EDITOR_COLOR_ATTRIBUTES | OriginalColors |
INTN | OriginalMode |
EFI_EDITOR_GLOBAL_EDITOR | MainEditorConst |
Implements editor interface functions.
Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file MainTextEditor.c.
INT32 GetTextX | ( | IN INT32 | GuidX | ) |
Get's the resultant location of the cursor based on the relative movement of the Mouse.
[in] | GuidX | The relative mouse movement. |
Definition at line 1708 of file MainTextEditor.c.
INT32 GetTextY | ( | IN INT32 | GuidY | ) |
Get's the resultant location of the cursor based on the relative movement of the Mouse.
[in] | GuidY | The relative mouse movement. |
Definition at line 1729 of file MainTextEditor.c.
EFI_STATUS MainCommandCutLine | ( | VOID | ) |
cut current line to clipboard
EFI_SUCCESS | The operation was successful. |
EFI_OUT_OF_RESOURCES | A memory allocation failed. |
EFI_LOAD_ERROR | A load error occurred. |
Definition at line 473 of file MainTextEditor.c.
EFI_STATUS MainCommandDisplayHelp | ( | VOID | ) |
Show help information for the editor.
EFI_SUCCESS | The operation was successful. |
Definition at line 1366 of file MainTextEditor.c.
EFI_STATUS MainCommandExit | ( | VOID | ) |
exit editor
EFI_SUCCESS | The operation was successful. |
EFI_OUT_OF_RESOURCES | A memory allocation failed. |
EFI_LOAD_ERROR | A load error occurred. |
Definition at line 997 of file MainTextEditor.c.
EFI_STATUS MainCommandGotoLine | ( | VOID | ) |
move cursor to specified lines
EFI_SUCCESS | The operation was successful. |
Definition at line 1075 of file MainTextEditor.c.
EFI_STATUS MainCommandOpenFile | ( | VOID | ) |
Load a file from disk to editor
EFI_SUCCESS | The operation was successful. |
EFI_LOAD_ERROR | A load error occurred. |
EFI_OUT_OF_RESOURCES | A memory allocation failed. |
Definition at line 282 of file MainTextEditor.c.
EFI_STATUS MainCommandPasteLine | ( | VOID | ) |
paste line to file buffer.
EFI_SUCCESS | The operation was successful. |
EFI_OUT_OF_RESOURCES | A memory allocation failed. |
EFI_LOAD_ERROR | A load error occurred. |
Definition at line 511 of file MainTextEditor.c.
EFI_STATUS MainCommandSaveFile | ( | VOID | ) |
Save current file to disk, you can save to current file name or save to another file name.
EFI_SUCCESS | The file was saved correctly. |
EFI_OUT_OF_RESOURCES | A memory allocation failed. |
EFI_LOAD_ERROR | A file access error occurred. |
Definition at line 1151 of file MainTextEditor.c.
EFI_STATUS MainCommandSearch | ( | VOID | ) |
search string in file buffer
EFI_SUCCESS | The operation was successful. |
EFI_OUT_OF_RESOURCES | A memory allocation failed. |
EFI_LOAD_ERROR | A load error occurred. |
Definition at line 542 of file MainTextEditor.c.
EFI_STATUS MainCommandSearchReplace | ( | VOID | ) |
search string in file buffer, and replace it with another str
EFI_SUCCESS | The operation was successful. |
EFI_OUT_OF_RESOURCES | A memory allocation failed. |
EFI_LOAD_ERROR | A load error occurred. |
Search string in file buffer, and replace it with another str.
EFI_SUCCESS | The operation was successful. |
EFI_OUT_OF_RESOURCES | A memory allocation failed. |
EFI_LOAD_ERROR | A load error occurred. |
Definition at line 687 of file MainTextEditor.c.
EFI_STATUS MainCommandSwitchFileType | ( | VOID | ) |
Switch a file from ASCII to UNICODE or vise-versa.
EFI_SUCCESS | The switch was ok or a warning was presented. |
Definition at line 440 of file MainTextEditor.c.
EFI_STATUS MainEditorBackup | ( | VOID | ) |
Backup function for MainEditor
EFI_SUCCESS | The operation was successful. |
Definition at line 1985 of file MainTextEditor.c.
EFI_STATUS MainEditorCleanup | ( | VOID | ) |
The cleanup function for MainEditor.
EFI_SUCCESS | The operation was successful. |
EFI_LOAD_ERROR | A load error occurred. |
Definition at line 1611 of file MainTextEditor.c.
EFI_STATUS MainEditorHandleMouseInput | ( | IN EFI_SIMPLE_POINTER_STATE | MouseState | ) |
Support mouse movement. Move the cursor.
[in] | MouseState | The current mouse state. |
EFI_SUCCESS | The operation was successful. |
EFI_NOT_FOUND | There was no mouse support found. |
Definition at line 1752 of file MainTextEditor.c.
EFI_STATUS MainEditorInit | ( | VOID | ) |
The initialization function for MainEditor.
EFI_SUCCESS | The operation was successful. |
EFI_LOAD_ERROR | A load error occurred. |
Definition at line 1463 of file MainTextEditor.c.
EFI_STATUS MainEditorKeyInput | ( | VOID | ) |
Handle user key input. This routes to other functions for the actions.
EFI_SUCCESS | The operation was successful. |
EFI_LOAD_ERROR | A load error occurred. |
EFI_OUT_OF_RESOURCES | A memory allocation failed. |
Definition at line 1850 of file MainTextEditor.c.
VOID MainEditorRefresh | ( | VOID | ) |
Refresh the main editor component.
Definition at line 1656 of file MainTextEditor.c.
EFI_STATUS MainEditorSetCutLine | ( | EFI_EDITOR_LINE * | Line | ) |
Set clipboard
[in] | Line | A pointer to the line to be set to clipboard |
EFI_SUCCESS | The operation was successful. |
EFI_OUT_OF_RESOURCES | A memory allocation failed. |
Definition at line 1953 of file MainTextEditor.c.
BOOLEAN EditorExit |
Definition at line 22 of file MainTextEditor.c.
BOOLEAN EditorFirst |
Definition at line 17 of file MainTextEditor.c.
BOOLEAN EditorMouseAction |
Definition at line 24 of file MainTextEditor.c.
|
extern |
Definition at line 13 of file FileBuffer.c.
|
extern |
Definition at line 14 of file FileBuffer.c.
|
extern |
Definition at line 57 of file FileBuffer.c.
|
extern |
Definition at line 50 of file FileBuffer.c.
|
extern |
Definition at line 55 of file FileBuffer.c.
MENU_ITEM_FUNCTION MainControlBasedMenuFunctions[] |
EFI_EDITOR_GLOBAL_EDITOR MainEditor |
Definition at line 36 of file MainTextEditor.c.
EFI_EDITOR_GLOBAL_EDITOR MainEditorConst |
Definition at line 1441 of file MainTextEditor.c.
EFI_STRING_ID MainMenuHelpInfo[] |
Help info that will be displayed.
Definition at line 156 of file MainTextEditor.c.
EDITOR_MENU_ITEM MainMenuItems[] |
Definition at line 213 of file MainTextEditor.c.
EFI_EDITOR_COLOR_ATTRIBUTES OriginalColors |
Definition at line 1435 of file MainTextEditor.c.
INTN OriginalMode |
Definition at line 1436 of file MainTextEditor.c.