/**************************************************************************** ** 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); }