diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-02-04 01:10:37 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-02-04 01:10:37 +0000 |
commit | 372e6b2da073be810f73de94199b3f76ae43bde9 (patch) | |
tree | 9242e757f7b8fbafe8750125074ce3817456837b /simple_dialog.h | |
parent | 78461c0180dee2336db99b91cfd126dfbb4ecff3 (diff) | |
download | wireshark-372e6b2da073be810f73de94199b3f76ae43bde9.tar.gz |
Add some comments about the types of alert boxes you get with the
simple_dialog routines (which are really just message box/alert box
routines).
Add some macros for combinations of buttons (corresponding to
combinations that some GUI toolkits, which only support some
combinations, allow).
svn path=/trunk/; revision=9977
Diffstat (limited to 'simple_dialog.h')
-rw-r--r-- | simple_dialog.h | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/simple_dialog.h b/simple_dialog.h index 29ced367ca..5f06791435 100644 --- a/simple_dialog.h +++ b/simple_dialog.h @@ -1,14 +1,13 @@ /* simple_dialog.h - * Definitions for dialog box routines with toolkit-independent APIs but + * Definitions for alert box routines with toolkit-independent APIs but * toolkit-dependent implementations. * - * $Id: simple_dialog.h,v 1.8 2004/02/03 17:59:00 ulfl Exp $ + * $Id: simple_dialog.h,v 1.9 2004/02/04 01:10:36 guy Exp $ * * Ethereal - Network traffic analyzer - * By Gerald Combs <gerald@zing.org> + * By Gerald Combs <gerald@ethereal.com> * Copyright 1998 Gerald Combs * - * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 @@ -31,7 +30,18 @@ extern "C" { #endif /* __cplusplus */ -/* Dialog type. */ +/* Dialog type. + + INFO: tells the user something they should know, but not requiring + any action; the only button should be "OK". + + WARN: tells the user about a problem; the only button should be "OK" + + QUESTION: asks the user for confirmation; there should be more than one + button + + ERROR: tells the user about a serious problem; the only button should be + "OK". */ #define ESD_TYPE_INFO 0x00 #define ESD_TYPE_WARN 0x01 #define ESD_TYPE_QUESTION 0x02 @@ -48,6 +58,10 @@ extern "C" { #define ESD_BTN_NO 0x08 #define ESD_BTN_CLEAR 0x10 +#define ESD_BTNS_OK_CANCEL (ESD_BTN_OK|ESD_BTN_CANCEL) +#define ESD_BTNS_YES_NO (ESD_BTN_YES|ESD_BTN_NO) +#define ESD_BTNS_YES_NO_CANCEL (ESD_BTN_YES|ESD_BTN_NO|ESD_BTN_CANCEL) + /* show a simple dialog */ #if __GNUC__ >= 2 extern gpointer simple_dialog(gint type, gint btn_mask, gchar *msg_format, ...) |