- Rearrange reactos.dff according to rosapps rearrange.
[reactos.git] / rosapps / mc / src / dialog.h
1 #ifndef __DIALOG_H
2 #define __DIALOG_H
3
4 #include "dlg.h"
5
6 #define MSG_ERROR ((char *) -1)
7 Dlg_head *message (int error, char *header, char *text, ...);
8
9 int query_dialog (char *header, char *text, int flags, int count, ...);
10
11 enum {
12 D_NORMAL = 0,
13 D_ERROR = 1,
14 D_INSERT = 2
15 } /* dialog options */;
16
17 /* The refresh stack */
18 typedef struct Refresh {
19 void (*refresh_fn)(void *);
20 void *parameter;
21 int flags;
22 struct Refresh *next;
23 } Refresh;
24
25 /* We search under the stack until we find a refresh function that covers */
26 /* the complete screen, and from this point we go up refreshing the */
27 /* individual regions */
28
29 enum {
30 REFRESH_COVERS_PART, /* If the refresh fn convers only a part */
31 REFRESH_COVERS_ALL /* If the refresh fn convers all the screen */
32 };
33
34 void push_refresh (void (*new_refresh)(void *), void *data, int flags);
35 void pop_refresh (void);
36 void do_refresh (void);
37 void my_wputs (int y, int x, char *text);
38 char *input_dialog (char *header, char *text, char *def_text);
39 char *input_expand_dialog (char *header, char *text, char *def_text);
40
41 extern Refresh *refresh_list;
42
43 #endif /* __DIALOG_H */