13#ifndef __SIMPLE_DIALOG_UI_H__
14#define __SIMPLE_DIALOG_UI_H__
42#define ESD_BTN_NONE 0x00
44#define ESD_BTN_OK 0x01
46#define ESD_BTN_CANCEL 0x02
48#define ESD_BTN_YES 0x04
50#define ESD_BTN_NO 0x08
52#define ESD_BTN_CLEAR 0x10
54#define ESD_BTN_SAVE 0x20
56#define ESD_BTN_DONT_SAVE 0x40
58#define ESD_BTN_QUIT_DONT_SAVE 0x80
61#define ESD_BTNS_OK_CANCEL (ESD_BTN_OK|ESD_BTN_CANCEL)
63#define ESD_BTNS_YES_NO (ESD_BTN_YES|ESD_BTN_NO)
65#define ESD_BTNS_YES_NO_CANCEL (ESD_BTN_YES|ESD_BTN_NO|ESD_BTN_CANCEL)
67#define ESD_BTNS_SAVE_DONTSAVE (ESD_BTN_SAVE|ESD_BTN_DONT_SAVE)
68#define ESD_BTNS_SAVE_DONTSAVE_CANCEL (ESD_BTN_DONT_SAVE|ESD_BTN_CANCEL|ESD_BTN_SAVE)
70#define ESD_BTNS_SAVE_QUIT_DONTSAVE_CANCEL (ESD_BTN_QUIT_DONT_SAVE|ESD_BTN_CANCEL|ESD_BTN_SAVE)
72#define ESD_BTNS_QUIT_DONTSAVE_CANCEL (ESD_BTN_QUIT_DONT_SAVE|ESD_BTN_CANCEL)
83 const char *msg_format, ...)
86extern
void *simple_dialog_async(
ESD_TYPE_E type,
int btn_mask,
87 const
char *msg_format, ...)
102extern
void simple_message_box(
ESD_TYPE_E type,
bool *notagain,
103 const
char *secondary_msg,
104 const
char *msg_format, ...) G_GNUC_PRINTF(4, 5);
109extern
void vsimple_error_message_box(const
char *msg_format, va_list ap);
114extern
void simple_error_message_box(const
char *msg_format, ...) G_GNUC_PRINTF(1, 2);
119extern
void vsimple_warning_message_box(const
char *msg_format, va_list ap);
ESD_TYPE_E
Definition simple_dialog.h:31
@ ESD_TYPE_CONFIRMATION
Definition simple_dialog.h:35
@ ESD_TYPE_STOP
Definition simple_dialog.h:38
@ ESD_TYPE_WARN
Definition simple_dialog.h:34
@ ESD_TYPE_INFO
Definition simple_dialog.h:32
@ ESD_TYPE_ERROR
Definition simple_dialog.h:37
void * simple_dialog(ESD_TYPE_E type, int btn_mask, const char *msg_format,...) G_GNUC_PRINTF(3
void void char * simple_dialog_format_message(const char *msg)
Definition simple_dialog.cpp:76