1 #include "warningdialog.h"
3 extern QString iconPath;
5 WarningDialog::WarningDialog(QWidget* parent):QDialog (parent)
8 //FIXME proper icon needed
9 ui.okButton->setText(tr("Proceed"));
11 ui.warningSign->setPixmap (QPixmap(iconPath + "icons/vym.png"));
12 ui.showAgainBox->setText (tr("Show this message again"));
15 ui.showAgainBox->hide();
18 void WarningDialog::showCancelButton (bool b)
22 ui.cancelButton->show();
23 ui.cancelButton->setText(tr("Cancel"));
25 ui.cancelButton->hide();
28 void WarningDialog::setShowAgainName (const QString &s)
33 ui.showAgainBox->show();
37 void WarningDialog::setText (const QString &s)
39 ui.warningTE->setText(s);
42 void WarningDialog::setCaption(const QString &s)
44 setCaption("VYM - "+s);