ReactOS 0.4.15-dev-5666-gc548b97
noui.c
Go to the documentation of this file.
1/*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: FreeLoader
4 * FILE: boot/freeldr/freeldr/ui/noui.c
5 * PURPOSE: No Text UI interface
6 * PROGRAMMERS: Hervé Poussineau
7 */
8
9#ifndef _M_ARM
10#include <freeldr.h>
11
13{
14 return TRUE;
15}
16
18{
19}
20
22{
23}
24
25VOID NoUiFillArea(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, CHAR FillChar, UCHAR Attr)
26{
27}
28
30{
31}
32
33VOID NoUiDrawBox(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, UCHAR VertStyle, UCHAR HorzStyle, BOOLEAN Fill, BOOLEAN Shadow, UCHAR Attr)
34{
35}
36
37VOID
39 _In_ ULONG X,
40 _In_ ULONG Y,
42 _In_ UCHAR Attr)
43{
44 printf("%s\n", Text);
45}
46
47VOID
49 _In_ ULONG X,
50 _In_ ULONG Y,
51 _In_opt_ ULONG MaxNumChars,
52 _In_reads_or_z_(MaxNumChars) PCSTR Text,
53 _In_ UCHAR Attr)
54{
55 if (MaxNumChars == 0)
56 MaxNumChars = (ULONG)strlen(Text);
57 printf("%*s\n", MaxNumChars, Text);
58}
59
60VOID
62 _In_ ULONG Left,
64 _In_ ULONG Right,
66 _In_ PCSTR TextString,
67 _In_ UCHAR Attr)
68{
69 printf("%s\n", TextString);
70}
71
73{
74 printf("%s\n", StatusText);
75}
76
78{
79}
80
82{
83 // We have not yet displayed the user interface
84 // We are probably still reading the .ini file
85 // and have encountered an error. Just use printf()
86 // and return.
87 printf("%s\n", MessageText);
88 printf("Press any key\n");
90}
91
93{
94 // We have not yet displayed the user interface
95 // We are probably still reading the .ini file
96 // and have encountered an error. Just use printf()
97 // and return.
98 printf("%s\n", MessageText);
99 printf("Press any key\n");
101}
102
103/* Loading Progress-Bar Functions ********************************************/
104
105VOID
107 _In_ PCSTR ProgressText)
108{
109}
110
111VOID
113 _In_ ULONG SubPercentTimes100)
114{
115}
116
117VOID
119 _In_ PCSTR ProgressText)
120{
121}
122
123VOID
125 _In_ ULONG Left,
126 _In_ ULONG Top,
127 _In_ ULONG Right,
129 _In_ PCSTR ProgressText)
130{
131}
132
133
134BOOLEAN NoUiEditBox(PCSTR MessageText, PCHAR EditTextBuffer, ULONG Length)
135{
136 return FALSE;
137}
138
140{
141 return 0;
142}
143
145{
146 return 0;
147}
148
150{
151}
152
154{
155}
156
158//
159// Menu Functions
160//
162
165 IN PCSTR MenuHeader,
166 IN PCSTR MenuFooter OPTIONAL,
167 IN BOOLEAN ShowBootOptions,
168 IN PCSTR MenuItemList[],
169 IN ULONG MenuItemCount,
170 IN ULONG DefaultMenuItem,
171 IN LONG MenuTimeOut,
172 OUT PULONG SelectedMenuItem,
173 IN BOOLEAN CanEscape,
176{
177 *SelectedMenuItem = DefaultMenuItem;
178 return TRUE;
179}
180
181VOID
184{
185}
186
187#endif // _M_ARM
unsigned char BOOLEAN
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
static LPHIST_ENTRY Bottom
Definition: history.c:54
static LPHIST_ENTRY Top
Definition: history.c:53
#define MachConsGetCh()
Definition: machine.h:90
char * Text
Definition: combotst.c:136
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define Y(I)
void Fill(HDC hdc, LONG x, LONG y, COLORREF color)
Definition: drawing.cpp:109
#define printf
Definition: freeldr.h:94
unsigned int * PULONG
Definition: retypes.h:1
signed char * PCHAR
Definition: retypes.h:7
unsigned int ULONG
Definition: retypes.h:1
#define _In_reads_or_z_(size)
Definition: ms_sal.h:325
#define _In_
Definition: ms_sal.h:308
#define _In_opt_
Definition: ms_sal.h:309
VOID NoUiUnInitialize(VOID)
Definition: noui.c:17
VOID NoUiDrawStatusText(PCSTR StatusText)
Definition: noui.c:72
VOID NoUiDrawProgressBar(_In_ ULONG Left, _In_ ULONG Top, _In_ ULONG Right, _In_ ULONG Bottom, _In_ PCSTR ProgressText)
Definition: noui.c:124
VOID NoUiTickProgressBar(_In_ ULONG SubPercentTimes100)
Definition: noui.c:112
VOID NoUiFadeInBackdrop(VOID)
Definition: noui.c:149
UCHAR NoUiTextToFillStyle(PCSTR FillStyleText)
Definition: noui.c:144
BOOLEAN NoUiEditBox(PCSTR MessageText, PCHAR EditTextBuffer, ULONG Length)
Definition: noui.c:134
VOID NoUiDrawText2(_In_ ULONG X, _In_ ULONG Y, _In_opt_ ULONG MaxNumChars, _In_reads_or_z_(MaxNumChars) PCSTR Text, _In_ UCHAR Attr)
Definition: noui.c:48
VOID NoUiUpdateDateTime(VOID)
Definition: noui.c:77
VOID NoUiDrawShadow(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom)
Definition: noui.c:29
VOID NoUiDrawCenteredText(_In_ ULONG Left, _In_ ULONG Top, _In_ ULONG Right, _In_ ULONG Bottom, _In_ PCSTR TextString, _In_ UCHAR Attr)
Definition: noui.c:61
BOOLEAN NoUiInitialize(VOID)
Definition: noui.c:12
VOID NoUiDrawMenu(_In_ PUI_MENU_INFO MenuInfo)
Definition: noui.c:182
VOID NoUiMessageBoxCritical(PCSTR MessageText)
Definition: noui.c:92
VOID NoUiDrawBackdrop(VOID)
Definition: noui.c:21
VOID NoUiMessageBox(PCSTR MessageText)
Definition: noui.c:81
VOID NoUiSetProgressBarText(_In_ PCSTR ProgressText)
Definition: noui.c:106
VOID NoUiFadeOut(VOID)
Definition: noui.c:153
VOID NoUiFillArea(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, CHAR FillChar, UCHAR Attr)
Definition: noui.c:25
VOID NoUiDrawBox(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, UCHAR VertStyle, UCHAR HorzStyle, BOOLEAN Fill, BOOLEAN Shadow, UCHAR Attr)
Definition: noui.c:33
BOOLEAN NoUiDisplayMenu(IN PCSTR MenuHeader, IN PCSTR MenuFooter OPTIONAL, IN BOOLEAN ShowBootOptions, IN PCSTR MenuItemList[], IN ULONG MenuItemCount, IN ULONG DefaultMenuItem, IN LONG MenuTimeOut, OUT PULONG SelectedMenuItem, IN BOOLEAN CanEscape, IN UiMenuKeyPressFilterCallback KeyPressFilter OPTIONAL, IN PVOID Context OPTIONAL)
Definition: noui.c:164
VOID NoUiDrawProgressBarCenter(_In_ PCSTR ProgressText)
Definition: noui.c:118
VOID NoUiDrawText(_In_ ULONG X, _In_ ULONG Y, _In_ PCSTR Text, _In_ UCHAR Attr)
Definition: noui.c:38
UCHAR NoUiTextToColor(PCSTR ColorText)
Definition: noui.c:139
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:102
long LONG
Definition: pedump.c:60
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68
menu info structure
Definition: window.h:276
const char * PCSTR
Definition: typedefs.h:52
#define IN
Definition: typedefs.h:39
#define OUT
Definition: typedefs.h:40
BOOLEAN(* UiMenuKeyPressFilterCallback)(IN ULONG KeyPress, IN ULONG SelectedMenuItem, IN PVOID Context OPTIONAL)
Definition: ui.h:221
unsigned char UCHAR
Definition: xmlstorage.h:181
char CHAR
Definition: xmlstorage.h:175