summaryrefslogtreecommitdiffabout
path: root/microkde/kmessagebox.h
authorzautrix <zautrix>2004-06-26 19:01:18 (UTC)
committer zautrix <zautrix>2004-06-26 19:01:18 (UTC)
commitb9aad1f15dc600e4dbe4c62d3fcced6363188ba3 (patch) (unidiff)
tree2c3d4004fb21c72cba65793859f9bcd8ffd3a49c /microkde/kmessagebox.h
downloadkdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.zip
kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.tar.gz
kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.tar.bz2
Initial revision
Diffstat (limited to 'microkde/kmessagebox.h') (more/less context) (ignore whitespace changes)
-rw-r--r--microkde/kmessagebox.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/microkde/kmessagebox.h b/microkde/kmessagebox.h
new file mode 100644
index 0000000..01d83b1
--- a/dev/null
+++ b/microkde/kmessagebox.h
@@ -0,0 +1,47 @@
1#ifndef MINIKDE_KMESSAGEBOX_H
2#define MINIKDE_KMESSAGEBOX_H
3
4#include <qstring.h>
5
6#include "klocale.h"
7class QWidget;
8
9class KMessageBox
10{
11 public:
12 enum { Ok = 1, Cancel = 2, Yes = 3, No = 4, Continue = 5 };
13
14 static void sorry(QWidget *parent,
15 const QString &text,
16 const QString &caption = QString::null, bool notify=true);
17
18 static int warningContinueCancel(QWidget *parent,
19 const QString &text,
20 const QString &caption = i18n("Warning"),
21 const QString &buttonContinue =i18n("Continue"),
22 const QString &dontAskAgainName = i18n("Cancel"),
23 bool notify=true );
24
25 static int warningYesNoCancel(QWidget *parent,
26 const QString &text,
27 const QString &caption = i18n("Warning"),
28 const QString &buttonYes = i18n("Yes"),
29 const QString &buttonNo = i18n("No"));
30
31 static int questionYesNo(QWidget *parent,
32 const QString &text,
33 const QString &caption = i18n("Question"));
34
35 static void error(QWidget *parent,
36 const QString &text,
37 const QString &caption = i18n("Error"), bool notify=true);
38
39 static void information(QWidget *parent,
40 const QString &text,
41 const QString &caption = i18n("Information"),
42 const QString &dontShowAgainName = QString::null,
43 bool notify=true);
44};
45
46
47#endif