summaryrefslogtreecommitdiff
path: root/src/messagebox.h
diff options
context:
space:
mode:
authordeva <deva>2005-03-29 21:02:39 +0000
committerdeva <deva>2005-03-29 21:02:39 +0000
commit5023167ffc89c413eede025a1984edf12d3784bb (patch)
tree5f1c4ff4ac443c69942745786c9f2006deea2005 /src/messagebox.h
parent0e00efae89cd5a9bde70088b3ca51cbfba94d234 (diff)
Added text defines and pixmap defines.
Added new icons.
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