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 #ifndef NEDIT_GETFILES_H_INCLUDED
28 #define NEDIT_GETFILES_H_INCLUDED
29
30 #include <X11/Intrinsic.h>
31
32 #include "filedialog.h"
33
34 #define GFN_OK 1
35 #define GFN_CANCEL 2
36
37
38 int GetExistingFilename(Widget parent,
char *promptString, FileSelection *file);
39 int GetNewFilename(Widget parent,
char *promptString, FileSelection *file,
40 char *defaultName);
41 char *GetFileDialogDefaultDirectory(
void);
42 void SetFileDialogDefaultDirectory(
char *dir);
43 char* GetDefaultDirectoryStr(
void);
44
45 int OverrideFileDialog(Widget parent,
const char *filename);
46 void FileOpenErrorDialog(Widget parent,
const char *filename);
47
48 Widget CreateFormatButtons(
49 Widget form,
50 Widget bottom,
51 int format,
52 Widget *u,
53 Widget *d,
54 Widget *m);
55
56 #endif
57