]>
Commit | Line | Data |
---|---|---|
2442e62a | 1 | /** @file\r |
2 | Declares titlebar interface functions.\r | |
3 | \r | |
4 | Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved. <BR>\r | |
5 | This program and the accompanying materials\r | |
6 | are licensed and made available under the terms and conditions of the BSD License\r | |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | \r | |
13 | **/\r | |
14 | \r | |
15 | #ifndef _LIB_TITLE_BAR_H_\r | |
16 | #define _LIB_TITLE_BAR_H_\r | |
17 | \r | |
18 | /**\r | |
19 | Initialize a title bar.\r | |
20 | \r | |
21 | @param[in] Prompt The prompt to print in the title bar.\r | |
22 | \r | |
23 | @retval EFI_SUCCESS The initialization was successful.\r | |
24 | @retval EFI_OUT_OF_RESOURCES A memory allocation failed.\r | |
25 | **/\r | |
26 | EFI_STATUS\r | |
2442e62a | 27 | MainTitleBarInit (\r |
28 | CONST CHAR16 *Prompt\r | |
29 | );\r | |
30 | \r | |
31 | /**\r | |
32 | Clean up the memory used.\r | |
33 | **/\r | |
34 | VOID\r | |
2442e62a | 35 | MainTitleBarCleanup (\r |
36 | VOID\r | |
37 | );\r | |
38 | \r | |
39 | typedef enum {\r | |
40 | FileTypeNone,\r | |
41 | FileTypeAscii,\r | |
42 | FileTypeUnicode,\r | |
43 | FileTypeDiskBuffer,\r | |
44 | FileTypeMemBuffer,\r | |
45 | FileTypeFileBuffer\r | |
46 | } EDIT_FILE_TYPE;\r | |
47 | \r | |
48 | /**\r | |
49 | Refresh function for MainTitleBar\r | |
50 | \r | |
51 | @param[in] FileName The open file's name (or NULL).\r | |
52 | @param[in] FileType The type fo the file.\r | |
53 | @param[in] ReadOnly TRUE if the file is read only. FALSE otherwise.\r | |
54 | @param[in] Modified TRUE if the file was modified. FALSE otherwise.\r | |
55 | @param[in] LastCol The last printable column.\r | |
56 | @param[in] LastRow The last printable row.\r | |
980d554e | 57 | @param[in] Offset The offset into the file. (only for mem/disk)\r |
58 | @param[in] Size The file's size. (only for mem/disk)\r | |
2442e62a | 59 | \r |
60 | @retval EFI_SUCCESS The operation was successful.\r | |
61 | **/\r | |
62 | EFI_STATUS\r | |
2442e62a | 63 | MainTitleBarRefresh (\r |
64 | IN CONST CHAR16 *FileName OPTIONAL,\r | |
65 | IN CONST EDIT_FILE_TYPE FileType,\r | |
980d554e | 66 | IN CONST BOOLEAN ReadOnly,\r |
67 | IN CONST BOOLEAN Modified,\r | |
68 | IN CONST UINTN LastCol,\r | |
69 | IN CONST UINTN LastRow,\r | |
70 | IN CONST UINTN Offset,\r | |
71 | IN CONST UINTN Size\r | |
2442e62a | 72 | );\r |
73 | \r | |
74 | #endif\r |