equal
deleted
inserted
replaced
17 */ |
17 */ |
18 |
18 |
19 #ifndef MESSAGEDIALOG_H |
19 #ifndef MESSAGEDIALOG_H |
20 #define MESSAGEDIALOG_H |
20 #define MESSAGEDIALOG_H |
21 |
21 |
22 #include <QString> |
|
23 #include <QMessageBox> |
22 #include <QMessageBox> |
24 |
23 |
25 class QWidget; |
24 class QWidget; |
26 |
25 |
27 class MessageDialog |
26 class MessageDialog |
28 { |
27 { |
29 public: |
28 public: |
|
29 static int ShowFatalMessage(const QString & msg, QWidget * parent = 0); |
30 static int ShowErrorMessage(const QString & msg, QWidget * parent = 0); |
30 static int ShowErrorMessage(const QString & msg, QWidget * parent = 0); |
31 static int ShowInfoMessage(const QString & msg, QWidget * parent = 0); |
31 static int ShowInfoMessage(const QString & msg, QWidget * parent = 0); |
32 static int ShowMessage(const QString & msg, const QString & title = QString(), QMessageBox::Icon icon = QMessageBox::NoIcon, QWidget * parent = 0); |
32 /** |
|
33 * @brief Displays a message. |
|
34 * @param title message title or <code>NULL</code> if no/default title |
|
35 * @param msg message to display |
|
36 * @param icon (optional) icon to be displayed next to the message |
|
37 * @param parent parent Widget |
|
38 * @return a QMessageBox::StandardButton value indicating which button was clicked |
|
39 */ |
|
40 static int ShowMessage(const QString & title, const QString & msg, QMessageBox::Icon icon = QMessageBox::NoIcon, QWidget * parent = 0); |
33 }; |
41 }; |
34 |
42 |
35 #endif |
43 #endif |