File: dialogboxes.h

package info (click to toggle)
newt 0.50-7
  • links: PTS
  • area: main
  • in suites: potato
  • size: 516 kB
  • ctags: 981
  • sloc: ansic: 6,642; python: 501; makefile: 270; sh: 167
file content (31 lines) | stat: -rw-r--r-- 883 bytes parent folder | download | duplicates (2)
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
#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 DLG_ERROR		-1
#define DLG_OKAY		0
#define DLG_CANCEL		1

int messageBox(char * text, int height, int width, int type, int flags);
int checkList(char * text, int height, int width, poptContext optCon,
		int useRadio, int flags, char *** selections);
int listBox(char * text, int height, int width, poptContext optCon,
		int flags, char ** result);
int inputBox(char * text, int height, int width, poptContext optCon, 
		int flags, char ** result);
int gauge(char * text, int height, int width, poptContext optCon, int fd, 
		int flags);
void useFullButtons(int state);

#endif