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