#ifndef XNEDIT_FILEDIALOG_H
#define XNEDIT_FILEDIALOG_H
#include <sys/types.h>
#include <Xm/XmAll.h>
#ifdef __cplusplus
extern "C" {
#endif
#define FILEDIALOG_OPEN 1
#define FILEDIALOG_SAVE 2
#define FILEDIALOG_OK 1
#define FILEDIALOG_CANCEL 2
typedef struct FileSelection {
char *path;
char *encoding;
char *filter;
Boolean extraoptions;
Boolean setxattr;
Boolean writebom;
Boolean addwrap;
int format;
} FileSelection;
int FileDialog(Widget parent, char *promptString, FileSelection *file, int type, const char *defaultName);
const char ** FileDialogDefaultEncodings(void);
char* FileDialogGetFilter(void);
void FileDialogSetFilter(const char *filterStr);
#ifdef __cplusplus
}
#endif
#endif