File: aca_dlg.h

package info (click to toggle)
aca 0.1.6
  • links: PTS
  • area: main
  • in suites: woody
  • size: 492 kB
  • ctags: 569
  • sloc: ansic: 4,254; sh: 2,237; makefile: 256
file content (54 lines) | stat: -rw-r--r-- 1,780 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54

/*
 *  Copyright (c) 1998 - 1999, 2001 Karel Zak "Zakkr" <zakkr@zf.jcu.cz>
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  $Id: aca_dlg.h,v 1.2 2001/01/02 14:16:15 zakkr Exp $
 */


#ifndef	__ACA_DLG_H
#define __ACA_DLG_H

extern int	Dlg_YesNo (char *header, char *query, int xn);

/* low-level warninig window */
extern int	Dlg_Warning_org (char *header, char *query, int xn, int action, int err);

/* actions: */
#define Warn_std	0	/* draw message and wait for your key */
#define	Warn_draw	1 	/* draw only (not ----- // --------) */

extern void	Dlg_FileViewer(char *filename, char *header, char *infoline, int xn);
extern void	Dlg_LearnKey(aca_INI *ini);

#define Dlg_Warning(h, q, n)	\
		Dlg_Warning_org (h, q, n, Warn_std, FALSE)
		
#define Dlg_Warning_no(h, q, n)	\
		Dlg_Warning_org (h, q, n, Warn_std, TRUE)		

/* Return file name */ 				
extern  char *Dlg_SelectFile(char *dirname, char *header, char *exten, char *selfile);
	/* 
		>>>	- *dirname must be >= BUFSIZ
			  Dlg_SeectFile  _copy_  to dirname last selected dir
			
		>>>	- selected file is return (with path) in *selfile
			  *selfile must be >= BUFSIZ
			  
		>>>	- return: *selfile;	    	
	*/	

extern	int Error(char *str);		/* error msg */
extern	int Error_no(char *str);	/* error msg. with errno string */
extern	int Warning(char *str);		/* warning msg. */
extern	int Warning_no(char *str);	/* warning msg. with errno string */
extern	int ErrorOpen(char *str);	/* error open file */
extern	int ErrorOpen_no(char *str);	/* error open file  with errno string */

#endif	/* __ACA_DLG_H */