-
Notifications
You must be signed in to change notification settings - Fork 10
/
dialogboxes.h
42 lines (34 loc) · 1.18 KB
/
dialogboxes.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef H_DIALOGBOXES
#define H_DIALOGBOXES
#include "popt.h"
#define MSGBOX_MSG 0
#define MSGBOX_YESNO 1
#define MSGBOX_INFO 2
#define FLAG_NOITEM (1 << 0)
#define FLAG_NOCANCEL (1 << 1)
#define FLAG_SCROLL_TEXT (1 << 2)
#define FLAG_DEFAULT_NO (1 << 3)
#define FLAG_PASSWORD (1 << 4)
#define FLAG_NOTAGS (1 << 5)
#define DLG_ERROR -1
#define DLG_OKAY 0
#define DLG_CANCEL 1
#define DLG_ESCAPE 2
#define BUTTON_OK 0
#define BUTTON_CANCEL 1
#define BUTTON_YES 2
#define BUTTON_NO 3
int min(int a, int b);
int max(int a, int b);
int messageBox(const char * text, int height, int width, int type, int flags);
int checkList(const char * text, int height, int width, int list_height, poptContext optCon,
int useRadio, int flags, char *** selections);
int listBox(const char * text, int height, int width, int list_height, poptContext optCon,
int flags, const char *default_item, char ** result);
int inputBox(const char * text, int height, int width, poptContext optCon,
int flags, char ** result);
int gauge(const char * text, int height, int width, poptContext optCon, int fd,
int flags);
void useFullButtons(int state);
void setButtonText(const char * text, int button);
#endif