warningdialog.cpp
author insilmaril
Wed Jan 10 13:26:12 2007 +0000 (2007-01-10)
changeset 420 b7447adddc9a
parent 388 3a58c9ef4a18
child 430 f001beefdec2
permissions -rw-r--r--
Fixed relinking of floats undo/redo
     1 #include "warningdialog.h"
     2 
     3 extern QString iconPath;
     4 
     5 WarningDialog::WarningDialog(QWidget* parent):QDialog (parent)
     6 {
     7     ui.setupUi(this);
     8 	//TODO proper icon for proceed 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 }