]>
Commit | Line | Data |
---|---|---|
649a0152 | 1 | #ifndef H_DIALOGBOXES |
2 | #define H_DIALOGBOXES | |
3 | ||
4 | #include "popt.h" | |
5 | ||
6 | #define MSGBOX_MSG 0 | |
7 | #define MSGBOX_YESNO 1 | |
139f06bc | 8 | #define MSGBOX_INFO 2 |
649a0152 | 9 | |
6f481af2 | 10 | #define FLAG_NOITEM (1 << 0) |
11 | #define FLAG_NOCANCEL (1 << 1) | |
12 | #define FLAG_SCROLL_TEXT (1 << 2) | |
13 | #define FLAG_DEFAULT_NO (1 << 3) | |
feef2cb5 | 14 | #define FLAG_PASSWORD (1 << 4) |
6f481af2 | 15 | #define FLAG_NOTAGS (1 << 5) |
649a0152 | 16 | |
6f481af2 | 17 | #define DLG_ERROR -1 |
18 | #define DLG_OKAY 0 | |
19 | #define DLG_CANCEL 1 | |
feef2cb5 | 20 | #define DLG_ESCAPE 2 |
21 | ||
60d3c50b | 22 | #define BUTTON_OK 0 |
23 | #define BUTTON_CANCEL 1 | |
24 | #define BUTTON_YES 2 | |
25 | #define BUTTON_NO 3 | |
26 | ||
feef2cb5 | 27 | int min(int a, int b); |
28 | int max(int a, int b); | |
649a0152 | 29 | |
eb0a0545 | 30 | int messageBox(const char * text, int height, int width, int type, int flags); |
9c4eb622 | 31 | int checkList(const char * text, int height, int width, int list_height, poptContext optCon, |
f40f18ae | 32 | int useRadio, int flags, char *** selections); |
9c4eb622 | 33 | int listBox(const char * text, int height, int width, int list_height, poptContext optCon, |
f40f18ae | 34 | int flags, const char *default_item, char ** result); |
eb0a0545 | 35 | int inputBox(const char * text, int height, int width, poptContext optCon, |
f40f18ae | 36 | int flags, char ** result); |
eb0a0545 | 37 | int gauge(const char * text, int height, int width, poptContext optCon, int fd, |
6f481af2 | 38 | int flags); |
649a0152 | 39 | void useFullButtons(int state); |
60d3c50b | 40 | void setButtonText(const char * text, int button); |
649a0152 | 41 | |
42 | #endif |