From 5023167ffc89c413eede025a1984edf12d3784bb Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 29 Mar 2005 21:02:39 +0000 Subject: Added text defines and pixmap defines. Added new icons. --- src/messagebox.h | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'src/messagebox.h') diff --git a/src/messagebox.h b/src/messagebox.h index 28b06a8..5cb2bd8 100644 --- a/src/messagebox.h +++ b/src/messagebox.h @@ -38,8 +38,8 @@ typedef enum { ICON_NONE, // No icon is used ICON_DEFAULT, // An icon matching the buttons is used ICON_INFO, // An info icon (matching the ok button) - ICON_WARN, // An warning icon (matching the ok/cancel button) - ICON_ERROR, // An critical error icon + ICON_WARNING, // An warning icon (matching the ok/cancel button) + ICON_ERROR, // An critical error icon ICON_QUESTION // An question icon (matching the yes/no and yes/no/cancel buttons) } msg_icon; @@ -57,6 +57,24 @@ typedef enum { TYPE_YES_NO_CANCEL, } msg_type; + +/** + * Textstrings + */ +#define TXT_OK "Ok" +#define TXT_CANCEL "Annuler" +#define TXT_YES "Ja" +#define TXT_NO "Nej" + +/** + * Images + */ +#define PIXMAP_INFO PIXMAPS"/info.png" +#define PIXMAP_WARNING PIXMAPS"/warning.png" +#define PIXMAP_QUESTION PIXMAPS"/question.png" +#define PIXMAP_ERROR PIXMAPS"/error.png" + + class MessageBox : public QDialog { Q_OBJECT -- cgit v1.2.3