|
Wireshark
2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
|
Go to the source code of this file.
Macros | |
| #define | ESD_BTN_NONE 0x00 |
| #define | ESD_BTN_OK 0x01 |
| #define | ESD_BTN_CANCEL 0x02 |
| #define | ESD_BTN_YES 0x04 |
| #define | ESD_BTN_NO 0x08 |
| #define | ESD_BTN_CLEAR 0x10 |
| #define | ESD_BTN_SAVE 0x20 |
| #define | ESD_BTN_DONT_SAVE 0x40 |
| #define | ESD_BTN_QUIT_DONT_SAVE 0x80 |
| #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) |
| #define | ESD_BTNS_SAVE_DONTSAVE (ESD_BTN_SAVE|ESD_BTN_DONT_SAVE) |
| #define | ESD_BTNS_SAVE_DONTSAVE_CANCEL (ESD_BTN_DONT_SAVE|ESD_BTN_CANCEL|ESD_BTN_SAVE) |
| #define | ESD_BTNS_SAVE_QUIT_DONTSAVE_CANCEL (ESD_BTN_QUIT_DONT_SAVE|ESD_BTN_CANCEL|ESD_BTN_SAVE) |
| #define | ESD_BTNS_QUIT_DONTSAVE_CANCEL (ESD_BTN_QUIT_DONT_SAVE|ESD_BTN_CANCEL) |
Enumerations | |
| enum | ESD_TYPE_E { ESD_TYPE_INFO, ESD_TYPE_WARN, ESD_TYPE_CONFIRMATION, ESD_TYPE_ERROR, ESD_TYPE_STOP } |
Functions | |
| gpointer | simple_dialog (ESD_TYPE_E type, gint btn_mask, const gchar *msg_format,...) G_GNUC_PRINTF(3 |
| gpointer const char * | simple_dialog_primary_start (void) |
| const char * | simple_dialog_primary_end (void) |
| char * | simple_dialog_format_message (const char *msg) |
| void | simple_message_box (ESD_TYPE_E type, gboolean *notagain, const char *secondary_msg, const char *msg_format,...) G_GNUC_PRINTF(4 |
| void void | vsimple_error_message_box (const char *msg_format, va_list ap) |
| void | simple_error_message_box (const char *msg_format,...) G_GNUC_PRINTF(1 |
| void void | vsimple_warning_message_box (const char *msg_format, va_list ap) |
Simple dialog box.
| #define ESD_BTN_CANCEL 0x02 |
display a "Cancel" button
| #define ESD_BTN_CLEAR 0x10 |
display a "Clear" button
| #define ESD_BTN_DONT_SAVE 0x40 |
display a "Continue without Saving" button
| #define ESD_BTN_NO 0x08 |
display a "No" button
| #define ESD_BTN_NONE 0x00 |
display no buttons at all
| #define ESD_BTN_OK 0x01 |
display an "Ok" button
| #define ESD_BTN_QUIT_DONT_SAVE 0x80 |
display a "Quit without Saving" button
| #define ESD_BTN_SAVE 0x20 |
display a "Save" button
| #define ESD_BTN_YES 0x04 |
display a "Yes" button
| #define ESD_BTNS_OK_CANCEL (ESD_BTN_OK|ESD_BTN_CANCEL) |
Standard button combination "Ok" + "Cancel".
| #define ESD_BTNS_QUIT_DONTSAVE_CANCEL (ESD_BTN_QUIT_DONT_SAVE|ESD_BTN_CANCEL) |
Standard button combination "Quit without saving" + "Cancel".
| #define ESD_BTNS_SAVE_DONTSAVE (ESD_BTN_SAVE|ESD_BTN_DONT_SAVE) |
Standard button combination "No" + "Cancel" + "Save".
| #define ESD_BTNS_SAVE_QUIT_DONTSAVE_CANCEL (ESD_BTN_QUIT_DONT_SAVE|ESD_BTN_CANCEL|ESD_BTN_SAVE) |
Standard button combination "Quit without saving" + "Cancel" + "Save".
| #define ESD_BTNS_YES_NO (ESD_BTN_YES|ESD_BTN_NO) |
Standard button combination "Yes" + "No".
| #define ESD_BTNS_YES_NO_CANCEL (ESD_BTN_YES|ESD_BTN_NO|ESD_BTN_CANCEL) |
Standard button combination "Yes" + "No" + "Cancel".
| enum ESD_TYPE_E |
Dialog types.
| gpointer simple_dialog | ( | ESD_TYPE_E | type, |
| gint | btn_mask, | ||
| const gchar * | msg_format, | ||
| ... | |||
| ) |
Create and show a simple dialog.
| type | type of dialog, e.g. ESD_TYPE_WARN |
| btn_mask | The buttons to display, e.g. ESD_BTNS_OK_CANCEL |
| msg_format | Printf like message format. Text must be plain. |
| ... | Printf like parameters |
| char* simple_dialog_format_message | ( | const char * | msg | ) |
Escape the message text, if it probably contains Pango escape sequences. For example html like tags starting with a <.
| msg | the string to escape |
| const char* simple_dialog_primary_end | ( | void | ) |
Surround the primary dialog message text by simple_dialog_primary_start() and simple_dialog_primary_end().
| gpointer const char* simple_dialog_primary_start | ( | void | ) |
Surround the primary dialog message text by simple_dialog_primary_start() and simple_dialog_primary_end().
1.8.11