File: dialogboxes.h

package info (click to toggle)
newt 0.21-8
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 296 kB
  • ctags: 753
  • sloc: ansic: 4,813; python: 312; makefile: 179; sh: 2
file content (30 lines) | stat: -rw-r--r-- 850 bytes parent folder | download | duplicates (5)
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
#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 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