aboutsummaryrefslogtreecommitdiffstats
path: root/simple_dialog.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-10-09 06:38:36 +0000
committerGuy Harris <guy@alum.mit.edu>2000-10-09 06:38:36 +0000
commit677abe54e1f521aa8c562eccca0825118cb41d90 (patch)
tree00352eb04da21683ce2edd79b649c6b2ed02139e /simple_dialog.h
parentfedb22f4145e731dbad704ec33c04c4b3ecf796a (diff)
Add support for modal message boxes ("simple dialog").
Make the message boxes popped up for errors when selecting a font modal, so that the user has to say "yes, I know, I'll do better next time" before hitting "OK" again, so that you don't get a pile of message boxes. svn path=/trunk/; revision=2485
Diffstat (limited to 'simple_dialog.h')
-rw-r--r--simple_dialog.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/simple_dialog.h b/simple_dialog.h
index 9afdf1f1e5..f952c19940 100644
--- a/simple_dialog.h
+++ b/simple_dialog.h
@@ -2,7 +2,7 @@
* Definitions for dialog box routines with toolkit-independent APIs but
* toolkit-dependent implementations.
*
- * $Id: simple_dialog.h,v 1.1 2000/01/03 06:59:09 guy Exp $
+ * $Id: simple_dialog.h,v 1.2 2000/10/09 06:38:34 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -32,9 +32,13 @@ extern "C" {
#endif /* __cplusplus */
/* Dialog type. */
-#define ESD_TYPE_INFO 0
-#define ESD_TYPE_WARN 1
-#define ESD_TYPE_CRIT 2
+#define ESD_TYPE_INFO 0x00
+#define ESD_TYPE_WARN 0x01
+#define ESD_TYPE_CRIT 0x02
+
+/* Flag to be ORed with the dialog type, to specify that the dialog is
+ to be modal. */
+#define ESD_TYPE_MODAL 0x04
/* Which buttons to display. */
#define ESD_BTN_OK 0