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) (side-by-side diff)
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 @@
+#ifndef MINIKDE_KMESSAGEBOX_H
+#define MINIKDE_KMESSAGEBOX_H
+
+#include <qstring.h>
+
+#include "klocale.h"
+class QWidget;
+
+class KMessageBox
+{
+ public:
+ enum { Ok = 1, Cancel = 2, Yes = 3, No = 4, Continue = 5 };
+
+ static void sorry(QWidget *parent,
+ const QString &text,
+ const QString &caption = QString::null, bool notify=true);
+
+ static int warningContinueCancel(QWidget *parent,
+ const QString &text,
+ const QString &caption = i18n("Warning"),
+ const QString &buttonContinue =i18n("Continue"),
+ const QString &dontAskAgainName = i18n("Cancel"),
+ bool notify=true );
+
+ static int warningYesNoCancel(QWidget *parent,
+ const QString &text,
+ const QString &caption = i18n("Warning"),
+ const QString &buttonYes = i18n("Yes"),
+ const QString &buttonNo = i18n("No"));
+
+ static int questionYesNo(QWidget *parent,
+ const QString &text,
+ const QString &caption = i18n("Question"));
+
+ static void error(QWidget *parent,
+ const QString &text,
+ const QString &caption = i18n("Error"), bool notify=true);
+
+ static void information(QWidget *parent,
+ const QString &text,
+ const QString &caption = i18n("Information"),
+ const QString &dontShowAgainName = QString::null,
+ bool notify=true);
+};
+
+
+#endif