Diffstat (limited to 'noncore/apps/tinykate/libkate/microkde/kmessagebox.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/tinykate/libkate/microkde/kmessagebox.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/noncore/apps/tinykate/libkate/microkde/kmessagebox.h b/noncore/apps/tinykate/libkate/microkde/kmessagebox.h new file mode 100644 index 0000000..d7c971f --- a/dev/null +++ b/noncore/apps/tinykate/libkate/microkde/kmessagebox.h | |||
@@ -0,0 +1,46 @@ | |||
1 | #ifndef MINIKDE_KMESSAGEBOX_H | ||
2 | #define MINIKDE_KMESSAGEBOX_H | ||
3 | |||
4 | #include <qstring.h> | ||
5 | |||
6 | class QWidget; | ||
7 | |||
8 | class KMessageBox | ||
9 | { | ||
10 | public: | ||
11 | enum { Ok = 1, Cancel = 2, Yes = 3, No = 4, Continue = 5 }; | ||
12 | |||
13 | static void sorry(QWidget *parent, | ||
14 | const QString &text, | ||
15 | const QString &caption = QString::null, bool notify=true); | ||
16 | |||
17 | static int warningContinueCancel(QWidget *parent, | ||
18 | const QString &text, | ||
19 | const QString &caption = QString::null, | ||
20 | const QString &buttonContinue = QString::null, | ||
21 | const QString &dontAskAgainName = QString::null, | ||
22 | bool notify=true ); | ||
23 | |||
24 | |||
25 | static int questionYesNo(QWidget *parent, | ||
26 | const QString &text, | ||
27 | const QString &textYes, | ||
28 | const QString &textNo, | ||
29 | bool notify=true ); | ||
30 | |||
31 | static int warningYesNoCancel(QWidget *parent, const QString &text); | ||
32 | |||
33 | |||
34 | static void error(QWidget *parent, | ||
35 | const QString &text, | ||
36 | const QString &caption = QString::null, bool notify=true); | ||
37 | |||
38 | static void information(QWidget *parent, | ||
39 | const QString &text, | ||
40 | const QString &caption = QString::null, | ||
41 | const QString &dontShowAgainName = QString::null, | ||
42 | bool notify=true); | ||
43 | }; | ||
44 | |||
45 | |||
46 | #endif | ||