Xft support under OpenMotif 2.3.3 - I've been using this for quite a while on
[nedit.git] / util / DialogF.h
blob29c42225c42f6b621f80a1ae966fbeed1d1e4fe1
1 /* $Id: DialogF.h,v 1.11 2004/11/09 21:58:45 yooden Exp $ */
2 /*******************************************************************************
3 * *
4 * DialogF.h -- Nirvana Editor Dialog 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_DIALOGF_H_INCLUDED
29 #define NEDIT_DIALOGF_H_INCLUDED
31 #include <X11/Intrinsic.h>
32 #ifdef VMS
33 #include "../util/VMSparam.h"
34 #else
35 #ifndef __MVS__
36 #include <sys/param.h>
37 #endif
38 #endif /*VMS*/
40 #define DF_ERR 1 /* Error Dialog */
41 #define DF_INF 2 /* Information Dialog */
42 #define DF_MSG 3 /* Message Dialog */
43 #define DF_QUES 4 /* Question Dialog */
44 #define DF_WARN 5 /* Warning Dialog */
45 #define DF_PROMPT 6 /* Prompt Dialog */
47 /* longest message length supported. Note that dialogs may contains a file
48 name, which is only limited in length by MAXPATHLEN, so DF_MAX_MSG_LENGTH
49 must be sufficiently larger than MAXPATHLEN. */
50 #define DF_MAX_MSG_LENGTH (2047 + MAXPATHLEN)
51 #define DF_MAX_PROMPT_LENGTH 255 /* longest prompt string supported */
53 unsigned DialogF(int dialog_type, Widget parent, unsigned n, const char* title,
54 const char* msgstr, ...); /* variable # arguments */
55 void SetDialogFPromptHistory(char **historyList, int nItems);
57 #endif /* NEDIT_DIALOGF_H_INCLUDED */