aboutsummaryrefslogtreecommitdiffstats
path: root/simple_dialog.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-07-13 07:15:45 +0000
committerGuy Harris <guy@alum.mit.edu>2004-07-13 07:15:45 +0000
commitfd262f1b97114cc258ace5fee044505ca39c6582 (patch)
treec0d9dbea2af7ce982466a6d3449ade1c1d795ed3 /simple_dialog.h
parentaaac0102cb0656f3c83df4d9707c6d892472ba66 (diff)
From Daniel Thompson: add additional message/alert box options to
display "Save", "Continue without Saving", and "Cancel", for the "do you want to save?" messages. svn path=/trunk/; revision=11372
Diffstat (limited to 'simple_dialog.h')
-rw-r--r--simple_dialog.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/simple_dialog.h b/simple_dialog.h
index be0cb8734e..7d5a4c8bf5 100644
--- a/simple_dialog.h
+++ b/simple_dialog.h
@@ -2,7 +2,7 @@
* Definitions for alert box routines with toolkit-independent APIs but
* toolkit-dependent implementations.
*
- * $Id: simple_dialog.h,v 1.15 2004/06/04 21:12:01 guy Exp $
+ * $Id: simple_dialog.h,v 1.16 2004/07/13 07:15:42 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -55,7 +55,11 @@ typedef enum {
/** display a "No" button */
#define ESD_BTN_NO 0x08
/** display a "Clear" button */
-#define ESD_BTN_CLEAR 0x10
+#define ESD_BTN_CLEAR 0x10
+/** display a "Save" button */
+#define ESD_BTN_SAVE 0x20
+/** display a "Continue without Saving" button */
+#define ESD_BTN_DONT_SAVE 0x40
/** Standard button combination "Ok" + "Cancel". */
#define ESD_BTNS_OK_CANCEL (ESD_BTN_OK|ESD_BTN_CANCEL)
@@ -63,6 +67,8 @@ typedef enum {
#define ESD_BTNS_YES_NO (ESD_BTN_YES|ESD_BTN_NO)
/** Standard button combination "Yes" + "No" + "Cancel". */
#define ESD_BTNS_YES_NO_CANCEL (ESD_BTN_YES|ESD_BTN_NO|ESD_BTN_CANCEL)
+/** Standard button combination "No" + "Cancel" + "Save". */
+#define ESD_BTNS_SAVE_DONTSAVE_CANCEL (ESD_BTN_DONT_SAVE|ESD_BTN_CANCEL|ESD_BTN_SAVE)
#if __GNUC__ >= 2
/** Create and show a simple dialog.