ReactOS  0.4.15-dev-4874-g57c84dd
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 
25 VOID NoUiFillArea(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, CHAR FillChar, UCHAR Attr)
26 {
27 }
28 
30 {
31 }
32 
33 VOID NoUiDrawBox(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, UCHAR VertStyle, UCHAR HorzStyle, BOOLEAN Fill, BOOLEAN Shadow, UCHAR Attr)
34 {
35 }
36 
37 VOID
39  _In_ ULONG X,
40  _In_ ULONG Y,
41  _In_ PCSTR Text,
42  _In_ UCHAR Attr)
43 {
44  printf("%s\n", Text);
45 }
46 
47 VOID
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 
60 VOID
62  _In_ ULONG Left,
63  _In_ ULONG Top,
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");
89  MachConsGetCh();
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");
100  MachConsGetCh();
101 }
102 
103 /* Loading Progress-Bar Functions ********************************************/
104 
105 VOID
107  _In_ PCSTR ProgressText)
108 {
109 }
110 
111 VOID
113  _In_ ULONG SubPercentTimes100)
114 {
115 }
116 
117 VOID
119  _In_ PCSTR ProgressText)
120 {
121 }
122 
123 VOID
125  _In_ ULONG Left,
126  _In_ ULONG Top,
127  _In_ ULONG Right,
128  _In_ ULONG Bottom,
129  _In_ PCSTR ProgressText)
130 {
131 }
132 
133 
134 BOOLEAN 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 
163 BOOLEAN
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 
181 VOID
184 {
185 }
186 
187 #endif // _M_ARM
signed char * PCHAR
Definition: retypes.h:7
VOID NoUiDrawCenteredText(_In_ ULONG Left, _In_ ULONG Top, _In_ ULONG Right, _In_ ULONG Bottom, _In_ PCSTR TextString, _In_ UCHAR Attr)
Definition: noui.c:61
#define IN
Definition: typedefs.h:39
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
#define MachConsGetCh()
Definition: machine.h:90
void Fill(HDC hdc, LONG x, LONG y, COLORREF color)
Definition: drawing.cpp:109
#define _In_opt_
Definition: ms_sal.h:309
#define Y(I)
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
#define TRUE
Definition: types.h:120
char CHAR
Definition: xmlstorage.h:175
VOID NoUiDrawBackdrop(VOID)
Definition: noui.c:21
BOOLEAN NoUiInitialize(VOID)
Definition: noui.c:12
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 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 NoUiFadeOut(VOID)
Definition: noui.c:153
VOID NoUiDrawMenu(_In_ PUI_MENU_INFO MenuInfo)
Definition: noui.c:182
VOID NoUiDrawShadow(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom)
Definition: noui.c:29
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
#define FALSE
Definition: types.h:117
VOID NoUiTickProgressBar(_In_ ULONG SubPercentTimes100)
Definition: noui.c:112
VOID NoUiDrawProgressBar(_In_ ULONG Left, _In_ ULONG Top, _In_ ULONG Right, _In_ ULONG Bottom, _In_ PCSTR ProgressText)
Definition: noui.c:124
VOID NoUiUnInitialize(VOID)
Definition: noui.c:17
long LONG
Definition: pedump.c:60
VOID NoUiSetProgressBarText(_In_ PCSTR ProgressText)
Definition: noui.c:106
UCHAR NoUiTextToFillStyle(PCSTR FillStyleText)
Definition: noui.c:144
unsigned char BOOLEAN
#define _In_
Definition: ms_sal.h:308
UCHAR NoUiTextToColor(PCSTR ColorText)
Definition: noui.c:139
#define printf
Definition: freeldr.h:94
unsigned char UCHAR
Definition: xmlstorage.h:181
BOOLEAN(* UiMenuKeyPressFilterCallback)(IN ULONG KeyPress, IN ULONG SelectedMenuItem, IN PVOID Context OPTIONAL)
Definition: ui.h:221
menu info structure
Definition: window.h:275
VOID NoUiDrawProgressBarCenter(_In_ PCSTR ProgressText)
Definition: noui.c:118
VOID NoUiUpdateDateTime(VOID)
Definition: noui.c:77
VOID NoUiFadeInBackdrop(VOID)
Definition: noui.c:149
static LPHIST_ENTRY Bottom
Definition: history.c:54
BOOLEAN NoUiEditBox(PCSTR MessageText, PCHAR EditTextBuffer, ULONG Length)
Definition: noui.c:134
unsigned int * PULONG
Definition: retypes.h:1
VOID NoUiDrawText(_In_ ULONG X, _In_ ULONG Y, _In_ PCSTR Text, _In_ UCHAR Attr)
Definition: noui.c:38
#define _In_reads_or_z_(size)
Definition: ms_sal.h:325
VOID NoUiMessageBoxCritical(PCSTR MessageText)
Definition: noui.c:92
#define OUT
Definition: typedefs.h:40
unsigned int ULONG
Definition: retypes.h:1
const char * PCSTR
Definition: typedefs.h:52
VOID NoUiMessageBox(PCSTR MessageText)
Definition: noui.c:81
static LPHIST_ENTRY Top
Definition: history.c:53
VOID NoUiDrawStatusText(PCSTR StatusText)
Definition: noui.c:72
char * Text
Definition: combotst.c:136
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68