SF #1572838: Linux binary should be dynamic by default
[nedit.git] / util / getfiles.h
blob152ef95a51a638ce254178a305931810f3d3ff90
1 /* $Id: getfiles.h,v 1.11 2006/04/11 01:14:27 n8gray Exp $ */
2 /*******************************************************************************
3 * *
4 * getfiles.h -- Nirvana Editor File Handling Header File *
5 * *
6 * Copyright 2003 The NEdit Developers *
7 * *
8 * This is free software; you can redistribute it and/or modify it under the *
9 * terms of the GNU General Public License as published by the Free Software *
10 * Foundation; either version 2 of the License, or (at your option) any later *
11 * version. In addition, you may distribute versions of this program linked to *
12 * Motif or Open Motif. See README for details. *
13 * *
14 * This software is distributed in the hope that it will be useful, but WITHOUT *
15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or *
16 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for *
17 * more details. *
18 * *
19 * You should have received a copy of the GNU General Public License along with *
20 * software; if not, write to the Free Software Foundation, Inc., 59 Temple *
21 * Place, Suite 330, Boston, MA 02111-1307 USA *
22 * *
23 * Nirvana Text Editor *
24 * July 31, 2001 *
25 * *
26 *******************************************************************************/
28 #ifndef NEDIT_GETFILES_H_INCLUDED
29 #define NEDIT_GETFILES_H_INCLUDED
31 #include <X11/Intrinsic.h>
33 #define GFN_OK 1 /* Get Filename OK constant */
34 #define GFN_CANCEL 2 /* Get Filename Cancel constant */
36 int GetExistingFilename(Widget parent, char *promptString, char *filename);
37 int GetNewFilename(Widget parent, char *promptString, char *filename,
38 char *defaultName);
39 int HandleCustomExistFileSB(Widget existFileSB, char *filename);
40 int HandleCustomNewFileSB(Widget newFileSB, char *filename, char *defaultName);
41 char *GetFileDialogDefaultDirectory(void);
42 char *GetFileDialogDefaultPattern(void);
43 void SetFileDialogDefaultDirectory(char *dir);
44 void SetFileDialogDefaultPattern(char *pattern);
45 void SetGetEFTextFieldRemoval(int state);
47 #endif /* NEDIT_GETFILES_H_INCLUDED */