1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 #ifndef XNEDIT_FILEDIALOG_H
24 #define XNEDIT_FILEDIALOG_H
25
26 #include <sys/types.h>
27 #include <Xm/XmAll.h>
28
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32
33 #define FILEDIALOG_OPEN 1
34 #define FILEDIALOG_SAVE 2
35
36 #define FILEDIALOG_OK 1
37 #define FILEDIALOG_CANCEL 2
38
39 typedef struct FileSelection {
40 char *path;
41 char *encoding;
42 char *filter;
43 Boolean extraoptions;
44 Boolean setxattr;
45 Boolean writebom;
46 Boolean addwrap;
47 int format;
48 } FileSelection;
49
50 int FileDialog(Widget parent,
char *promptString, FileSelection *file,
int type,
const char *defaultName);
51
52 const char ** FileDialogDefaultEncodings(
void);
53
54 char* FileDialogGetFilter(
void);
55 void FileDialogSetFilter(
const char *filterStr);
56
57 #ifdef __cplusplus
58 }
59 #endif
60
61 #endif
62
63