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