diff -r a40af6315ac6 -r 3a58c9ef4a18 warningdialog.ui.h --- a/warningdialog.ui.h Thu Sep 14 11:38:17 2006 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,50 +0,0 @@ -//Added by qt3to4: -#include -/**************************************************************************** -** ui.h extension file, included from the uic-generated form implementation. -** -** If you want to add, delete, or rename functions or slots, use -** Qt Designer to update this file, preserving your code. -** -** You should not define a constructor or destructor in this file. -** Instead, write your code in functions called init() and destroy(). -** These will automatically be called by the form's constructor and -** destructor. -*****************************************************************************/ - -void WarningDialog::init() -{ - warningSign->setPixmap (QPixmap("icons/vym.png")); - setCancelButton (false); - okButton->setText(tr("Proceed")); - showAgainBox->setText (tr("Show this message again")); - useShowAgain=false; - showAgainBox->hide(); -} - -void WarningDialog::setCancelButton (bool b) -{ - if (b) - { - cancelButton->show(); - cancelButton->setText(tr("Cancel")); - } else - cancelButton->hide(); -} - -void WarningDialog::setShowAgainName (const QString &s) -{ - showAgainName=s; - useShowAgain=true; - showAgainBox->show(); -} - -void WarningDialog::setText (const QString &s) -{ - textLabel->setText(s); -} - -void WarningDialog::setCaption(const QString &s) -{ - QDialog::setCaption("VYM - "+s); -}