-
Notifications
You must be signed in to change notification settings - Fork 0
/
fl_ext_file_chooser.h
60 lines (36 loc) · 1.65 KB
/
fl_ext_file_chooser.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/********************************************************************/
/********************************************************************/
/* fl_ext_file_chooser()
*
* This code released into the public domain by Don Zimmer
* with permission from Baird Software, October 2004
* provided as-is, use at your own risk
*
*/
/********************************************************************/
/********************************************************************/
#ifndef FL_EXT_FILE_CHOOSER_H
#define FL_EXT_FILE_CHOOSER_H
#if defined(_LANGUAGE_C_PLUS_PLUS) || defined(__cplusplus)
extern "C" {
#endif
/********************************************************************/
/********************************************************************/
/*
EXT_VALID_ONLY means only use the passed extensions
EXT_VALID_ALL means add All files (comprising only passed extensions)
EXT_ALLOW_ALL means add All files *.*
*/
enum { EXT_ALLOW_ALL, EXT_VALID_ALL, EXT_VALID_ONLY };
enum { FIL_READ, FIL_WRITE, FIL_READWRITE };
/********************************************************************/
/********************************************************************/
char *fl_ext_file_chooser(char *pTitle, char **pDesc, char **pExt, int nExt, int eExt, int eMode, char def[256]);
/********************************************************************/
/********************************************************************/
#if defined(_LANGUAGE_C_PLUS_PLUS) || defined(__cplusplus)
}
#endif
#endif /* FL_EXT_FILE_CHOOSER_H */
/********************************************************************/
/********************************************************************/