1 /* $Id: DialogF.h,v 1.11 2004/11/09 21:58:45 yooden Exp $ */
2 /*******************************************************************************
4 * DialogF.h -- Nirvana Editor Dialog Header File *
6 * Copyright 2003 The NEdit Developers *
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. *
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 *
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 *
23 * Nirvana Text Editor *
26 *******************************************************************************/
28 #ifndef NEDIT_DIALOGF_H_INCLUDED
29 #define NEDIT_DIALOGF_H_INCLUDED
31 #include <X11/Intrinsic.h>
33 #include "../util/VMSparam.h"
36 #include <sys/param.h>
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 */