- Merge from trunk up to r45543
[reactos.git] / boot / freeldr / freeldr / ui / noui.c
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: FreeLoader
4 * FILE: freeldr/ui/noui.c
5 * PURPOSE: No Text UI interface
6 * PROGRAMMERS: Hervé Poussineau
7 */
8 #ifndef _M_ARM
9 #include <freeldr.h>
10
11 BOOLEAN NoUiInitialize(VOID)
12 {
13 return TRUE;
14 }
15
16 VOID NoUiUnInitialize(VOID)
17 {
18 }
19
20 VOID NoUiDrawBackdrop(VOID)
21 {
22 }
23
24 VOID NoUiFillArea(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, CHAR FillChar, UCHAR Attr)
25 {
26 }
27
28 VOID NoUiDrawShadow(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom)
29 {
30 }
31
32 VOID NoUiDrawBox(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, UCHAR VertStyle, UCHAR HorzStyle, BOOLEAN Fill, BOOLEAN Shadow, UCHAR Attr)
33 {
34 }
35
36 VOID NoUiDrawText(ULONG X, ULONG Y, PCSTR Text, UCHAR Attr)
37 {
38 }
39
40 VOID NoUiDrawCenteredText(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, PCSTR TextString, UCHAR Attr)
41 {
42 }
43
44 VOID NoUiDrawStatusText(PCSTR StatusText)
45 {
46 printf("%s\n", StatusText);
47 }
48
49 VOID NoUiUpdateDateTime(VOID)
50 {
51 }
52
53 VOID NoUiMessageBox(PCSTR MessageText)
54 {
55 // We have not yet displayed the user interface
56 // We are probably still reading the .ini file
57 // and have encountered an error. Just use printf()
58 // and return.
59 printf("%s\n", MessageText);
60 printf("Press any key\n");
61 MachConsGetCh();
62 }
63
64 VOID NoUiMessageBoxCritical(PCSTR MessageText)
65 {
66 // We have not yet displayed the user interface
67 // We are probably still reading the .ini file
68 // and have encountered an error. Just use printf()
69 // and return.
70 printf("%s\n", MessageText);
71 printf("Press any key\n");
72 MachConsGetCh();
73 }
74
75 VOID NoUiDrawProgressBarCenter(ULONG Position, ULONG Range, PCHAR ProgressText)
76 {
77 }
78
79 VOID NoUiDrawProgressBar(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, ULONG Position, ULONG Range, PCHAR ProgressText)
80 {
81 }
82
83 BOOLEAN NoUiEditBox(PCSTR MessageText, PCHAR EditTextBuffer, ULONG Length)
84 {
85 return FALSE;
86 }
87
88 UCHAR NoUiTextToColor(PCSTR ColorText)
89 {
90 return 0;
91 }
92
93 UCHAR NoUiTextToFillStyle(PCSTR FillStyleText)
94 {
95 return 0;
96 }
97
98 VOID NoUiFadeInBackdrop(VOID)
99 {
100 }
101
102 VOID NoUiFadeOut(VOID)
103 {
104 }
105
106 ///////////////////////////////////////////////////////////////////////////////////////
107 //
108 // Menu Functions
109 //
110 ///////////////////////////////////////////////////////////////////////////////////////
111
112 BOOLEAN NoUiDisplayMenu(PCSTR MenuItemList[], ULONG MenuItemCount, ULONG DefaultMenuItem, LONG MenuTimeOut, ULONG* SelectedMenuItem, BOOLEAN CanEscape, UiMenuKeyPressFilterCallback KeyPressFilter)
113 {
114 *SelectedMenuItem = DefaultMenuItem;
115 return TRUE;
116 }
117
118 VOID NoUiDrawMenu(PUI_MENU_INFO MenuInfo)
119 {
120 }
121 #endif