QTfrontend/util/MessageDialog.h
changeset 8807 509d812ca219
parent 8805 c0ea47957bdc
child 8816 6f93822e0b2e
equal deleted inserted replaced
8805:c0ea47957bdc 8807:509d812ca219
    27 {
    27 {
    28     public:
    28     public:
    29         static int ShowFatalMessage(const QString & msg, QWidget * parent = 0);
    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 & title = 0, const QString & msg, 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