summaryrefslogtreecommitdiff
path: root/src/messagebox.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/messagebox.h')
-rw-r--r--src/messagebox.h22
1 files changed, 20 insertions, 2 deletions
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