56922eee18e803c5591771b457a3718382f4376b
[reactos.git] / reactos / 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
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 }
47
48 VOID NoUiUpdateDateTime(VOID)
49 {
50 }
51
52 VOID NoUiMessageBox(PCSTR MessageText)
53 {
54 // We have not yet displayed the user interface
55 // We are probably still reading the .ini file
56 // and have encountered an error. Just use printf()
57 // and return.
58 printf("%s\n", MessageText);
59 printf("Press any key\n");
60 MachConsGetCh();
61 }
62
63 VOID NoUiMessageBoxCritical(PCSTR MessageText)
64 {
65 // We have not yet displayed the user interface
66 // We are probably still reading the .ini file
67 // and have encountered an error. Just use printf()
68 // and return.
69 printf("%s\n", MessageText);
70 printf("Press any key\n");
71 MachConsGetCh();
72 }
73
74 VOID NoUiDrawProgressBarCenter(ULONG Position, ULONG Range, PCHAR ProgressText)
75 {
76 }
77
78 VOID NoUiDrawProgressBar(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, ULONG Position, ULONG Range, PCHAR ProgressText)
79 {
80 }
81
82 BOOLEAN NoUiEditBox(PCSTR MessageText, PCHAR EditTextBuffer, ULONG Length)
83 {
84 return FALSE;
85 }
86
87 UCHAR NoUiTextToColor(PCSTR ColorText)
88 {
89 return 0;
90 }
91
92 UCHAR NoUiTextToFillStyle(PCSTR FillStyleText)
93 {
94 return 0;
95 }
96
97 VOID NoUiFadeInBackdrop(VOID)
98 {
99 }
100
101 VOID NoUiFadeOut(VOID)
102 {
103 }
104
105 ///////////////////////////////////////////////////////////////////////////////////////
106 //
107 // Menu Functions
108 //
109 ///////////////////////////////////////////////////////////////////////////////////////
110
111 BOOLEAN NoUiDisplayMenu(PCSTR MenuItemList[], ULONG MenuItemCount, ULONG DefaultMenuItem, LONG MenuTimeOut, ULONG* SelectedMenuItem, BOOLEAN CanEscape, UiMenuKeyPressFilterCallback KeyPressFilter)
112 {
113 *SelectedMenuItem = DefaultMenuItem;
114 return TRUE;
115 }
116
117 VOID NoUiDrawMenu(PUI_MENU_INFO MenuInfo)
118 {
119 }