2 * Definitions for dialog box routines with toolkit-independent APIs but
3 * toolkit-dependent implementations.
5 * $Id: simple_dialog.h,v 1.3 2001/07/22 10:25:48 guy Exp $
7 * Ethereal - Network traffic analyzer
8 * By Gerald Combs <gerald@zing.org>
9 * Copyright 1998 Gerald Combs
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
32 #endif /* __cplusplus */
35 #define ESD_TYPE_INFO 0x00
36 #define ESD_TYPE_WARN 0x01
37 #define ESD_TYPE_CRIT 0x02
39 /* Flag to be ORed with the dialog type, to specify that the dialog is
41 #define ESD_TYPE_MODAL 0x04
43 /* Which buttons to display. */
45 #define ESD_BTN_CANCEL 1
48 void simple_dialog(gint, gint *, gchar *, ...)
49 __attribute__((format (printf, 3, 4)));
51 void simple_dialog(gint, gint *, gchar *, ...);
56 #endif /* __cplusplus */
58 #endif /* __DIALOG_H__ */