warningdialog.cpp
author insilmaril
Thu Dec 14 17:01:44 2006 +0000 (2006-12-14)
changeset 411 910ba9fab728
child 414 bc23a0157a39
permissions -rw-r--r--
1.8.61 various fixes, see changelog
     1 #include "warningdialog.h"
     2 
     3 extern QString iconPath;
     4 
     5 WarningDialog::WarningDialog(QWidget* parent):QDialog (parent)
     6 {
     7     ui.setupUi(this);
     8 	//FIXME proper icon needed
     9 	ui.okButton->setText(tr("Proceed"));
    10 	/*
    11 	ui.warningSign->setPixmap (QPixmap(iconPath + "icons/vym.png"));
    12 	ui.showAgainBox->setText (tr("Show this message again"));
    13 	*/
    14 	useShowAgain=false;
    15 	ui.showAgainBox->hide();
    16 }
    17 
    18 void WarningDialog::showCancelButton (bool b)
    19 {
    20 	if (b)
    21 	{
    22 		ui.cancelButton->show();
    23 		ui.cancelButton->setText(tr("Cancel"));
    24 	} else
    25 		ui.cancelButton->hide();
    26 }
    27 
    28 void WarningDialog::setShowAgainName (const QString &s)
    29 {
    30 /*
    31 	showAgainName=s;
    32 	useShowAgain=true;
    33 	ui.showAgainBox->show();
    34 */	
    35 }
    36 
    37 void WarningDialog::setText (const QString &s)
    38 {
    39 	ui.warningTE->setText(s);
    40 }
    41 
    42 void WarningDialog::setCaption(const QString &s)
    43 {
    44 	setCaption("VYM - "+s);
    45 }