1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/warningdialog.ui.h Fri Jun 16 08:37:16 2006 +0000
1.3 @@ -0,0 +1,48 @@
1.4 +/****************************************************************************
1.5 +** ui.h extension file, included from the uic-generated form implementation.
1.6 +**
1.7 +** If you want to add, delete, or rename functions or slots, use
1.8 +** Qt Designer to update this file, preserving your code.
1.9 +**
1.10 +** You should not define a constructor or destructor in this file.
1.11 +** Instead, write your code in functions called init() and destroy().
1.12 +** These will automatically be called by the form's constructor and
1.13 +** destructor.
1.14 +*****************************************************************************/
1.15 +
1.16 +void WarningDialog::init()
1.17 +{
1.18 + warningSign->setPixmap (QPixmap("icons/vym.png"));
1.19 + setCancelButton (false);
1.20 + okButton->setText(tr("Proceed"));
1.21 + showAgainBox->setText (tr("Show this message again"));
1.22 + useShowAgain=false;
1.23 + showAgainBox->hide();
1.24 +}
1.25 +
1.26 +void WarningDialog::setCancelButton (bool b)
1.27 +{
1.28 + if (b)
1.29 + {
1.30 + cancelButton->show();
1.31 + cancelButton->setText(tr("Cancel"));
1.32 + } else
1.33 + cancelButton->hide();
1.34 +}
1.35 +
1.36 +void WarningDialog::setShowAgainName (const QString &s)
1.37 +{
1.38 + showAgainName=s;
1.39 + useShowAgain=true;
1.40 + showAgainBox->show();
1.41 +}
1.42 +
1.43 +void WarningDialog::setText (const QString &s)
1.44 +{
1.45 + textLabel->setText(s);
1.46 +}
1.47 +
1.48 +void WarningDialog::setCaption(const QString &s)
1.49 +{
1.50 + QDialog::setCaption("VYM - "+s);
1.51 +}