summaryrefslogtreecommitdiff
path: root/noncore/apps/tinykate/libkate/microkde/kmessagebox.h
blob: d7c971f7414d209809d9a636f7d86a793a75c1ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef MINIKDE_KMESSAGEBOX_H
#define MINIKDE_KMESSAGEBOX_H

#include <qstring.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 = QString::null,
                         const QString &buttonContinue = QString::null, 
                         const QString &dontAskAgainName = QString::null,
                         bool notify=true );


    static int questionYesNo(QWidget *parent, 
                         const QString &text,
                         const QString &textYes,
                         const QString &textNo,
                         bool notify=true );

    static int warningYesNoCancel(QWidget *parent, const QString &text);


    static void error(QWidget *parent, 
                    const QString &text, 
                    const QString &caption = QString::null, bool notify=true);

    static void information(QWidget *parent, 
                          const QString &text, 
                          const QString &caption = QString::null,
                          const QString &dontShowAgainName = QString::null, 
                          bool notify=true);
};


#endif